Acknowledged

Datafield crashes when updating SDK from 6.3.1 to 7.3.1

Hello,

My datafield registers to 3 BLE GATT profiles with Toybox.BluetoothLowEnergy.registerProfile(), the first one registered is a custom service with 3 characteristics.
With SDK 6.3.1 registration is ok.
With SDK 7.3.1 first registration failed, unhandled error is returned in callback onProfileRegister() and then app crashes.
My custom service has 3 characteristics, 1 to write and 2 to notify. If I remove 1 characteristic to notify, there is no crash.

The problem is reproduced on simulator, see logs in attachment.

Is there any major changes in BLE since SDK 7 ?



Parents
  • File attachment failed in the post, here are the logs:

    connectIQ_6.3.1:
    Run / Device: fenix843mm / Options:
    Build / Device: fenix843mm / Options:
    BUILD SUCCESSFUL
    [D][ActiveLookBLE::ActiveLook] setUp [null, Obj: 231]
    [D][ActiveLookBLE::ActiveLook] initialize []
    [D][ActiveLookBLE::ActiveLook] setUp [Primary service registered]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 0]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 1]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 1]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookBLE::ActiveLook] onScanStateChange [1, 0]
    [D][ActiveLookBLE::ActiveLook] onScanStateChange [1, STATUS_NOT_ENOUGH_RESOURCES, 0]
    [D][ActiveLookSDK::ALSDK] onScanStateChange [1, 1]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0783B03E-8535-B5A0-7140-A304D2495CB7, 0, 0]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [+1, 0783B03E-8535-B5A0-7140-A304D2495CB7, 0, 1]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [Device info service registered]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0000180A-0000-1000-8000-00805F9B34FB, 0, 1]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [+1, 0000180A-0000-1000-8000-00805F9B34FB, 0, 2]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [Battery service registered]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0000180F-0000-1000-8000-00805F9B34FB, 0, 2]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [+1, 0000180F-0000-1000-8000-00805F9B34FB, 0, 3]


    connectIQ_7.3.1_BLE_status_254:
    Run / Device: fenix843mm / Options:
    Build / Device: fenix843mm / Options:
    BUILD SUCCESSFUL
    [D][ActiveLookBLE::ActiveLook] setUp [null, Obj: 231]
    [D][ActiveLookBLE::ActiveLook] initialize []
    [D][ActiveLookBLE::ActiveLook] setUp [Primary service registered]

    Error: System Error
    Details: Profile Registration Unhandled Error
    Stack:
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0783B03E-8535-B5A0-7140-A304D2495CB7, 254, 0]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 0]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 1]
    Encountered an app crash.
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]



Comment
  • File attachment failed in the post, here are the logs:

    connectIQ_6.3.1:
    Run / Device: fenix843mm / Options:
    Build / Device: fenix843mm / Options:
    BUILD SUCCESSFUL
    [D][ActiveLookBLE::ActiveLook] setUp [null, Obj: 231]
    [D][ActiveLookBLE::ActiveLook] initialize []
    [D][ActiveLookBLE::ActiveLook] setUp [Primary service registered]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 0]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 1]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 1]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookBLE::ActiveLook] onScanStateChange [1, 0]
    [D][ActiveLookBLE::ActiveLook] onScanStateChange [1, STATUS_NOT_ENOUGH_RESOURCES, 0]
    [D][ActiveLookSDK::ALSDK] onScanStateChange [1, 1]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0783B03E-8535-B5A0-7140-A304D2495CB7, 0, 0]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [+1, 0783B03E-8535-B5A0-7140-A304D2495CB7, 0, 1]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [Device info service registered]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0000180A-0000-1000-8000-00805F9B34FB, 0, 1]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [+1, 0000180A-0000-1000-8000-00805F9B34FB, 0, 2]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [Battery service registered]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0000180F-0000-1000-8000-00805F9B34FB, 0, 2]
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [+1, 0000180F-0000-1000-8000-00805F9B34FB, 0, 3]


    connectIQ_7.3.1_BLE_status_254:
    Run / Device: fenix843mm / Options:
    Build / Device: fenix843mm / Options:
    BUILD SUCCESSFUL
    [D][ActiveLookBLE::ActiveLook] setUp [null, Obj: 231]
    [D][ActiveLookBLE::ActiveLook] initialize []
    [D][ActiveLookBLE::ActiveLook] setUp [Primary service registered]

    Error: System Error
    Details: Profile Registration Unhandled Error
    Stack:
    [D][ActiveLookBLE::ActiveLook] onProfileRegister [0783B03E-8535-B5A0-7140-A304D2495CB7, 254, 0]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 0]
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]
    [D][ActiveLookSDK::ALSDK] startGlassesScan []
    [D][ActiveLookBLE::ActiveLook] fixScanState [0, 0, 1]
    Encountered an app crash.
    [D][ActiveLookBLE::ActiveLook] requestScanning [true]



Children
No Data