Dear Apple Developer Team,
We have encountered a recurring issue where our application crashes when initiating an NSURLSession task immediately after startup. The crash appears to be sporadic, but we have observed a few instances where it consistently happens right after launching the app and starting an NSURLSession task.
The crash stack trace is as follows:
- _objc_retain_x20
- _nw_activity_is_equal
- ___nw_activity_activate_block_invoke
- nw_synchronize<nw::unfair_mutex, void () block_pointer __strong>(nw::unfair_mutex*, void (&&)() block_pointer __strong)
- _nw_activity_activate
- sub_1893e49b0
From the stack trace, it appears that the crash is related to network activity synchronization (nw_synchronize) and activity activation (_nw_activity_activate). This issue could potentially be linked to some internal network state management or threading issues within the networking stack.
Steps to Reproduce:
1. Launch the app.
2. Immediately initiate an NSURLSession task.
Most important, it seems be happen after iOS17.
Hoping your kind answer!