Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Crashes must come from ironSource

Discussion in 'LevelPlay' started by LeekAndRibs, Jun 23, 2023.

  1. LeekAndRibs

    LeekAndRibs

    Joined:
    Mar 7, 2017
    Posts:
    49
    Hi dear forum members,

    I'm getting extremely many Android and iOS crashes since a few days and I'm very sure that they must come from ironSource or some installed adapter, because these crashes started only when I updated the ironSource SDK and with it of course all other adapters. Also, according to Firebase, the crash always occurs pretty much 30-40s on Android and 4-6s on iOS - after the "ad_impression" event. I can't tell much from the stack trace, unfortunately, except that it must have something to do with "AssetLoader.downloadTemplateZip" or "NetworkClient.loadAsset".

    For Android, unfortunately I can't get a readable crash log even though the symbols were successfully uploaded:
    Code (CSharp):
    1. Crashed: Thread: SIGSEGV  0x0000000000000000
    2. #00 pc 0x31768 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    3. #01 pc 0x31564 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    4. #02 pc 0x2f0f8 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    5. #03 pc 0x45660 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    6. #04 pc 0x40d9c libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    7. #05 pc 0x40d78 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    8. #06 pc 0x40d78 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    9. #07 pc 0x40d78 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    10. #08 pc 0x40d78 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    11. #09 pc 0x40d78 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    12. #10 pc 0x4c710 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    13. #11 pc 0x41360 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    14. #12 pc 0x4e964 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    15. #13 pc 0x5a824 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    16. #14 pc 0x9f038 libglslcompiler.so (BuildId: cfe6321615336eb758502e560ad2040d)
    17. #15 pc 0x6b7fc libGLESv2_POWERVR_ROGUE.so (BuildId: f3ecde2889a8beaaaebecf30d9bd436a)
    18. #16 pc 0x6b438 libGLESv2_POWERVR_ROGUE.so (BuildId: f3ecde2889a8beaaaebecf30d9bd436a)
    19. #17 pc 0x80300 libGLESv2_POWERVR_ROGUE.so (BuildId: f3ecde2889a8beaaaebecf30d9bd436a)
    20. #18 pc 0x52ff754 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    21. #19 pc 0x52f26c4 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    22. #20 pc 0x52a0640 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    23. #21 pc 0x52bb2d0 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    24. #22 pc 0x2fe45dc libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    25. #23 pc 0x2fe3f54 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    26. #24 pc 0x2fe3d34 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    27. #25 pc 0x2fe3b98 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    28. #26 pc 0x2ffb254 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    29. #27 pc 0x2108368 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    30. #28 pc 0x2100c1c libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    31. #29 pc 0x20f89e0 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    32. #30 pc 0x20f83c4 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    33. #31 pc 0x20f7f54 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    34. #32 pc 0x20f7db4 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    35. #33 pc 0x20d28dc libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    36. #34 pc 0x21367b0 libmonochrome.so (BuildId: 0b2367b167acbde260285a816aaa42bb5e9ef89d)
    37. #35 pc 0xe1100 libc.so (BuildId: 676a709a0ee633ec9cf6ab05ec6410ae)
    38. #36 pc 0x83ab0 libc.so (BuildId: 676a709a0ee633ec9cf6ab05ec6410ae)
    And for iOS I get the following CrashReport:

    Code (CSharp):
    1.  
    2. Incident Identifier: 7FCFEB73-717C-411A-AB24-4587D454D898
    3. Hardware Model:      iPad12,1
    4. Process:             MyApp [2041]
    5. Path:                /private/var/containers/Bundle/Application/066D921C-7365-4FC3-962F-E46D12DDF35E/MyApp.app/MyApp
    6. Identifier:          com.myapp.app
    7. Version:             1.6.0 (88)
    8. AppStoreTools:       14E221
    9. AppVariant:          1:iPad12,1:15
    10. Code Type:           ARM-64 (Native)
    11. Role:                Foreground
    12. Parent Process:      launchd [1]
    13. Coalition:           com.myapp.app [947]
    14.  
    15. Date/Time:           2023-06-23 18:33:01.2985 +1000
    16. Launch Time:         2023-06-23 18:21:27.1017 +1000
    17. OS Version:          iPhone OS 16.5 (20F66)
    18. Release Type:        User
    19. Report Version:      104
    20.  
    21. Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    22. Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
    23. Exception Codes: 0x0000000000000001, 0x0000000000000000
    24. VM Region Info: 0 is not in any region.  Bytes before following region: 4371660800
    25.       REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
    26.       UNUSED SPACE AT START
    27. --->  
    28.       __TEXT                   104924000-104928000 [   16K] r-x/r-x SM=COW  …yApp
    29. Termination Reason: SIGNAL 11 Segmentation fault: 11
    30. Terminating Process: exc handler [2041]
    31.  
    32. Triggered by Thread:  54
    33.  
    34. Thread 54 name:
    35. Thread 54 Crashed:
    36. 0   libsystem_platform.dylib         0x0000000214c7c530 _platform_strnlen + 16
    37. 1   libsystem_platform.dylib         0x0000000214c7cadc _platform_strncpy + 44 (strncpy.c:30)
    38. 2   UnityFramework                   0x000000010cca06fc fopendisk64_file_func + 72
    39. 3   UnityFramework                   0x000000010d686274 unz64local_getByte + 24 (unzip.c:215)
    40. 4   UnityFramework                   0x000000010d686274 unz64local_getLong + 124 (unzip.c:278)
    41. 5   UnityFramework                   0x000000010d685178 unzOpenInternal + 1424 (unzip.c:696)
    42. 6   UnityFramework                   0x000000010cd7f968 specialized static Zip.unzipFile(_:destination:overwrite:password:progress:fileOutputHandler:) + 1368
    43. 7   UnityFramework                   0x000000010cdbc80c specialized static ZipUtils.unzip(zipUrl:to:) + 64
    44. 8   UnityFramework                   0x000000010cd32c90 closure #1 in AssetLoader.downloadTemplateZip(for:completion:) + 1252
    45. 9   UnityFramework                   0x000000010cd7b964 partial apply for closure #1 in AssetLoader.downloadTemplateZip(for:completion:) + 160
    46. 10  UnityFramework                   0x000000010ccc705c closure #1 in NetworkClient.loadAsset(from:completion:) + 2800
    47. 11  UnityFramework                   0x000000010cd74554 thunk for @escaping @callee_guaranteed (@in_guaranteed URL?, @guaranteed NSURLResponse?, @guaranteed Error?) -> () + 208
    48. 12  CFNetwork                         0x00000001b6a64a40 __53-[__NSURLSessionLocal _downloadTaskWithTaskForClass:]_block_invoke + 484 (LocalSession.mm:1148)
    49. 13  CFNetwork                         0x00000001b6a7e12c __58-[__NSCFLocalDownloadTask _private_completionAfterMetrics]_block_invoke_3 + 88 (LocalDownloadTask.mm:1001)
    50. 14  libdispatch.dylib                 0x00000001bcea9320 _dispatch_call_block_and_release + 32 (init.c:1518)
    51. 15  libdispatch.dylib                 0x00000001bceaaeac _dispatch_client_callout + 20 (object.m:560)
    52. 16  libdispatch.dylib                 0x00000001bceb2534 _dispatch_lane_serial_drain + 668 (queue.c:3885)
    53. 17  libdispatch.dylib                 0x00000001bceb30d8 _dispatch_lane_invoke + 436 (queue.c:3976)
    54. 18  libdispatch.dylib                 0x00000001bcebdcdc _dispatch_workloop_worker_thread + 648 (queue.c:6507)
    55. 19  libsystem_pthread.dylib           0x0000000214d12ddc _pthread_wqthread + 288 (pthread.c:2618)
    56. 20  libsystem_pthread.dylib           0x0000000214d12b7c start_wqthread + 8 (:-1)
    57.  
    I could of course undo the update now, only then I would have to update each adapter individually and submit an update each time, since I can't reproduce the error myself. Maybe someone can give me a hint where to start looking?

    Thank you very much! :)

    Best,
    Coco07
     
    Last edited: Jun 23, 2023
  2. cnguyen_unitylevelplay

    cnguyen_unitylevelplay

    Unity Technologies

    Joined:
    Mar 23, 2023
    Posts:
    155
  3. LeekAndRibs

    LeekAndRibs

    Joined:
    Mar 7, 2017
    Posts:
    49
    I have already opened a ticket for the case. Unfortunately, ironSource support needs more detailed information about the case, which I can't provide, as it seems to be encrypted or native code that can't be decrypted in either Crashlytics or the Developer Console. I have to say, if this were the case, I would fix the code location responsible for this myself, as it is much faster than waiting weeks for an update.

    I have restored all ironSource adapters to the state where there were no bugs yet(about 2 months). I have to say, I'm scared every time I update an ironSource adapter as they don't seem to be tested before release and it's kind of a gamble.

    If it is still needed, the ticket number is "00342570".

    ps: I have now downgraded the ironSource adapter to 7.3.0.1 and the UnityAds adapter to 4.3.33.0 and now everything is running beautifully. So the reason is really one of the two adapters, which massively causes crashes. Still questionable why something like this goes unnoticed :/

    Best,
    Coco07
     
    Last edited: Jun 27, 2023
  4. Maxim-Klochkov

    Maxim-Klochkov

    Joined:
    Sep 28, 2015
    Posts:
    1

    Hi! I have the same issue.

    now I’m trying to find working combination.
    And can’t find Unity adapter version that you used
    Hi! I have the same issue.

    now I’m trying to find working combination.
    And can’t find Unity adapter version that you used.
    It’s only 4.3.31 and next one 4.3.4

    Can you check the version that works for you?
     
  5. LeekAndRibs

    LeekAndRibs

    Joined:
    Mar 7, 2017
    Posts:
    49
    Hi Maxim,

    these two adapter versions are working for us:
    adapters.png

    Good luck! :)

    Best,
    Coco07
     
  6. Brother_77

    Brother_77

    Joined:
    Feb 8, 2019
    Posts:
    233
    Hi, how to downgrade adaptors ? I installed the newest and have many errors regarding SDK and Gradle
     
  7. roto9

    roto9

    Joined:
    Jan 8, 2020
    Posts:
    1
    You need to change the versions manually to what you want in the file called "IronSourceSDKDependencies.xml".
    Then do the same for whatever adapters.
     
    Brother_77 likes this.
  8. kojagiri

    kojagiri

    Joined:
    Aug 9, 2022
    Posts:
    9
    This issue is still there as of Jan 2024. funny how ironsource became unstable after unity bought them. Hope it gets fixed soon, this is really frustrating
     
    Illume-Tec likes this.
  9. farvind_unity

    farvind_unity

    Joined:
    Feb 2, 2024
    Posts:
    2
    So what's the stable ironsource version to use ?