Watchdog tripped on phone but not on emulator - ERROR: Watchdog Tripped Error - Code Executed Too Long

Hi All,

I am writing a watch face for Garmin 235. I am using Eclipse on Windows. 

ERROR: Watchdog Tripped Error - Code Executed Too Long
DETAILS:
STORE_ID: 00000000000000000000000000000000

Is there a way I can check how much memory is available for my emulator , or to reduce the amount of memory used in the emulator?

Thanks

ak

  • The error you're seeing isn't due to memory, but because you're running too long without returning.  Probably due to a long loop somewhere in your code.

    For example, this will trigger the watchdog:

    for(var i=0;i<10000000;i++) {
    }

    Look for cases where you loop a large number of times.