AppLovin / AppLovin-MAX-SDK-iOS

Other
92 stars 74 forks source link

[Crash] UnityAdsRewardedAdapter #329

Closed panshengneng closed 6 months ago

panshengneng commented 6 months ago

MAX SDK Version

Max Unity Version 6.5.2, Max iOS 12.5, Unity Network 4.11.3.1

Device/Platform Info

iOS 17.5.1, Iphone 12

Current Behavior

  Crashed: com.apple.main-thread

0 libsystem_kernel.dylib 0xc42c pthread_kill + 8 1 libsystem_pthread.dylib 0x7c0c pthread_kill + 268 2 libsystem_c.dylib 0x75ba0 abort + 180 3 libswiftCore.dylib 0x3a6690 swift::fatalError(unsigned int, char const, ...) + 134 4 libswiftCore.dylib 0x3a66b0 swift::warningv(unsigned int, char const, char) + 30 5 libswiftCore.dylib 0x3a6874 swift::swift_abortRetainUnowned(void const) + 32 6 libswiftCore.dylib 0x405550 swift_unknownObjectUnownedTakeStrong + 74 7 AppLovinSDK 0x185584 -[ALDCMPNetworksTableViewController .cxx_destruct] + 864 8 UnityFramework 0x2933cac specialized UnityAdsRewardedAdapterDelegate.unityAdsAdFailed(toLoad:withError:withMessage:) + 76408 9 UnityFramework 0x2933a18 @objc UnityAdsRewardedAdapterDelegate.unityAdsAdFailed(toLoad:withError:withMessage:) + 75748 10 UnityFramework 0x32c18b4 __78-[UADSLoadModuleDelegateWrapper unityAdsAdFailedToLoad:withError:withMessage:]_block_invoke + 6460 11 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32 12 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 13 libdispatch.dylib 0x125a4 _dispatch_main_queue_drain + 988 14 libdispatch.dylib 0x121b8 _dispatch_main_queue_callback_4CF + 44 15 CoreFoundation 0x56710 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 16 CoreFoundation 0x53914 CFRunLoopRun + 1996 17 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 18 GraphicsServices 0x11a8 GSEventRunModal + 164 19 UIKitCore 0x40a90c -[UIApplication _run] + 888 20 UIKitCore 0x4be9d0 UIApplicationMain + 340 21 UnityFramework 0x280a294 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 96 (main.mm:96) 22 BlockPuzzle 0x412c main + 28 (main.mm:28)

I review code and suspected that something was wrong with the log , May 22 2024 commit Sha ec9bbf0881d77fb77f2580987e50a860340fa458

Expected Behavior

No response

How to Reproduce

The screen breaks when the app displays unity ads reward

Additional Info

No response

thomasmso commented 6 months ago

@panshengneng - thanks for raising this and apologies for the inconvenience. This is an issue with the latest UnityAds adapter written in Swift. We're in the process of rolling that adapter back. @Vedant-Mehta39 will let you know when that adapter is released. In the meantime you can also roll back to the last stable UnityAds adapter v4.11.3.0.

thomasmso commented 6 months ago

Just pushed v4.13.3.2: https://github.com/AppLovin/AppLovin-MAX-SDK-iOS/commit/4d20fe24644741bb44a10f5bbc24c6fb696b01bf. Please let us know if any other issues occur.

panshengneng commented 6 months ago

@thomasmso thx