Skip to content

[Clock_Info] Throwing error for undefined function #4140

@RKBoss6

Description

@RKBoss6

Affected hardware version

Bangle 2

Your firmware version

2v28.70

The bug

Recently, my ClockInfos started bugging out, and wouldn't update the screen to show the new (swiped) clockInfo, saying :

Uncaught Error: Function code is undefined, not a string
    at menuHideItem (clock_info:293:23)
      itm.hide(options);
                      ^
    at clock_info:327:31
      menuHideItem(oldMenuItem);

Even though it was never a problem before, it now crashes my clock face each time. I had updated to the latest clockInfo version a week prior, but the issue wasn't there, and now it just randomly is showing up. This was caught by me and @thyttan in #4104, and while it doesn't seem related to that PR too much, getting it fixed is quite important, as clocks with a clockInfo can no longer load. I tried debugging, and it stems from the fact that some clockInfos have:

show: function(){
}
hide: function(){
}

with nothing inside. It was never an issue, until it randomly appeared last night. I do remember I was fiddling around with apps in the app loader, but I'm not exactly sure what I touched, only that I updated to cutting edge fw, and tested app uploads/removals for AppLoaderCore #85

Installed apps

notify (0.14), setting (0.82), sched (0.36), alarm (0.52), dailycolorclk (0.02), mylocation (0.11), smartbatt (0.04), widsmartbatt (0.02), reply (0.03), widmessages (0.07), weather (0.31), f9lander (0.05), locale (0.20), taglaunch (0.09), kineticscroll (0.05), kbmulti (0.09), widbtstates (0.02), compass (0.09), phoneremind (0.01), worldclkinfo (0.02), clkinfosunrise (0.05), icons (0.03), clkinfodist (0.01), fileman (0.04), qmsched (0.10), sleeplog (0.24), loadanim (0.02), wid_edit (0.05), autoreset (0.02), powermanager (0.13), backlite (0.02), myprofile (0.03), health (0.38), messagegui (0.91), messages (0.70), messageicons (0.16), ios (0.22), boot (0.68), smpltmr (0.13), widlock (0.08), bordle (0.04), modclock (0.05), clock_info (0.25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions