Skip to content

AAPS Stops Delivering Bolus and Basal at Random Times — Requires App Restart #4010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Nick-Sills opened this issue Jun 2, 2025 · 3 comments
Labels

Comments

@Nick-Sills
Copy link

Nick-Sills commented Jun 2, 2025

I've been experiencing this issue for a while, and it seems to be getting worse. At seemingly random times, AAPS stops delivering both bolus and basal insulin. When this happens, the small progress line at the bottom of the screen flickers rapidly, indicating that a background task is repeating quickly.

As a result, I sometimes wake up with very high glucose levels due to receiving no insulin overnight.

Temporary Workaround

Selecting the "Exit" option from the AAPS menu to restart the app always temporarily resolves the issue.

Things I've Tried

  • Clearing the database
  • Changing pump — I recently switched from a Dana-RS to a Dana-I, but the issue persists
  • Reinstalling AAPS by upgrading
  • Verified that Bluetooth is working reliably on my phone. Galaxy S21 Ultra

Log Snippet

Here’s a small log snippet captured while the error was occurring for several hours. It shows rapid unsuccessful connection attempts. though an app restart is OK:

16:03:27.832 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:27.833 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:27.833 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:27.834 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:27.844 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:27.844 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:27.845 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close
16:03:27.846 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():377]: Device was disconnected ZDG00035FI
16:03:28.845 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:28.846 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:28.846 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:28.847 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:28.850 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:28.851 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:28.851 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close
16:03:28.853 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():377]: Device was disconnected ZDG00035FI
16:03:29.851 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:29.853 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:29.853 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:29.853 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:29.856 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:29.857 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:29.857 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close
16:03:29.859 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():377]: Device was disconnected ZDG00035FI
16:03:30.804 [AutomationPluginHandler] D/AUTOMATION: [AutomationPlugin.processActions$automation_fullRelease():271]: processActions
16:03:30.859 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:30.860 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:30.861 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:30.861 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:30.867 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:30.867 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:30.868 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close
16:03:30.869 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():377]: Device was disconnected ZDG00035FI
16:03:31.869 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:31.872 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:31.873 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:31.873 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:31.876 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:31.876 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:31.877 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close
16:03:31.878 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():377]: Device was disconnected ZDG00035FI
16:03:32.877 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:32.879 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:32.880 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:32.881 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:32.886 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:32.890 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:32.891 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close
16:03:32.897 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():377]: Device was disconnected ZDG00035FI
16:03:33.887 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:33.888 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:33.889 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:33.889 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:33.894 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:33.894 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:33.894 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close
16:03:33.896 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():377]: Device was disconnected ZDG00035FI
16:03:34.894 [DefaultDispatcher-worker-2] D/PUMPQUEUE: [QueueWorker.doWorkAndLog():118]: connect
16:03:34.896 [DefaultDispatcher-worker-2] D/PUMP: [DanaRSPlugin.connect():194]: RS connect from: Connection needed
16:03:34.896 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():117]: Initializing BLEComm.
16:03:34.897 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.connect():146]: Trying to create a new connection from: Connection needed
16:03:34.901 [DefaultDispatcher-worker-2] D/PUMPBTCOMM: [BLEComm.setCharacteristicNotification():285]: setCharacteristicNotification
16:03:34.902 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.onConnectionStateChangeSynchronized():366]: onConnectionStateChange
16:03:34.902 [binder:17748_10] D/PUMPBTCOMM: [BLEComm.close():228]: BluetoothAdapter close

Please let me know if there's any other diagnostic data I can provide to help identify the root cause.

@MilosKozak MilosKozak added the dana label Jun 5, 2025
@Nick-Sills
Copy link
Author

Nick-Sills commented Jun 8, 2025

Additional data points:

Enabling/Disabling 'BT Watchdog' doesn't change the outcome
I've set Bluetooth to 'unrestricted' in Apps
Toggling Bluetooth for a few seconds also temporarily fixes the problem.

@MilosKozak I noticed that you added the dana tag so you've read the issue. Do you have any comment?

This is so serious for me that I'm not sure I can continue with AAPS, and I'm wondering if others are affected.

@andyrozman
Copy link
Contributor

Are you using Android 15? There seems to be a lot of issues (on different drivers) because of it... You might consider switching back to 14, if this is the case...
Rule of the thumb: Upgrade your phone if its really necessary (sometimes even minor version upgrades can cause problems), once you have all diabetes apps you need running, you should keep it at that version.

@Nick-Sills
Copy link
Author

@andyrozman Thanks for the reply. I am on Android 15, but I'm fairly sure the problem existed on 14 as well. I think the fact that disabling BT for a couple of seconds temporarily fixes it implies it's not a phone problem. AAPS effectively locks up when the connection loop happens and won't deliver any insulin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants