msupply-foundation / msupply-cold-chain

Android application for viewing and monitoring temperatures of fridges
GNU General Public License v3.0
3 stars 3 forks source link

App crashing after a few days or a few hours #241

Open chetstone opened 1 year ago

chetstone commented 1 year ago

After a period of time, the app stops and displays a LogBox error message:

Uncaught Error Property storage exceeds 196607 properties

Usually the display indicates the message has been repeated many times. The only way to recover is to kill the app and restart.

Smartphone (please complete the following information):

Additional context Seems to be happening more often. When I first started this test, about a month ago, things ran for a couple of weeks before this happened. Lately, it happens after a few hours.

I guess this means the sqlite database is full? It may be because I'm using the app in a way that is a bit different from most MSupply customers: I am monitoring 4 sensors with 5 minute update, and I have no connection to an upstream database. I have tried browsing the sqlite file on my computer. It currently contains about 28K data points, starting from about three hours ago, when I most recently restarted the app. So apparently the DB gets reset when the app is restarted. Yet is very large: 11 MB-- go figure. And it seems to be recording 7 entries every minute, even though my update interval is set to 5 minutes.

Is there some setup that I might be missing?

thanks

Chester

mark-prins commented 7 months ago

have just had exactly the same issue! this is running a build which includes the fix for #270

and a hint with this issue a map could be helpful as per this issue