[2020.3.48f1] Possibly a critical Unity bug - Crashed: com.apple.NSURLSession-delegate

Hi.
Some of our users experienced an app crash at launch or after 5-10 seconds after. We can’t reproduce crash on our devices.
Here is Crashlytics stack trace:

Crashed: com.apple.NSURLSession-delegate
0 libsystem_platform.dylib 0x1590 _platform_strnlen + 16
1 libsystem_platform.dylib 0x1b3c _platform_strncpy + 44
2 UnityFramework 0x12228a0 fill_fopen64_filefunc + 296
3 UnityFramework 0x1c8a1f8 UNITY_LZ4_slideInputBuffer + 6044
4 UnityFramework 0x1c890fc UNITY_LZ4_slideInputBuffer + 1696
5 UnityFramework 0x1301564 unzseek64 + 910260
6 UnityFramework 0x133c580 unzseek64 + 1151952
7 UnityFramework 0x12b4bf0 unzseek64 + 596544
8 UnityFramework 0x12fd694 unzseek64 + 894180
9 UnityFramework 0x1249034 unzseek64 + 155268
10 UnityFramework 0x12f62ec unzseek64 + 864572
11 CFNetwork 0x744a8 CFURLResponseCreateWithHTTPResponse + 12456
12 CFNetwork 0x8db9c _CFHTTPMessageSetResponseProxyURL + 11060
13 libdispatch.dylib 0x2320 _dispatch_call_block_and_release + 32
14 libdispatch.dylib 0x3eac _dispatch_client_callout + 20
15 libdispatch.dylib 0xb534 _dispatch_lane_serial_drain + 668
16 libdispatch.dylib 0xc0d8 _dispatch_lane_invoke + 436
17 libdispatch.dylib 0x16cdc _dispatch_workloop_worker_thread + 648
18 libsystem_pthread.dylib 0xddc _pthread_wqthread + 288
19 libsystem_pthread.dylib 0xb7c start_wqthread + 8

It looks like something bad happening in the UNITY_LZ4_slideInputBuffer function.
All was fine with 2020.3.47f1
Please investigate. Thanks.

1 Like

bump

We’re seeing this as well. Same editor version 2020.3.48f1. Attached stack trace.

9080968–1256998–stacktrace.txt (43.5 KB)

2020.3.48f1 (officially last 2020.3 version) is completely broken and unusable.
We had to urgently release an update using the previous version 2020.3.47f1 due to this bug

Another Crashlytics stack trace:

Crashed: com.apple.NSURLSession-delegate
0 libsystem_kernel.dylib 0x6bbc __pthread_kill + 8
1 libsystem_pthread.dylib 0xd844 pthread_kill + 208
2 libsystem_c.dylib 0x1f6ac abort + 124
3 libsystem_malloc.dylib 0x1b9d8 _malloc_put + 546
4 libsystem_malloc.dylib 0x1bb88 malloc_report + 60
5 libsystem_malloc.dylib 0x1d00 free + 284
6 UnityFramework 0x1222738 fill_fopen_filefunc + 628
7 UnityFramework 0x1c8a218 UNITY_LZ4_slideInputBuffer + 6076
8 UnityFramework 0x1c890fc UNITY_LZ4_slideInputBuffer + 1696
9 UnityFramework 0x1301564 unzseek64 + 910260
10 UnityFramework 0x133c580 unzseek64 + 1151952
11 UnityFramework 0x12b4bf0 unzseek64 + 596544
12 UnityFramework 0x12fd694 unzseek64 + 894180
13 UnityFramework 0x1249034 unzseek64 + 155268
14 UnityFramework 0x12f62ec unzseek64 + 864572
15 CFNetwork 0x797dc CFURLResponseCreateWithHTTPResponse + 12180
16 CFNetwork 0x926dc _CFHTTPMessageSetResponseProxyURL + 18900
17 libdispatch.dylib 0x63094 _dispatch_call_block_and_release + 24
18 libdispatch.dylib 0x64094 _dispatch_client_callout + 16
19 libdispatch.dylib 0xa73c _dispatch_lane_serial_drain$VARIANT$mp + 644
20 libdispatch.dylib 0xb224 _dispatch_lane_invoke$VARIANT$mp + 456
21 libdispatch.dylib 0x14ec8 _dispatch_workloop_worker_thread + 632
22 libsystem_pthread.dylib 0x1e00 _pthread_wqthread + 284
23 libsystem_pthread.dylib 0x192c start_wqthread + 8

9081355--1257028--upload_2023-6-14_23-52-44.png

I’ll add our analytics to that as well(exact same stacktrace):


I updated to 2021.3.29f but still encounter this error. How to fix it :((