Skip to content

Issue: Deinitialize taking too long causing sys kill #14

@TheDude70

Description

@TheDude70

Your Socket Mobile Developer ID

35dafa26-3207-ea11-a812-000d3a378457

Environment

OS version: iOS 18.3
SDK version: latest
Device: iPad

Description

After using App then when closing the app (swipe up) the app gets sys killed for exceeding 5 seconds to gracefully close. From the crash log it indicates that the issue lies with:

+[NSThread sleepForTimeInterval:]
-[SKTBleManager deinitialize]
CSktBleDeviceManagerObject::NotifyRemoval()
SktCaptureProtocol::ResetBleDeviceManager()
Failed to terminate gracefully after 5.0s
code:0x8BADF00D

We do not call close or deinitialize ourselves directly.

Steps to Reproduce

Have BLE device attached to iPad
Initialize CaptureRN
use device (which works perfectly)
Close app which triggers the Capture SDK deinitialize which in turn cause sys kill

Expected Behavior

Deinitialize does not cause crash, but gracefully terminates

Actual Behavior

App gets sys killed for taking to long to deinitialize

Additional Context

crash-log.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions