Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Advanced Casio Clock] Memory usage #2079

Open
dapgo opened this issue Aug 8, 2022 · 1 comment
Open

[Advanced Casio Clock] Memory usage #2079

dapgo opened this issue Aug 8, 2022 · 1 comment
Labels

Comments

@dapgo
Copy link
Contributor

dapgo commented Aug 8, 2022

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

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"

@dapgo dapgo added the type-bug Something isn't working label Aug 8, 2022
@gfwilliams
Copy link
Member

Looking at that screenshot it feels like the watch face really wasn't meant for Bangle.js 1 at all?

But yeah, some memory tweaks could be good. I just found that 2 fonts were loaded that weren't used, so that may help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants