Hi everyone -- I've been working on my first watch face, and found an error reported by a user. Essentially, immediately after installing the watch face, it crashed (even after several installs and uninstalls). It did finally end up working after the device was turned off then back on. I've used the ERA tool to help pinpoint, but could use some advice in my learning process!
The ERA log tool reports:
Error Name: Unhandled Exception
Occurrences: 6
First Occurrence: 2020-04-24
Last Occurrence: 2020-04-24
Devices:
fēnix® 6: 8.10
App Versions: 1.0.0
Languages: eng
Backtrace:
SqWatchFaceBackground.draw:17
Rez.WatchFace:28
Rez.WatchFace:28
SqWatchFaceView.updateDisplay:211
SqWatchFaceView.onUpdate:76
line 76 of my onUpdate function calls updateDisplay(dc) [I originally tried to set this up to not have to code some of the same things in onPartialUpdate, but had too many issues]. I will probably remove this extra function and put everything back in updateDisplay.
line 211 of of updateDisplay is: View.onUpdate(dc); [similar to the example watch faces provided to redraw the layout]
How do I find what Rez.WatchFace: 28 is?
Line 17 SqWatchFaceBackground.draw is: dc.setColor(Graphics.COLOR_TRANSPARENT, Application.getApp().getProperty("BackgroundColor")); And this remained unmodified from the initial sample when setting up the watch face for development.
Near as I can guess, is it may be something with lacking a property value for "BackgroundColor" at that point in execution, but I'm not really sure. The watch face has been installed on several other Fenix6 watches (including mine), and that is the only device an issue was noted. Is there anything in the device reboot and then reinstall that may help determine if this is an issue with my code or just an odd exception? I
Thanks!!