Fenix 3 + Connect IQ + Digic Watch = watch restart

Former Member
Former Member
Hey guys,

Some of Digic Watch users reporting a bug - the watch simply restarts. Smb. also reporting that it's somehow related to Bluetooth. The thing that there were no big changes in the code, I've just added couple layout numbers which added 3 Kb of memory up to 54 Kb.
How can I find and fix the issue of watch restart? Can't also reproduce it on my end.

Thanks.
  • I'd ask if the CIQ_LOG.txt file exists (in \GARMIN\APPS\LOGS). If it is found, you should post the contents of the file here. It will tell the firmware version of the device in question, and will provide a stack trace to help you tell what went wrong.

    I'm betting it is an out of memory condition. At 54KB you're getting close, but the actual value seen by users will depend on the heap implementation (which is part of the ConnectIQ VM, which is part of the device firmware). There were many changes to the heap recently, so chances are pretty good that a difference would be seen across firmware versions.
  • Former Member
    Former Member over 9 years ago
    I bet this is memory too. Guys reporting it have 6.90, same as mine.
  • Something to look at is the memory usage while running. The number you see in the simulator window seems to be the amount of memory used when idle, and based on complexity of the code, the memory usage is likely higher when it's running some of the code.

    One thing I've done is to use Sys.getSystemStats().usedMemory and display memory used in different parts of the code (either with Sys.println() logging or just temporarily use one of the fields you display on the screen). You'll see times you're using more than 54k, and you can see what parts of the code you want to optimize.
  • If you want help looking for opportunities to reduce memory usage, I'd be happy to help.