Skip to content

[Crash] after updating to sdk 12.14.0 - [GULNetworkURLSessionWeakHolder session] #16299

Description

@ganesh-oyo

Description

To fix a GoogleUtilities crash introduced in SDK 12.13.0, we updated our firebase SDK version to 12.14.0.
Then, we again received a new crash with title "[GULNetworkURLSessionWeakHolder session]" with 2 variants.

Variant 1 Stacktrace -
Crashed: ODCConversionService
0 libobjc.A.dylib 0x647c objc_loadWeakRetained + 204
1 oyo-ios 0x1696d98 -[GULNetworkURLSessionWeakHolder session] + 32 (GULNetworkURLSession.m:32)
2 oyo-ios 0x16991a4 __60+[GULNetworkURLSession setSessionInFetcherMap:forSessionID:]_block_invoke + 704 (GULNetworkURLSession.m:704)
3 CoreFoundation 0x19464 NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK + 24
4 CoreFoundation 0x19330 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 356
5 oyo-ios 0x169906c +[GULNetworkURLSession setSessionInFetcherMap:forSessionID:] + 701 (GULNetworkURLSession.m:701)
6 oyo-ios 0x1697338 -[GULNetworkURLSession sessionIDFromAsyncPOSTRequest:completionHandler:] + 188 (GULNetworkURLSession.m:188)
7 oyo-ios 0x169592c -[GULNetwork postURL:headers:payload:queue:usingBackgroundSession:completionHandler:] + 159 (GULNetwork.m:159)
8 oyo-ios 0x19bec1c -[ODCGroupMatchFetcher executeTask] + 4357893148
9 oyo-ios 0x19b1d00 -[ODCAsyncTaskGroupInfo startTaskWithCompletion:] + 4357840128
10 oyo-ios 0x19b1e6c -[ODCAsyncTaskGroupInfo finishTaskWithError:] + 4357840492
11 oyo-ios 0x19ba4ec -[ODCGroupConfigFetcher handlePSMConfigResponse:data:error:] + 4357874924
12 oyo-ios 0x19ba2bc __36-[ODCGroupConfigFetcher executeTask]_block_invoke + 4357874364
13 libdispatch.dylib 0x19a8 _dispatch_call_block_and_release + 32
14 libdispatch.dylib 0x1b1e4 _dispatch_client_callout + 16
15 libdispatch.dylib 0x9fb0 _dispatch_lane_serial_drain + 740
16 libdispatch.dylib 0xaaac _dispatch_lane_invoke + 392
17 libdispatch.dylib 0x14dac _dispatch_root_queue_drain_deferred_wlh + 284
18 libdispatch.dylib 0x146ac _dispatch_workloop_worker_thread + 720
19 libsystem_pthread.dylib 0x13b0 _pthread_wqthread + 292
20 libsystem_pthread.dylib 0x8c0 start_wqthread + 8

Variant - 2 stacktrace
Crashed: com.google.fira.worker
0 libobjc.A.dylib 0x921c objc_loadWeakRetained + 180
1 oyo-ios 0x1696d98 -[GULNetworkURLSessionWeakHolder session] + 32 (GULNetworkURLSession.m:32)
2 oyo-ios 0x16991a4 __60+[GULNetworkURLSession setSessionInFetcherMap:forSessionID:]_block_invoke + 704 (GULNetworkURLSession.m:704)
3 CoreFoundation 0x24e54 + 24
4 CoreFoundation 0x24c98 + 288
5 oyo-ios 0x169906c +[GULNetworkURLSession setSessionInFetcherMap:forSessionID:] + 701 (GULNetworkURLSession.m:701)
6 oyo-ios 0x1697338 -[GULNetworkURLSession sessionIDFromAsyncPOSTRequest:completionHandler:] + 188 (GULNetworkURLSession.m:188)
7 oyo-ios 0x169592c -[GULNetwork postURL:headers:payload:queue:usingBackgroundSession:completionHandler:] + 159 (GULNetwork.m:159)
8 oyo-ios 0x193f058 -[APMMeasurement uploadData] + 4370411608
9 oyo-ios 0x193fa6c -[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] + 4370414188
10 oyo-ios 0x193f400 __28-[APMMeasurement uploadData]_block_invoke.711 + 4370412544

Reproducing the issue

No response

Firebase SDK Version

12.14.0

Xcode Version

26.3

Installation Method

Swift Package Manager

Firebase Product(s)

Performance, All

Targeted Platforms

iOS

Relevant Log Output

**Variant 1 Stacktrace -** 
Crashed: ODCConversionService
0  libobjc.A.dylib                0x647c objc_loadWeakRetained + 204
1  oyo-ios                        0x1696d98 -[GULNetworkURLSessionWeakHolder session] + 32 (GULNetworkURLSession.m:32)
2  oyo-ios                        0x16991a4 __60+[GULNetworkURLSession setSessionInFetcherMap:forSessionID:]_block_invoke + 704 (GULNetworkURLSession.m:704)
3  CoreFoundation                 0x19464 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
4  CoreFoundation                 0x19330 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 356
5  oyo-ios                        0x169906c +[GULNetworkURLSession setSessionInFetcherMap:forSessionID:] + 701 (GULNetworkURLSession.m:701)
6  oyo-ios                        0x1697338 -[GULNetworkURLSession sessionIDFromAsyncPOSTRequest:completionHandler:] + 188 (GULNetworkURLSession.m:188)
7  oyo-ios                        0x169592c -[GULNetwork postURL:headers:payload:queue:usingBackgroundSession:completionHandler:] + 159 (GULNetwork.m:159)
8  oyo-ios                        0x19bec1c -[ODCGroupMatchFetcher executeTask] + 4357893148
9  oyo-ios                        0x19b1d00 -[ODCAsyncTaskGroupInfo startTaskWithCompletion:] + 4357840128
10 oyo-ios                        0x19b1e6c -[ODCAsyncTaskGroupInfo finishTaskWithError:] + 4357840492
11 oyo-ios                        0x19ba4ec -[ODCGroupConfigFetcher handlePSMConfigResponse:data:error:] + 4357874924
12 oyo-ios                        0x19ba2bc __36-[ODCGroupConfigFetcher executeTask]_block_invoke + 4357874364
13 libdispatch.dylib              0x19a8 _dispatch_call_block_and_release + 32
14 libdispatch.dylib              0x1b1e4 _dispatch_client_callout + 16
15 libdispatch.dylib              0x9fb0 _dispatch_lane_serial_drain + 740
16 libdispatch.dylib              0xaaac _dispatch_lane_invoke + 392
17 libdispatch.dylib              0x14dac _dispatch_root_queue_drain_deferred_wlh + 284
18 libdispatch.dylib              0x146ac _dispatch_workloop_worker_thread + 720
19 libsystem_pthread.dylib        0x13b0 _pthread_wqthread + 292
20 libsystem_pthread.dylib        0x8c0 start_wqthread + 8




**Variant  - 2 stacktrace** 
Crashed: com.google.fira.worker
0  libobjc.A.dylib                0x921c objc_loadWeakRetained + 180
1  oyo-ios                        0x1696d98 -[GULNetworkURLSessionWeakHolder session] + 32 (GULNetworkURLSession.m:32)
2  oyo-ios                        0x16991a4 __60+[GULNetworkURLSession setSessionInFetcherMap:forSessionID:]_block_invoke + 704 (GULNetworkURLSession.m:704)
3  CoreFoundation                 0x24e54 <redacted> + 24
4  CoreFoundation                 0x24c98 <redacted> + 288
5  oyo-ios                        0x169906c +[GULNetworkURLSession setSessionInFetcherMap:forSessionID:] + 701 (GULNetworkURLSession.m:701)
6  oyo-ios                        0x1697338 -[GULNetworkURLSession sessionIDFromAsyncPOSTRequest:completionHandler:] + 188 (GULNetworkURLSession.m:188)
7  oyo-ios                        0x169592c -[GULNetwork postURL:headers:payload:queue:usingBackgroundSession:completionHandler:] + 159 (GULNetwork.m:159)
8  oyo-ios                        0x193f058 -[APMMeasurement uploadData] + 4370411608
9  oyo-ios                        0x193fa6c -[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] + 4370414188
10 oyo-ios                        0x193f400 __28-[APMMeasurement uploadData]_block_invoke.711 + 4370412544

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions