Acknowledged

venu 2 - less time until watchdog fires?

On the venu 2 I have a report on Data Lover where the code fails due to "'Watchdog Tripped Error - Code Executed Too Long'' while iterating over the hr values to chart the "Line Chart - Hr". This is not an issue on other devices. Is the time on a venu2 before the watchdog fires maybe less than on other devices?

Error: 'Watchdog Tripped Error - Code Executed Too Long'
Details: 'Failed invoking <symbol>'
Time: 2023-01-15T09:20:58Z
Part-Number: 006-B3703-00
Firmware-Version: '11.16'
Language-Code: fre
ConnectIQ-Version: 4.1.5
Store-Id: bcb58298-3e71-4d9a-9084-169e581df99c
Store-Version: 111
Filename: CCQB2224
Appname: Data Lover
Stack:
- pc: 0x10005fe6
- pc: 0x10009066
- pc: 0x10004e0b
- pc: 0x10008f4c

  • something which adds to the case, even if you don't need full history, but just last (or first) 4 hours, it's also problematic then because applying order on the Sensorhistory object does not work properly on all devices (crashing - forgot which devices were affected)  

  • @Anshul.ConnectIQ I saw later on that it's due to the fact that the historization is longer on the venu device (eg 2880 samples for heart rate). I can work around it by limiting the scope of the loop. The question raises though if you have the possibility of the longer history should you then also not be able to browse the full history of that  type within 1 watch dog cycle. I think you ought to be able.

  •  just because the device has a higher storage doesn't warrant the need for a higher watchdog timeout, WD timer is related to the VM instruction execution and at the core of the CIQ, nonetheless I will try to bring up this argument with the team. It will most likely be rejected

  • data lover is an example app, I check complete history of historic heart rate.

    Apparently the venu 2 has more storage for this type. Question is if there's more storage should there also not be a longer watchdog timeout?

  • Do you have a code sample and know what API you were using that could have triggered this?