Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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

Discussion in 'iOS and tvOS' started by Arty_Brest, May 23, 2023.

  1. Arty_Brest

    Arty_Brest

    Joined:
    Feb 26, 2021
    Posts:
    9
    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.
     
    Coco07 likes this.
  2. Coco07

    Coco07

    Joined:
    Mar 7, 2017
    Posts:
    49
  3. C-Gabriel

    C-Gabriel

    Joined:
    Jan 27, 2016
    Posts:
    118
    We're seeing this as well. Same editor version 2020.3.48f1. Attached stack trace.
     

    Attached Files:

    Last edited: Jun 14, 2023
  4. Arty_Brest

    Arty_Brest

    Joined:
    Feb 26, 2021
    Posts:
    9
    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

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

    upload_2023-6-14_23-44-2.png
     
  5. Coco07

    Coco07

    Joined:
    Mar 7, 2017
    Posts:
    49
    I'll add our analytics to that as well(exact same stacktrace):
    Bildschirmfoto 2023-06-15 um 13.23.32.png
    Bildschirmfoto 2023-06-15 um 13.25.33.png
     
  6. magiskfvn

    magiskfvn

    Joined:
    Apr 9, 2022
    Posts:
    2
    I updated to 2021.3.29f but still encounter this error. How to fix it :((