WangDaYeeeeee / GeometricWeather

A Material Design Weather Application
GNU Lesser General Public License v3.0
2.44k stars 186 forks source link

Widget issues after updating to 3.100 #310

Open DatAres37 opened 2 years ago

DatAres37 commented 2 years ago

After updating to the newest 3.100 release I noticed various app crashes in the background, which I couldn't solve with the hints in #307. I then noticed that I could be a widget issue and the app did indeed stop crashing after removing the widget from my screen. When I want to place the widget on the screen again, either nothing is happening, the app (widget settings) crashes after placing the widget or I manage to place the widget, but I'm getting messages again, that the app crashed in the background. The app itself is also crashing sometimes when I want to open it.

The widget I'm trying to use is the one that shows the weather for the next five hours (4x1). I already cleared the app data, cache, uninstalled/installed and rebooted. Also tried a different launcher.

juandarr commented 2 years ago

I am on Android 12, and having similar problems with Daily trend and Hourly trend widgets. After update, the app would crash and I had to reinstall it. Now, I am not able to add the Hourly trend (nor the Daily trend) widget to my home screen, even thought I can add most of the other widgets.

papjul commented 2 years ago

Can you upgrade from 3.013 to 3.100 with no crashes if you don't have any widget?

DatAres37 commented 2 years ago

Can you upgrade from 3.013 to 3.100 with no crashes if you don't have any widget?

I just installed 3.013 again, updated and could open the app without a problem with no widget. I'm not sure how meaningful this is, since I've already updated several times today, cleared the data and the cache, etc.

papjul commented 2 years ago

This is meaningful as we understand now that crashes are not linked to data migration issues but to the widget. So #307 is actually the same issue, sorry for making you open a duplicate ;)

bartlibert commented 2 years ago

I noticed today that I had an entry for a daily trend widget in my widget settings, while I had removed this widget a while ago. I cleared all data and uninstalled the app and then reinstalled it, but the widget was still there. After this, I cleared everything again and used the google drive app to remove all backups as well. After a reinstall, the widget entry was gone and all crashes were gone. So maybe something wrong with the google backups of the app?

papjul commented 2 years ago

Widget presence depend on the launcher. Even if you uninstall the app, the widget may still be there. So I guess you had a backup of your launcher app data.

bartlibert commented 2 years ago

Indeed it was related to the launcher, but weirdly, it was only for this widget, no other widgets had issues.