Bug 429960 - Image does not load
Summary: Image does not load
Status: RESOLVED NOT A BUG
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Picture of the Day (show other bugs)
Version: 5.20.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Guo Yunhe
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-03 10:56 UTC by lesto
Modified: 2020-12-10 11:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lesto 2020-12-03 10:56:23 UTC
SUMMARY
I enabled picture of the day on one or both of my monitor, no image is loaded and instead the default color is always shown.
Different provider has been selected, and internet connection + website availability has been verified.
I set picture of the day weeks ago and i think it has never worked for me.
Interestingly i have a almost-identical system on my laptop (same os, same version, same default config) and that work

STEPS TO REPRODUCE
1. select picture of the day and provider
2. just wait

OBSERVED RESULT
if i switch to a picture backgrond and try wo switch back to Picture of The Day, i get the following log in journal:

```
Dec 03 11:49:45 primero plasmashell[13528]: file:///usr/share/plasma/wallpapers/org.kde.potd/contents/ui/main.qml:27:5: Unable to assign [undefined] to QString
Dec 03 11:49:45 primero plasmashell[13528]: file:///usr/share/plasma/wallpapers/org.kde.potd/contents/ui/main.qml:49:9: Unable to assign [undefined] to int
Dec 03 11:49:45 primero plasmashell[13528]: file:///usr/share/plasma/wallpapers/org.kde.potd/contents/ui/main.qml:40:9: Unable to assign [undefined] to QColor
Dec 03 11:49:45 primero plasmashell[13528]: file:///usr/share/plasma/wallpapers/org.kde.potd/contents/ui/main.qml:28:5: Unable to assign [undefined] to QString
Dec 03 11:49:45 primero plasmashell[13528]: file:///usr/share/plasma/wallpapers/org.kde.hunyango/contents/ui/main.qml:50: ReferenceError: centerLayer0 is not defined
Dec 03 11:49:50 primero plasmashell[13528]: file:///usr/share/plasma/wallpapers/org.kde.potd/contents/ui/config.qml:74: TypeError: Value is undefined and could not be converted to an object
Dec 03 11:50:02 primero plasmashell[13528]: file:///usr/share/plasma/wallpapers/org.kde.potd/contents/ui/main.qml:48: TypeError: Value is undefined and could not be converted to an object
```



EXPECTED RESULT
after some seconds/minute a picture is displayed, and will be updated every day

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.11-arch2-1
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Comment 1 Guo Yunhe 2020-12-10 11:39:19 UTC
This is normal behavior of POTD. It needs some time to download the picture from the internet. So you will see blank screen when using it for the first time. But once it is loaded, you won't see blank screen in future because we will cache the image.