Acknowledged

Instinct 2S completely hangs with BLE bg wf

i'm developing a BLE background watchface and am seeing complete watch hangs on Instinct 2S after about 1 to 2 days of running the wf (and I believe FR 965M but I have stopped testing that due to its inadequate battery.)

i'm not sure which connect iq calls are causing this but i will try to gather more info. since it happens so infrequently (i've seen it at least 3 times and have never been able to get past 2 days of runtime so i'm sure i'll see it again), i'm starting this bug report now anyway to see if others have seen it.

the only thing i can do to the watch after the hang is hold the light button for a long time to power it down, it responds to nothing else and does not update the wf at all.

  • Btw I swapped my f7p for the i2s this time so will see how that does too..

  • Great, it's always taken about 1 and 2 days, ie 24 to 48 hours but when it hangs it seems to suck out the battery so it's been off a few times and I don't really know when it died. I've only seen 3 hangs total but only tried running it that long those 3 times so never have I seen it run the wf longer than 2 days successfully.

  • Ok, I have installed a watch face of mine on an I2s.  It has a background service I have set to run every 5 minutes, when it scans for a BLE device, and if found, requests data, which is the passed to the watchface and displayed,  I'm on 16.11.  I'm also watching the log file from the device I'm connecting to, and can see when it thinks the watch connects and disconnects.

    How long is it with your app for your problem  to occur?  Should I look for a problem after 6 hours or not until tomorrow?

  • in case it helps the instinct 2s is at software version 16.11 (e4db611).

  • a little more info from the logs after today's hang... 

    there is no error in CIQ_LOG.YML (no errors in there for several days).

    the app .txt file (i had created one just to see what info it had about a hang) shows not much was going on, nothing BLE-wise, but it has some weird behavior at the hang time (the watchface hung showing 7:52AM on it) indicating the bg app (not just the bg process) died and attempted restart???

    App initialize 7:47
    onStart
    ...<watchface is working fine here>...
    onBackgroundData=[<redacted>] at 7:47
    myreturns=80
    curCtr was 242 changeCtr is 242
    <background process exited fine here, the last println is from onBackgroundData()>
    App initialize 7:52
    onStart
    getServiceDelegate: 7:52
    memory: total: 28688, used: 15744, free: 12944
    App initialize 7:42
    <time has flown backwards???>
    onStart
    devCode=<redacted>
    enabling scan
    <that message is from getInitialView(), so something restarted the whole bg app, but bg process isn't restarted>
    App initialize 7:43
    onStart
    devCode=<redacted>
    enabling scan
    <the whole bg app has attempted to restart a second time, but then nothing else at all, now we're hung>
    <i powered down and powered back up the watch here>
    App initialize 12:29
    ...<wf is back to normal>...