Uncaught undefined after 2v20? #6722
Replies: 1 comment
-
Posted at 2024-03-05 by user140377 I see it too on 2v21, but everything seems to work as expected. Maybe @gfwilliams has an idea where this comes from. My applications are up to date. Posted at 2024-03-05 by @thyttan I also often (maybe always, not sure) get an Posted at 2024-03-05 by @thyttan Actually, I just noticed it's probably causing disconnects from the Web IDE Remote connection. I'll send log to @gfwilliams in a message. Posted at 2024-03-06 by @gfwilliams Thanks for checking on this - I don't think this is anything to worry about too much - I believe it comes from this line which in the past would have thrown It's a bit of a hack to ensure that if the settings are changes, at boot time no extra code gets run (because there was an exception) and the Bangle can then reload the new settings. @thinkpoop on 2v19 did you see a Posted at 2024-03-06 by thinkpoop I could've sworn I've seen "Storage Updated" in the past, but trying 2v19 and even 2v18 now, it isn't showing up. But if I go back to 2v21 and temporarily remove the hash check by updating bootupdate.js, the exception does go away. That would explain why it's only during settings updates. And why when I tried to manually remove the hash check in It hasn't been an issue, besides a lot of head scratching and thinking I broke something. Thanks! Posted at 2024-03-25 by @gfwilliams I think I was wrong to write this off - while the I believe the issue has been that the pretokeniser was pretokenising empty strings when it shouldn't have, and this caused an error - which wasn't reported properly because it was inside It seems the alarm app may have been broken by default anyway. I've just fixed the ide and the app loader, as well as the factory update image in cutting edge builds. Luckily I'm not sure how but it seems that 2v21 (including the factory image) escaped ok Posted at 2024-03-25 by thinkpoop I only noticed it when doing an update to setting.json, which would trigger that hash check exception. It looks like any new *.boot.js file would do it too though. I just updated to 2v21.69, updated sched/alarms/locale, and forced bootloader to update (all from the development app loader). The uncaught undefined still happens. Always after all of the console logs from booting. I still haven't noticed any functionality issues from it (I don't use the web ide remote connection though). Posted at 2024-03-26 by @thyttan
They have disappeared for me after updating to fw 2v21.69 and reinstalling all apps from the Posted at 2024-03-26 by thinkpoop Tried reinstalling all apps and uninstalling any custom things, then tried again with pretokenization unchecked in the app loader. Still get the exception. I could just be overlooking something.
Quick code to recreate it in the IDE (toggling quiet mode on/off):
Posted at 2024-03-27 by @gfwilliams Well, as I say the ... but only once. I was finding that on the latest builds with factory firmware, it was printing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-03-05 by thinkpoop
I'm not sure if I should log this or if it's just me (or if it's already logged and I'm just not seeing it):
After firmware version 2v20, if you make a settings change like switching from light to dark theme and back out, when BangleJS 2 reloads, an "Uncaught undefined" exception shows up at the end of the log.
I went backward in firmware versions until it went away and found:
2v19
- After reboot, no errors in the log2v20
through2v21.31
- After reboot anUncaught undefined
shows in the logI uninstalled all apps except "Simplest Clock", "Settings", and "Bootloader" while testing. Wasn't sure how to debug it further, since it seems to be happening during an event or something after boot.
Beta Was this translation helpful? Give feedback.
All reactions