Problem with all apps deleting #2791
Replies: 13 comments
-
Posted at 2021-08-21 by Robin Sat 2021.08.21 Hi @Ronin0000 although I might not have the exact response you are seeking, there are a few questions that others may need to get you back on track. Let's start with the version of software that is installed. Please post the results of |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-21 by Ronin Hi @robin thanks for replying. Here are the results from "process.env".
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-21 by Robin Okay thanks, near latest version available.
Before you upload any code @ronin , has an attempt been made to determine what Espruino 'thinks' is the amount of available memory, before the corruption is detected?
Having an idea of what is available before each app upload, might provide a clue as to which app might be problematic. Should this be repeatable, please post a list by name and in order of upload with available storage and memory should provide additional clues. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-21 by Robin This |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-21 by Robin and another thought. . . .
By chance is the code that is being uploaded, something of your creation, such as using:
or is the reference to just an app(s) or a proven tutorial perhaps? If so, please post links and/or the code snippet using the 'Storage' module. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-22 by Ronin Hi @robin the error only happens when I upload my own program, but it doesn't happen every time even though the code is the same. The latest version of the program uses
I have uploaded my program and did not encounter the failure. Each time I upload my program I will run these commands first to capture this information in case it happens again. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-22 by Robin Sat 2021.08.21
Thank you @ronin for acknowledging, . . . . that confirms my hunch. > Each time I upload my program I will run these commands first That would be a good idea, and should a pattern be observed, it would be nice if you would post those observations here so that others may benefit. It's not clear of the data size that is being stored via the Storage module, so I'm uncertain of possible overhead that should be taken into account for each packet store event. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-22 by Robin
Running |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-22 by Ronin Ok, Thanks @robin! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-23 by @gfwilliams Hi @ronin, Sorry you're having issues. Please could you try upgrading your Bangle to firmware version 2v10? Version 2v09 did have an issue where if you completely filled up your Bangle's storage, and then restarted, it would think that storage was corrupted and would erase it. So I guess if you did manage to completely fill up the 4MB then that could be what you're seeing? However, if you're still having issues, would it be ok for you to post your code up with some instructions to reproduce? If you can reliably get storage corrupted I'd love to be able to do it here so I can get the issue fixed. Also, not sure what everyone thinks, but how do you feel about |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-24 by Ronin Ok, Thanks @gfwilliams, I will update my firmware to 2v10. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-31 by HughB
Storage Corrupt - Yes. Not so sure about the erasing but once the corruption is deteced its needs to be pointed out regularly so that its not missed. Maybe some sort of crash dump analysis file could be generated that could be retained, uploaded, then manually deleted. This could record the answers to common questions like - what apps were installed, what was the config, mem size at the time. I'm not talking a full system image but some useful debug info that might help nail the problem down / eliminate possibilities. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-09-01 by @gfwilliams I guess potentially there's room for an 'Imager' app that just writes all of storage to a file and optionally restores it... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-08-21 by Ronin
Sometimes when I upload code to my Bangle.js in the web ide in it gives this error in the terminal:
When it displays that message it starts erasing all my apps including the clock and app launcher.
I am able to reinstall my apps afterword with the app loader, but it takes a while for me to upload the apps and organize them.
Why is this happening?
Beta Was this translation helpful? Give feedback.
All reactions