Skip to content

Loop crash when changing time back and cancelling bolus. #2057

@ps2

Description

@ps2

Note: Loop will not be able to accurately track dosing information and insulin effects if the clock is manually changed on the phone, so changing the time manually when running Loop is never advised. Your phone and Loop can handle timezone changes and daylight savings time changes without you needing to manually change the time on your phone. Always keep your phone time on automatic.

Having said that, sometimes this happens accidentally, and Loop should do its best to mitigate that risk. A user reported that their Loop was constantly crashing. Investigation showed that the crash was happening while trying to store a dose to HealthKit with an end time before the start time. The sysdiagnose showed that an automatic bolus was canceled shortly after the time was manually changed back 2 minutes, which caused the end time to be set to a date before the start time. Upon startup Loop would try to store the dose to Apple Health again, and crash. The only solution was to remove Loop from the system and reinstall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions