Replies: 4 comments 6 replies
-
|
I took a quick look and I can't see anything obvious. One odditty is: Shouldn't After fixing that, I don't see any memory leaks at all... so I wonder whether the code you're having trouble with isn't actually that code? About testing for leaks: after loading something there will be some increased memory use (libraries/etc get loaded). You can *really *tell by unloading and reloading though:
And the two usages you see should be kind of the same. You can then try the eval..setUI again and see if usage goes up but at that point it shouldn't |
Beta Was this translation helpful? Give feedback.
-
|
So.. They aren't the same. The normal load once removed gives 6199 bytes, and the eval load once removed clocks in at 9199 bytes. I fixed the decompress and array length errors, and I really have no clue what's going on. I've updated the code in the link to reflect my changes, anything strange you see? |
Beta Was this translation helpful? Give feedback.
-
|
I tried the mem viewer and I could not find anything related to clock infos anywhere in my search - even though it definitely is there. How easy is it to add a search to the mem viewer so we can search things up? |
Beta Was this translation helpful? Give feedback.
-
|
Well, I've no idea what's going on here, but somehow, deleting and reinstalling non-essential clockInfos has worked some magic, and I don't get that much of a leak anymore, certainly not the the point of crashing my watch. Thank you so much for all the help in finding the problem, I'll update this with anything new that pops up in the future, but for now, I think we've solved the issue. I've modified countless apps without changing the github code itself, so it's possible one of those mods caused the leak. Everything seems to be normal now. Thanks once again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a slight problem - I'm trying to develop/modify my existing clock face, Daily Color Clock, and I ran into a problem. The memory is not getting cleared when remove() is called. It's gotten to the point where switching from the clock and launcher 2-3 times will cause a memory hang.
Some numbers I got from
process.memory():When bangle is reset: 1804 bytes
When app is loaded: 7543 bytes
When app
remove()is called: 6430 bytes.In the fast loading tutorials, it mentions that some increase before and after is expected, but surely not >4000 bytes. Can anyone tell me what's going wrong here, and why? I have little experience developing with a fixed memory constraint in mind, and I could not solve this, no matter what I tried. Any help is appreciated!
Code
Beta Was this translation helpful? Give feedback.
All reactions