Watchface crashes

Former Member
Former Member
This is my watchface and I got a report from a user who has provided the attached err log file. The user says that when changing the background color in the watchface settings (part of my configuration) he experiences a crash.

I tested the same scenario on the simulator and on my watch, which happens to be the "same" Vivoactive HR with the same firmware.

Any idea how I can investigate further?



Thank you
  • How is the user changing settings? Are you doing the same when you try to reproduce the problem? I ask because there have been a bunch of known issues when reading settings back after they've been saved from Garmin Connect Mobile on Android. The New Developer FAQ #10 briefly mentions a workaround for a known issue on that configuration where numbers come back as strings. If you do arithmetic on a string, things don't go well.

    Many of us have written up our own helper for accessing data via setProperty() and getProperty() to avoid this issue and others that have come up in the past. It isn't an ideal solution, but it does help to avoid the problem. Here is a link to the code I was using at one time.

    Travis
  • Former Member
    Former Member
    Montessori RAILWAY

    The settings are being changed in the Connect App and I have done the same thing. I have a possibly related problem on Fenix 3 that people reported, a watch that I don't have, so the only thing I can do is run it in the simulator where it works.
    I placed some guard conditions around getting properties and someone said that it doesn't crash, but it doesn't display anything (but time), which means that the problem is very likely in the get property.
    Thank you for the suggestions, I will definitely look into the work-around.
    Tom