espruino / espruino/BangleApps
[BW Clock] hangs and locks when sunrise_clockinfo is installed.
- Dominant language
- JavaScript
- Stars
- 571
- Forks
- 1.3k
- Avg merge
- 17h 38m
- Merged PRs (30d)
- 17
Description
### Affected hardware version
Bangle 2
### Your firmware version
2.16.7
### The bug
CONFIGURATION:
Bangle 2.
Firmware 2.16.7
BW clock 0.23
Slopeclock++ 0.5
Sunrise Info Clock 0.1
Latest everything else.
Steps to reproduce
install slopclock++ and observe that sunrise and sunset options are not displated in the clock info menu's
install BW clock and scroll through the Bangle menu without issue
install sunrise_clockinfo and observe sunrise and sunset options now in the clock info menus.
start up BW clock and select the Bangle menu. At some point it will hang.
You will see the following on the IDE console:
Uncaught Error: Unhandled promise rejection: undefined
in function "altUpdateHandler" called from line 1 col 2110 in bwclk.app.js
...;alt="--";altUpdateHandler();
^
in function "show" called from line 29 col 190 in bwclk.app.js
...ings.menuPosY-1];item.show();
^
in function "drawMenuAndTime" called from line 38 col 509 in bwclk.app.js
....length+1);drawMenuAndTime();}if(is_upper){if(e.y
You will not see a sunrise or sunset option in the Bangle Menu.
Thereafter a black bottom half of the screen is displayed whenever you load BW clock.
Contributor guide
Research direction
Reproduce the issue on Bangle 2 with firmware 2.16.7 by installing Slopeclock++, BW clock, and Sunrise Info Clock in the order described. Then inspect bwclk.app.js, especially altUpdateHandler, show, and drawMenuAndTime, using the IDE console trace as the entry point. Done means the Bangle menu does not hang and the clock continues to render correctly with the sunrise and sunset options installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100