davidhealey / waistline

Libre calorie counter app for Android. Built with Cordova.
568 stars 67 forks source link

App crashes when many goals are defined #694

Open ghost opened 1 year ago

ghost commented 1 year ago

I started the diary on 6. February this year. When I change the day in the diary, it takes about a second for the app to load the day and two seconds to load the goals at the bottom. When I change the days quickly the app crashes after going 3 or 4 days back or forth, when I take a break of several seconds between the day changing, it is the same. I need to go back and change the weight, but it isn't possible because of this. My battery is full by the way.

davidhealey commented 1 year ago

I can tap rapidly on the previous/next day buttons and, while it isn't instant, it doesn't take long to load the data and the app doesn't crash. So this might be specific to your device.

You can tap the date in the centre and then select a specific day from the calendar popup.

ghost commented 1 year ago

I forgot to mention that I noticed this behaviour only since yesterday, I added yesterday a lot of goals.

Thank you for the hint with the calendar popup, I did not know this! =)

davidhealey commented 1 year ago

Ah I only have one goal set so that could be the difference. How many is a lot?

ghost commented 1 year ago

33

ghost commented 1 year ago

And I will add some more in the future.

davidhealey commented 1 year ago

Oh that is a lot!

ghost commented 1 year ago

I mainly use the app to track minerals and vitamins.

ghost commented 1 year ago

Ok the app crashes now also sometimes when I just scroll down in the diary... It seems it just can't handle so many goals. There are now are apps running, except a few essentials in background (calendar and alarm). I updated the title of the issue.

ghost commented 1 year ago

It crashes in the statistics too.