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

Image Background Clock: 88:88:88 #406

Closed
jjok opened this issue May 11, 2020 · 6 comments
Closed

Image Background Clock: 88:88:88 #406

jjok opened this issue May 11, 2020 · 6 comments

Comments

@jjok
Copy link
Contributor

jjok commented May 11, 2020

Hi. I've just updated to the latest version of Image Background Clock and it seems like, each time it draws the time, it's drawing over the top of the old time, without clearing a space. So each character eventually ends up as an 8. I'm pretty sure it wasn't doing this in version 0.02, which I previously had installed, but I can't see where in the code the problem was introduced. Thanks.

@nebbishhacker
Copy link

I just ran into the same issue on my watch.

As far as I can tell the imgclock.face.bg file got corrupted - require("Storage").read("imgclock.face.bg") returned an empty string, and I had to run require("Storage").erase("imgclock.face.bg") twice in the IDE before it disappeared from storage.

Possibly related to espruino/Espruino#1801?

@nebbishhacker
Copy link

nebbishhacker commented May 12, 2020

And it happened again! Once again, I was able to fix it by erasing imgclock.face.bg. It's like there's a zero-size copy of the file hiding the real file:

>let s = require("Storage");
=function () { [native code] }
>s.list();
=[
  ".boot0",
  ".bootcde",
  ".trishig",
  "launch.app.js",
  "setting.app.js",  ...
  "imgclock.info",
  "imgclock.app.js",
  "imgclock.face.img",
  "setting.json",
  "imgclock.face.bg"
 ]
>s.read("imgclock.face.bg")
=""
>s.erase("imgclock.face.bg")
=undefined
>s.list()
=[
  ".boot0",
  ".bootcde",
  ".trishig",
  "launch.app.js",
  "setting.app.js",  ...
  "imgclock.info",
  "imgclock.app.js",
  "imgclock.face.img",
  "setting.json",
  "imgclock.face.bg"
 ]
>s.read("imgclock.face.bg")
="\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7" ... "\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7\xD7"
>s.erase("imgclock.face.bg")
=undefined
>s.list()
=[
  ".boot0",
  ".bootcde",
  ".trishig",
  "launch.app.js",
  "setting.app.js",  ...
  "imgclock.face.json",
  "imgclock.info",
  "imgclock.app.js",
  "imgclock.face.img",
  "setting.json"
 ]

Edit: For reference, I'm on version 2v05.1 commit 098aa0d84 of the firmware.

@gfwilliams
Copy link
Member

It might be worth updating the firmware just in case. I'm not really sure how a zero size file could happen unless there was some sort of filesystem issue

@nebbishhacker
Copy link

Upgrading to 2v05.73 seems to have done the trick - it's been two weeks and I haven't encountered the issue again.

@gfwilliams
Copy link
Member

Great!

@jjok
Copy link
Contributor Author

jjok commented Jun 15, 2020

I've just upgraded to 2v06 and it's now working. 👍

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

No branches or pull requests

3 participants