espruino / espruino/BangleApps

[Advanced Casio Clock] Memory usage

Open
#2,079 1 comment 0 reactions 0 assignees View on GitHub
area-apps state-no-response type-bug
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.

![20220720_152704_1](https://user-images.githubusercontent.com/4981669/179998388-e90a81b6-9254-4c11-b81a-3924c4ec59ad.jpg)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.