nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
706 stars 1.73k forks source link

Frequent restarting #3457

Open rpm5099 opened 1 week ago

rpm5099 commented 1 week ago

Recently Android APS has been frequently restarting, and I assume crashing. The time interval seems random but not more than 30 minutes. This is occurring on my daughters phone, Oneplus 6T. Nothing related to the restarts is being logged. I have the same settings on my phone and have not had any issues for several years. The version is 3.2.0.4 build b52015d35c-2024.05.30 compiled locally by myself. I am also using the same version with the same configuration with no issues. All permissions possible have been granted, it is not the Android kernel forcing the restarts. The setup is using juggluco to connect to a Libre 3 sensor that pushes data to XDrip, which pushes to AAPS. Seemingly related, the Nightscout server synchronization also seems to fail as well. However after forcing the application to stop, clearing cache and restarting it then synchronizes. This needs to be done multiple times per day.

Thanks in advance for your help, I can provide any other information required.

Reporting bugs

Josch24 commented 5 days ago

Try "Clean Database" . I had similiar Behaviour some Time ago and it solved my Problem with crashing and Restarts.

rpm5099 commented 5 days ago

Thanks, I'll give that a shot although I think I did already. I installed the debug version of the app but I still don't see anything related to these restarts in the logs at all. It is really limiting to not be able to access the logs via SSH/USB, I can't ever check them remotely on my daughter's phone.

rpm5099 commented 5 days ago

Yeah, it didn't work, still lots of restart notifications. I actually cleared the entire database and reinstalled the app from scratch a few days ago, although I restored the settings from a backup. That does not seem to have helped either. I've also verified the device is not running out of memory and I'm pretty certain the Android kernel is not killing the app as it has every permission it is possible to grant it.

rpm5099 commented 1 day ago

If anyone knows of any settings that can cause crashing/restarting, or any way to gather logs about what is happening I would appreciate any suggestions. I've tried everything that I believe could reasonably be responsible. Thanks.