Bug 371834

Summary: mediaframe: fails to use some remote images
Product: [Unmaintained] kdeplasma-addons Reporter: Luiz Angelo De Luca <luizluca>
Component: Media FrameAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aspotashev, nate
Priority: NOR    
Version First Reported In: 5.8.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luiz Angelo De Luca 2016-10-29 17:48:33 UTC
Hello,

Using this config on plasmawindowed:

pathList={"path":"https://media.giphy.com/media/AsnwZm3ttHnFu/giphy.gif"\\,"type":"file"},{"path":"https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Dore-munchausen-illustration.jpg/100px-Dore-munchausen-illustration.jpg"\\,"type":"file"}

Bart is shown when applet is opened. Afterwards, it is gone.

This is the log I got:

Adding "https://media.giphy.com/media/AsnwZm3ttHnFu/giphy.gif" as remote file
Can't watch remote file "https://media.giphy.com/media/AsnwZm3ttHnFu/giphy.gif" for changes
Adding "https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Dore-munchausen-illustration.jpg/100px-Dore-munchausen-illustration.jpg" as remote file
"https://media.giphy.com/media/AsnwZm3ttHnFu/giphy.gif" doesn't exist locally, trying remote.
Saving download to "/tmp/85c4b8cb41a134953327dccce74c3712_giphy.gif"
Saved to "/tmp/85c4b8cb41a134953327dccce74c3712_giphy.gif"
file:///usr/share/plasma/plasmoids/org.kde.plasma.mediaframe/contents/ui/main.qml:179:13: QML Image: Cannot open: file:///tmp/85c4b8cb41a134953327dccce74c3712_giphy.gif
Can't watch remote file "/tmp/85c4b8cb41a134953327dccce74c3712_giphy.gif" for changes
file:///usr/share/plasma/plasmoids/org.kde.plasma.mediaframe/contents/ui/main.qml:195:13: QML Image: Cannot open: file:///tmp/85c4b8cb41a134953327dccce74c3712_giphy.gif
Resetting next count from 2 due to queue size 1
"https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Dore-munchausen-illustration.jpg/100px-Dore-munchausen-illustration.jpg" is cached as "/tmp/bed0fd620241aa9d40f2b99fe2736ace_100px-Dore-munchausen-illustration.jpg"

The file is really gone from /tmp/85c4b8cb41a134953327dccce74c3712_giphy.gif. It seems that it could not save the cache file, but it believed that it did.
Comment 1 Luiz Angelo De Luca 2016-10-29 17:53:53 UTC
BTW, with https://git.reviewboard.kde.org/r/129227/, the same image can generate a segfault. This might give some hint about the problem.
Comment 2 Nate Graham 2020-01-02 15:27:44 UTC
Seems to work perfectly for me now with that remote image even after restarting plasmashell.
Comment 3 Nate Graham 2020-01-02 15:28:27 UTC
Seems to work perfectly for me now with that remote image.