plasmoid-wunderground-extended
plasmoid-wunderground-extended copied to clipboard
Weather updates will not take place, with no error thrown
Describe the bug The widget stops updating the weather occasionally. Pressing the manual reload button has no effect, not even throwing an error within the syslog. The widget appears to function normally while this happens, besides the fact that the weather data will be from hours ago.
The issue disappears upon logging out and back in.
To Reproduce It seems to happen randomly and I cannot reproduce it.
Desktop (output of plasmashell --version && kf5-config --version
):
plasmashell: 5.26.4
Qt: 5.15.7
KDE Frameworks: 5.100.0
kf5-config: 1.0
After further investigation, I believe the cause may be waking my laptop from sleep occasionally. In the logs I can see that the last successful retrieval of weather data happens right before closing my laptop.
Looking at the logs more closely, I see that the plasmoid makes a request right before my laptop goes to sleep, however that request is probably returned while the laptop is already asleep. The part of code keeps waiting for the request to finish even though it never does, so stops.
I'll try setting req.timeout
to a non-zero value to see if this might be the issue. I'll see how that goes and if I continue to encounter the issue.
Update: After a few days of just trying to use the app with a timeout, I still regularly see the issue and I don't know why.
Update again: I do not see this issue at all with the original widget by k-donn, which I've been using since the past month as a result of these issues. I think it's worth comparing the code that makes the api calls in both widgets