espruino / espruino/BangleApps
[Advanced Casio Clock] Memory usage
- Dominant language
- JavaScript
- Stars
- 571
- Forks
- 1.3k
- Avg merge
- 17h 38m
- Merged PRs (30d)
- 17
Description
### Affected hardware version
Bangle 1
### Your firmware version
2v14
### The bug
For the usage on a bangle.js1watch it would be great to reduce the memory consumption or improve code quality, otherwise It is almost unusable.

New interpreter error: LOW_MEMORY,MEMORY
Execution Interrupted during event processing.
Interpreter error: [
"LOW_MEMORY",
"MEMORY"
]
The app works fine until the screen goes off, then when screen has to be reactivated the low mem crash happens.
Antyway, it issue happens also with not that low "free mem", specially compared with the used one.
process.memory();
={ free: 1707, usage: 877, total: 2584, history: 0,
gc: 0, gctime: 6.04248046875, blocksize: 13, stackEndAddress: 536925648, flash_start: 0,
flash_binary_end: 466460, flash_code_start: 1610612736, flash_length: 524288 }
Execution Interrupted during event processing.
Interpreter error: [
"LOW_MEMORY",
"MEMORY"
Contributor guide
Assessment
This issue has not been assessed yet.