Crash when playing ads on iPad3 (UnityAds v.2.0.6)

I’m testing an iPad3 with the latest version of Unity 5.5.0f3 and I’m running the Asset Store package of Unity Ads 2.0.6. When I play an ad on the device, I got the following crash (see log below) in the release app while running in XCode. I also tested this on an iPhone6 with the device registered with UnityAds in debug/test mode and also with UnityAds in production mode and there was no crash on that device. Perhaps an issue with a corrupted the Ad cache? But after uninstalling and reinstalling the app it still crashes. I posted this bug as case #858326 with a more complete log.

MyAppName[213:88425] -[AVKeyPathFlattener length]: unrecognized selector sent to instance 0x1ccfafd0
MyAppName[213:88425] Uncaught exception: NSInvalidArgumentException: -[AVKeyPathFlattener length]: unrecognized selector sent to instance 0x1ccfafd0
(
0 CoreFoundation 0x22c2b933 + 150
1 libobjc.A.dylib 0x223c6e17 objc_exception_throw + 38
2 CoreFoundation 0x22c312b5 + 0
3 CoreFoundation 0x22c2eee1 + 700
4 CoreFoundation 0x22b5a238 _CF_forwarding_prep_0 + 24
5 MyAppName 0x00f8157d -[UADSWebViewCallback invokeWithStatus:error: params:] + 138
6 MyAppName 0x00f81779 -[UADSWebViewCallback invoke:] + 158
7 MyAppName 0x00f682a5 __54+[UADSApiAdUnit WebViewExposed_setTransform:callback:]_block_invoke + 108
8 libdispatch.dylib 0x02cf8b7f _dispatch_call_block_and_release + 10
9 libdispatch.dylib 0x02cf8b6b _dispatch_client_callout + 22
10 libdispatch.dylib 0x02cfd655 _dispatch_main_queue_callback_4CF + 1680
11 CoreFoundation 0x22bedb6d + 8
12 CoreFoundation 0x22bec067 + 1574
13 CoreFoundation 0x22b3b229 CFRunLoopRunSpecific + 520
14 CoreFoundation 0x22b3b015 CFRunLoopRunInMode + 108
15 GraphicsServices 0x2412bac9 GSEventRunModal + 160
16 UIKit 0x2720f189 UIApplicationMain + 144
17 MyAppName 0x0008814b main + 202
18 libdyld.dylib 0x227e3873 + 2
)
MyAppName[213:88425] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[AVKeyPathFlattener length]: unrecognized selector sent to instance 0x1ccfafd0’
libc++abi.dylib: terminating with uncaught exception of type NSException

@rasmus-unity Any thoughts on this one?

@tesselation, sorry for delay. We’re investigating, and have managed to reproduce here. Seems to be related to useDeviceOrientationForVideo setting in dashboard.

/Rasmus

1 Like

We have deployed a server-side change which should have fixed this issue. Please verify and let us know, thanks.

/Rasmus

Seems to work now, thanks!

1 Like