Acknowledged
over 1 year ago

Watchface Crashes, but Sim and Preview are Working

Hi everyone,

I'm having an issue where my generated Watchface is crashing, but both SIM and the WatchfacePreview work like a charm.

Source Code (incl .prg) here:

https://github.com/r-neuschulz/HeartsDesire

Tested on Garmin Epix Pro 2 (Gen 2).

Steps to reproduce:

  1. Build the Project
  2. Load .prg file to Device
  3. Observe how the watchface defaults to a standard watchface, but the preview looks correct (like in the SIM).
  • Argh, that is unfortunate. I just uploaded it as a Beta App, and synced it to my device - but to no avail, still the same symptoms.



    How would you proceed Troubleshooting this, Jim?

  • If you see no ciq_log files, ERA won't help, as those files are where ERA gets the crash info.  The ciq_log.yml files are the new crashes, the ciq_log.bak are when they've been synced for ERA.

  • Hi Shent,

    Thanks for your reply! Following your advise, I included several nullchecks (in addition to the position that you indicate) , but that didn't solve the issue, unfortunately.

    I will try to upload to IQ Store as beta, and have ERA (?) on it, to see where it fails. Thanks!

  • hi,

    I've had a quick look and here:

    var oldestTime = sensorIter.getOldestSampleTime().value();
    var newestTime = sensorIter.getNewestSampleTime().value();

    you should null check:

    getNewestSampleTime() as Time.Moment or Null

    getOldestSampleTime() as Time.Moment or Null

     

    What you could try is to upload your project into the IQ store as Beta so that you will be able to have ERA on it and check where it fails.

  • Hi Jim,

    Thanks for answering. Unfortunately, there is no CIQ_LOG to be found under GARMIN/Apps/Logs. Which is why I turned here.