-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weather icon, temperature come up only some of the time on panel restart #603
Comments
I can confirm this, it happens on panel restart, but not always. Using Debian Stretch. I don't remember when it started... |
This also happens with the dedicated Weather widget, and not only when the panel restarts. It can happen every time the weather applet reloads the weather information. Sometimes it fails and will only show "--". If I click on reload it fixes it. I can remember that the GNOME weather applet had the exact same problem, and it was due to the weather service not always returning information. In that case, the code didn't retry but waited a certain time before trying again, due to terms and conditions of the weather service. I think they fixed it by keeping the old information around until the weather service worked again. I'll look into this. |
Workaround for situations where there is no old information (or it is too old and should not be displayed) could be a "waiting" icon and/or text, and a "waiting for weather service" tooltip. |
It would be best to have a defined threshold, after which the weather applet changes to the loading icon if we not get valid weather information in that timeframe. This approach is more resilient to temporary failures but also avoids showing the user outdated weather information, if the service has a longer outage. |
Good idea, show recent but not outdated information if available, and the weather service not responding or cannot yet be queried |
If I look through the journal (syslog) I can see some of these messages:
It looks like the weather provider sometimes gives an error 502. Can somebody confirm this, or maybe look through their system logs for similar errors? |
The clock applet actually keeps showing the last retrieved info after the network problem happens. The weather tooltip doesn't work at that time though (shows clock's general tooltip about the calendar). Also if you open the calendar, the weather icons in the locations list are missing. Of course it works that way only when there's some old info available, not when the applet just started. I saw error 502 a few times, but recently it doesn't show up in the log while the weather still doesn't load. Looks more like a slow connection, maybe timing out, I don't know. |
I changed location, testing Houston. Tooltip does not appear, icons do not appear in the panel (but in the calendar page it shows the scattered clouds icon...) If I change location, the panel is too stupid to fetch new data. I added there a debug info, it received metar info OK but doesn't wanna show it.
test_metar
Then some debugs to mate-panel.
And no weather info displayed, naturally. |
Very funny! Look: because you do Also, metar_parse gets also the trailing I found a difference why sometimes weather is not shown, for example Houston airport:
does not show weather in panel... Then I edit location to Vantaa (EFHK):
I get valid METAR for Houston, but..?! weather_info_get_icon_name not called. |
|
This code in libgweather seems to do the same, so I guess it works after all. |
I would say that it is also bug in libgweather... https://gitlab.gnome.org/GNOME/libgweather/commit/283afc2d23355def1c1bab70a641f40cea52ba7f
also it probably should not search for |
Looking for XML tag raw_text should be good enough, I wouldn't want to dependency on libxml2 etc. |
Ah, I see. Forgot about that fix already. Not sure if it affects parsing though, as regex probably does its job anyway. But I'll try to correct this. |
Actually, libxml is already required for handling locations file... |
It does not affect parsing... |
Ok, it's in mate-desktop/libmateweather#55. Doesn't seem to correct the main issue for me though. |
At the moment I'm not getting the issue anymore with the same weather station originally tested, but that could relate to remote reliability I suppose |
With mate-desktop/libmateweather#55 merged, we can close this if nobody else gets this issue back. I don't normally use the weather features, so will test one more time after rebuilding but would not see this in daily use |
No, the issue is still present. I'm getting another version of it: the icon is shown right away, but the number (temperature) is shown a few seconds later. The tooltip shows the full info though. |
OK, we have a partial fix. What I originally got was a complete refusal of any icons or numbers to show at all until the panel was restarted. Still, if the tooltip has current information it should be on the panel, so this is probably another delayed redrawing issue |
I've picked latest libmateweather fixes to 1.18 branch and tested it in older systems with GTK+ 3.14 and 3.18. This problem doesn't happen there. I'll check another VM which also has 1.18 but GTK+ 3.22, to see if the problem is in mate-panel 1.19/1.20 or in GTK+. |
Ok, the problem happens with 1.18 and GTK+ 3.22... |
Now this really gets in the way of testing #901... the initial icon appears cropped from left and right, so I have to wait until temperature appears - then the icon is redrawn in full size. |
It wouldn't be so annoying, but we have more bugs here: currently the weather icon doesn't seem to react to panel size change and icon theme change, so I have to restart the panel after any of these changes. |
This is still an issue... running Mate 1.20 on UbuntuMATE 18.04. |
Since a few days, the weather information in the clock applet doesn't load at all. But it seems to be an issue with the weather provider, because the standalone weather applet doesn't work either. Edit: There already is a bug report for this: mate-desktop/libmateweather#80 |
Does the issue still exists? |
I've not had this problem in quite a while, so for me at least it is fixed. |
Expected behaviour
If "show weather" is checked in clock-preferences, always show the weather icon when the panel starts
if "show temperature" is checked, always show the temperature when the panel starts
Actual behaviour
The weather icon and temperature sometimes are displayed on a panel start and sometimes not. The weather icon almost always comes up, but the temperature usually does not. It made no difference in my tests if only the temperature or both were selected. Going into the clock preferences, deselecting, then reselecting them will always bring them up as they are redrawn.
Steps to reproduce the behaviour
Add a location to the calendar so weather can be fetched from a server
Open clock-preferences, check "show weather," and "show temperature," these can be tested together or separately with same results
MATE general version
1.19 from git master or branches therof
Package version
locally compiled mate-panel from ev-img-background-fixes branch as of June 29, 2017 but June 7 git master (before the background work) gave the same result. Panel background type (system,color, image) made no difference, neither did gtk theme.
Linux Distribution
Debian Unstable with locally compiled gtk 3.22.15 (no change with 3.22.16) and glib 2.53.3
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: