patzly / grocy-android

ERP beyond your fridge, now on your phone – An awesome companion app for grocy
https://patrickzedler.com/grocy/
GNU General Public License v3.0
842 stars 80 forks source link

App crashing on opening after sudden suspension #734

Closed alfonso133 closed 11 months ago

alfonso133 commented 12 months ago

I noticed that the app crashes on opening from launcher icon if it has been suddenly suspended (or closed too, not sure) after being launched/resumed. It happened to me in 2 situations: 1 - while I was using the app and periodically locking and unlocking the screen the app crashed when I accidentally pressed the power button instants after unlocking the phone 2 - while I was browsing the apps on my phone I accidentally opened the app, after quickly closing it it crashes if I reopen it

In both cases terminating the app and/or cleaning the cache does nothing and I can still use the app if I don't start it the normal way but go directly to a different activity (like the shopping list). A workaround to fix the situation is to open the app this way, go to settings -> restore settings from server and then restart the app

patzly commented 12 months ago

Could you please provide us the log which you can find in the settings after this situation? Without it we don't have any clue :)

alfonso133 commented 12 months ago

log.txt

dominiczedler commented 12 months ago

And Android version and app version too, as well as app source please.

alfonso133 commented 12 months ago

Android 10 App version 3.2.1 from play store

dominiczedler commented 12 months ago

Thank you! We will look into it as soon as we find time for it. Hopefully we can reproduce it.

alfonso133 commented 12 months ago

No problem, I am a Java developer and can help directly, but unfortunately I don't have much free time now

alfonso133 commented 11 months ago

It seems the bug (nullpointer) has already been resolved for the next release in commit 80c052458c30d506135cb731df9bed9b74611820

dominiczedler commented 11 months ago

Thanks! The release will be published in the next days.