Skip to content

Issue: infinite lock in the NSURLSession-delegate thread #39

@marclegay

Description

@marclegay

Your Socket Mobile Developer ID

4112CFD9-278B-4FEB-B617-BB5770E10194

Environment

CaptureSDK version: 2.0.73
OS: iPadOS 26.3

Description

We have been encountering an issue with the last version of the SDK (when we upgraded from 1.9.166 to 2.0.73).

The SDK is locking indefinitely in the com.apple.NSURLSession-delegate thread (Thread 3 in the screenshot).

Image

FYI: CaptureSDK events thread (Thread 2 in the screenshot):

Image

Steps to Reproduce

Just start the SDK (no device connection needed).

Afer a few seconds, start an NSURLSession dataTask like this:

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData * _Nullable _data, NSURLResponse * _Nullable _response, NSError * _Nullable _error) {
	// This block is never reached, even after the request succeeded.
}] resume];

Expected Behavior

CaptureSDK should not lock so long the NSURLSession-delegate thread

Actual Behavior

Every NSURLSession request that is made after that never reaches its completion

Additional Context

No response

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