-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Auto bolus is giving a different amount than it shows in the UI #2196
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
See latest comments on LoopKit 2195. OmniBLE PR #125 and OmniKit PR #36 might eliminate the possibility of this happening any more. But if this is not sufficient, Loop should also check bolusState to not start a bolus when one is currently in progress. |
Got another report of this today. (I'll add notes in a bit.) The proposed fix is in OmniXXX. |
I got a Loop report from Facebook user Stefano Anghera who experienced this display bug. The csv file from that report is attached. The user reported: "this morning the event timestamp is about at 09:24 after the manual bolus of 6 units at 09:17, it starts an automatic bolus but i stopped it after 0,75 units (the automatic bolus showed was about over 5 units)." This is an excerpt from my email to him. It is a display problem only. The amount indicated for the total bolus on the HUD is left over from the previous manual bolus. The logs are in UTC, so 9:24 your time (local) is 7:24 in the logs. I see:
I understand why you canceled the automatic bolus - I would have done the same. But the pod delivery would have stopped on its own. csv file of pod messages from the Loop Report: |
I had this issue or a similar one happen this morning. No overrides running, had added my breakfast carbs, saw a bolus begin that got to "Bolused 0.4 of 0.15 U" and then I stopped it. I then noticed it was listed as an "Interrupted Bolus: 0.4 of 0.9 U" (9/30/24 7:24AM bolus), so that reassures me it wasn't going to go indefinitely and was just a display issue, but wanted to bring it to your attention. Issue report attached (just redacted the username in the file path) which I generated right after it happened. |
Thank you for the detailed observations and capturing the log right after it happened @live4sw. Here’s a summary of the basic pod commands at the end of the comms log (N.B., all times UTC).
This problem description says that the HUD showed “0.4 of 0.15 U” and then the bolus was cancelled after this botched bolus display was noted. But from the comms log, the bolus that was canceled was actually a 0.9U auto bolus that was started at 11:24:03. And this was confirmed by the eventual logging which showed “Interrupted Bolus: 0.4 of 0.9 U” (9/30/24 7:24M bolus). Thus this appears to be HUD bolus display problem before and totally independent of the cancel bolus operation that was performed. In the incorrect bolus display immediately before the cancel, the bolus amount delivered was apparently correct (i.e., the “0.4U”), but the displayed “of 0.15 U” was incorrect and probably from a much earlier bolus. There was a 0.15U auto bolus at 11:04:02 which was the 2nd bolus before and 20 minutes prior to the 0.9U bolus at 11:24:03 that was actually in progress. Interestingly enough, the 3rd previous bolus a full 40 minutes prior to the interrupted 0.9U bolus was also for 0.15U (perhaps this could be a contributing factor). This bogus display doesn’t appear to be a problem resulting from a side effect of any pod comms errors as were no unacknowledged messages on 09-30. In summary, this HUD UI bolus display problem seems to be totally independent any cancel bolus handling or comms errors and could easily be independent of the underlying pump manager type altogether. Someone needs to look for something in the higher level bolus HUD UI code that might result in an “of amount” value being displayed from a previous bolus in some cases. |
All the reports I've seen of this display bug have been for Omnipod, but FYI that I observed this recently with my Medtronic 522 pump as well. Unfortunately I don't have logs to share. Running Loop dev, code is basically in line with the current release. Edit to add: this supports @itsmojo's recent comment that this behavior may be independent of the pump manager. |
Going back and looking at the Loop Report from @DavidRYL on July 21st, here’s a summary of the boluses from the comms log around the time of the bogus HUD bolus display (N.B., all times UTC) with some additional notes.
In this case, the bolus “of 0.30U” HUD display is apparently based on the 4th previous bolus nearly 48 minutes prior the actual 1.10U bolus which had 1.05U delivered. From comparing these incorrect bolus HUD cases from @DavidRYL & @live4sw, it appears that having 2 consecutive boluses of the same amount is not a factor, that auto bolus vs manual boluses is not a [direct] factor, and that the earlier bolus apparently being incorrect used for “of X.XXU” display is not a consistent # of boluses before (4 versus 2 or 3) or time before (47m53s vs 20m1s or 40m2s) the actual on-going bolus. |
@itsmojo found a method to stimulate this error when using an rPi DASH simulator. Reporting this method so tests can be applied to a proposed fix, when that is presented for formal review.
For the example described above, the bolus display continued until 1.55 U was delivered with final message of 1.55 U of 0.5 U shown on the main screen. To test successive times, put the app into the background before the bolus progress bar completes. |
The solution is known. Just need to get it added to Loop. A customization is provided in the interim. |
Closed with Loop 3.6.0 |
Describe the bug
In the UI it shows one amount but the auto bolus keep going
Attach an Issue Report
See reports attached.
To Reproduce
Steps to reproduce the behavior:
Unknown how to reproduce
Expected behavior
Give only the amount the UI shows it will give
Screenshots
See attached.
Loop Report 2024-07-21 000507-0400.md
Export-20240721T040614Z.zip
Phone
Loop Version
CGM
Pump
Omnipod Dash
The text was updated successfully, but these errors were encountered: