Skip to content

[Settings] Error compacting storage: Can't read property 'scroll' of undefined #3824

Closed
@banglejsdev

Description

@banglejsdev

Affected hardware version

Bangle 1

Your firmware version

2v25

The bug

In the Settings app on Bangle 1 (but not Bangle 2), using Utils | Compact Storage always results in the following error appearing in the IDE:

>Compacting...\
Uncaught Error: Can't read property 'scroll' of undefined
 at line 3 col 2909 in setting.app.js
...enu[""].scroll=menuScroller.scroll;menuScroller=E.showMenu(m...
                              ^
in function "restoreMenu" called from line 18 col 69 in setting.app.js
...ct();restoreMenu(utilMenu());
                              ^
in function "a" called from line 1 col 187
...ected))}else if("function"==typeof a)a();else if("object"==typeof a){if("number"==typeof a.v...
                                                              ^
in function "select" called from line 1 col 22
a?d.move(a):d.select()
                     ^
in function "d" called from line 1 col 3
d()
  ^
in function called from system
>

The Bangle 1 appears to hang because the display with the "Compacting..." message remains, but in fact after compacting storage finishes, pressing BTN1 or BTN3 overwrites the display with selections of the Utils menu.

The same behavior/error also occurs when doing Utils | Turn Off | No

Installed apps

No response

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