appodeal/appodeal-ios-demo

Weir crash when showing RewardingVideo NSInvalidArgumentException

Closed this issue · 0 comments

Hi,

Some users of my app got crash when trying to show rewarded video. I can't reproduce this error, even after many test case. The code is executed in the main thread and i'm checking if i'm still on the view before calling Appodeal.showAd(AppodealShowStyle.rewardedVideo, rootViewController: self)

Did someone know how to fix this ? Should I use the beta sdk ?

Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x185ea9d04 __exceptionPreprocess
1 libobjc.A.dylib 0x1850f8528 objc_exception_throw
2 CoreFoundation 0x185ea9c4c -[NSException initWithCoder:]
3 Foundation 0x1868062a0 -[NSBundle initWithURL:]
4 Foundation 0x186806224 +[NSBundle bundleWithURL:]
5 0x100ecb000 __27+[NSBundle(APD) apd_bundle]_block_invoke
6 libdispatch.dylib 0x18582d048 _dispatch_client_callout
7 libdispatch.dylib 0x185830710 dispatch_once_f$VARIANT$mp
8 0x100ecaf88 +[NSBundle(APD) apd_bundle]
9 0x100e33598 -[APDComplainButton collapse]
10 0x100e33478 +[APDComplainButton cutButtonWithType:withType:]
11 0x100ed1f50 -[UIView(APDComplain) apd_addComplainViewWithType:andTracking:]
12 0x100e91c58 -[APDRewardedVideo addComplainWithTracking:]
13 0x100e90f44 -[APDRewardedVideo modalMediatedAdDidAppear:]
14 0x100e6da14 -[APDModalMediatedAd modalAdapterWillPresentAd:]
15 0x100e71a38 -[APDMRAIDRewardedVideoAdapter mraidInterstitialWillShow:]
16 0x100e1b348 -[APDAppodealXMRAIDRewardedVideoAdapter mraidInterstitialWillShow:]
17 0x100f13f8c -[PodAppodeal_SKMRAIDInterstitial mraidViewWillExpand:]
18 0x100f19620 -[PodAppodeal_SKMRAIDView expand:]
19 0x100f13c34 -[PodAppodeal_SKMRAIDInterstitial show]
20 0x100e70f64 -[APDMRAIDRewardedVideoAdapter presentAdFromViewController:]
21 0x100e6d4e0 -[APDModalMediatedAd presentFromViewController:]
22 0x100e92004 -[APDRewardedVideoMediatedAd presentFromViewController:]
23 0x100e8f7d4 -[APDRewardedVideo presentFromViewController:]
24 0x100e5f818 -[APDLegacySdk presentRewardedVideo]
25 0x100e5f9ac -[APDLegacySdk presentRewardedVideoFromRootViewController:]
26 0x100ec9034 +[Appodeal showAd:forPlacement:rootViewController:]
27 0x100c6125c PlayTicketController.(validateGrilleTouched(Any) -> ()).(closure #1) (PlayTicketController.swift:261)