You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Numbers typed with leading decimal points can be interpreted very incorrectly
The user can type a number like .05 and Loop will interpret it as 5.
Issue Report
(No issue report from Loop is possible here.)
To Reproduce
Go to Add Carb Entry (first screenshot below).
Type . (second screenshot).
Type 0 (third screenshot). Loop incorrectly drops the decimal point.
Type 5 (fourth screenshot). Loop incorrectly interprets the number input as 5, not .05.
Press Continue and you can receive 100x the amount of insulin input.
Expected behavior
Loop should not drop leading decimal points on numbers input.
Screenshots
Phone
iPhone 16 Pro
iOS 18.3
Loop Version
Loop v3.4.4 (57)
Repo: LoopKit/Loop
CGM
Device: Dexcom G7
Manager app: Dexcom F7 app
Pump
Manufacturer: Insulet
Model: Omnipod DASH® Pods (Gen 4)
Firmware version: not applicable
Additional context
This problem occurred in practice when I accidentally hit Add Carb Entry instead of Bolus to perform a 0.05U bolus. Had I not noticed Loop’s misinterpretation of my numeric input, I'd have received a bolus of about 0.6U instead of 0.05U. It is generally safe for the user to mistakenly hit Add Carb Entry instead of Bolus since the resulting bolus or basal reduction would be much smaller than intended, but it is definitely not safe if Loop misparses numeric inputs, here multiplying themt by 100x. When Insulet’s proprietary Omnipod 5 app had roughly the same bug 1½ years ago, the FDA ordered a Class 1 recall, “the most serious type of recall.”
Numbers typed with leading decimal points can be interpreted very incorrectly
The user can type a number like
.05
and Loop will interpret it as5
.Issue Report
(No issue report from Loop is possible here.)
To Reproduce
.
(second screenshot).0
(third screenshot). Loop incorrectly drops the decimal point.5
(fourth screenshot). Loop incorrectly interprets the number input as5
, not.05
.Expected behavior
Loop should not drop leading decimal points on numbers input.
Screenshots
Phone
Loop Version
CGM
Pump
Additional context
This problem occurred in practice when I accidentally hit Add Carb Entry instead of Bolus to perform a 0.05U bolus. Had I not noticed Loop’s misinterpretation of my numeric input, I'd have received a bolus of about 0.6U instead of 0.05U. It is generally safe for the user to mistakenly hit Add Carb Entry instead of Bolus since the resulting bolus or basal reduction would be much smaller than intended, but it is definitely not safe if Loop misparses numeric inputs, here multiplying themt by 100x. When Insulet’s proprietary Omnipod 5 app had roughly the same bug 1½ years ago, the FDA ordered a Class 1 recall, “the most serious type of recall.”
https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfRes/res.cfm?ID=204607
The text was updated successfully, but these errors were encountered: