iOS: Game crashed when showing a landscape interstitial ad

343 views
Skip to first unread message

Nguyen Hoai Phuong

unread,
May 31, 2020, 4:42:33 PM5/31/20
to Google Mobile Ads SDK Developers
Hello,
My game only supports portrait mode, but sometimes it gets an interstitial ad of Google which is in landscape mode, and the game will be crashed when I close that landscape interstitial ad.
Here is the stack trace:

Fatal Exception: UIApplicationInvalidInterfaceOrientation
Supported orientations has no common orientation with the application, and [GADFullScreenAdViewController shouldAutorotate] is returning YES

Fatal Exception: UIApplicationInvalidInterfaceOrientation
0  CoreFoundation                 0x227ef91b __exceptionPreprocess
1  libobjc.A.dylib                0x21f8ae17 objc_exception_throw
2  CoreFoundation                 0x227ef861 -[NSException initWithCoder:]
3  UIKit                          0x26de284d -[UIViewController __supportedInterfaceOrientations]
4  UIKit                          0x26debf4b -[UIViewController __withSupportedInterfaceOrientation:apply:]
5  UIKit                          0x26df1701 -[UIViewController _updateLastKnownInterfaceOrientationOnPresentionStack:]
6  UIKit                          0x26df1777 -[UIViewController _updateLastKnownInterfaceOrientationOnPresentionStack:]
7  UIKit                          0x26ded0ff -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:]
8  UIKit                          0x26decff3 -[UIWindow _setRotatableViewOrientation:duration:force:]
9  UIKit                          0x275ffab5 -[_UIFullscreenPresentationController _placeCounterRotationViewWithView:inWindow:fromOrientation:toOrientation:force:]
10 UIKit                          0x275ff8c9 -[_UIFullscreenPresentationController _adjustOrientationIfNecessaryInWindow:forViewController:preservingViewController:]
11 UIKit                          0x270b81a9 -[UIPresentationController _dismissWithAnimationController:interactionController:target:didEndSelector:]
12 UIKit                          0x270ddbd9 -[UIViewController _dismissViewControllerWithAnimationController:interactionController:completion:]
13 UIKit                          0x26e9dff5 -[UIViewController _dismissViewControllerWithTransition:from:completion:]
14 UIKit                          0x26e426bf -[UIViewController dismissViewControllerWithTransition:completion:]
15 UIKit                          0x270dcf91 -[UIViewController _performCoordinatedPresentOrDismiss:animated:]
16 UIKit                          0x26e42265 -[UIViewController dismissViewControllerAnimated:completion:]
17 myapp                         0xae97bf GADSafeDismissViewController + 97 (GADViewControllerAdditions.m:97)
18 myapp                         0xb907b7 GADDismissPresenterWithCompletionHandler + 96 (GADPresenting.m:96)
19 myapp                         0xba4937 -[GADClosePresenterActionMonitor handleCloseNotification] + 58 (GADClosePresenterActionMonitor.m:58)
20 myapp                         0xba4867 __66-[GADClosePresenterActionMonitor initWithPresenter:messageSource:]_block_invoke + 26 (GADClosePresenterActionMonitor.m:26)
21 Foundation                     0x23001679 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
22 Foundation                     0x22f625f3 -[NSBlockOperation main]
23 Foundation                     0x22f54bc9 -[__NSOperationInternal _start:]
24 Foundation                     0x23003931 __NSOQSchedule_f
25 libdispatch.dylib              0x2235d80f _dispatch_client_callout
26 libdispatch.dylib              0x2236bba9 _dispatch_main_queue_callback_4CF$VARIANT$mp
27 CoreFoundation                 0x227b1b6d __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
28 CoreFoundation                 0x227b0067 __CFRunLoopRun
29 CoreFoundation                 0x226ff229 CFRunLoopRunSpecific
30 CoreFoundation                 0x226ff015 CFRunLoopRunInMode
31 GraphicsServices               0x23cefac9 GSEventRunModal
32 UIKit                          0x26dd3189 UIApplicationMain
33 myapp                         0x94b4f main + 41 (main.mm:41)
34 ???                            0x223a7873 (Missing)

Here is my environment:
- Unity 2018.4.21f1
- Google Unity Admob SDK 5.1.0

Could you please help?
Thank you.

Mobile Ads SDK Forum Advisor Prod

unread,
May 31, 2020, 11:02:14 PM5/31/20
to gtt....@gmail.com, google-adm...@googlegroups.com

Hi there,

 

Thank you for reaching out to us.

 

Could you kindly provide the details below (via Reply privately to author) so that I can investigate the issue?

  • Ad unit ID/s affected
  • Copy of a sample Unity project (replicating the issue)
  • Steps to replicate the issue
  • Charles logs capturing the issue (see here on how to get started)

 

You may zip the entire Unity project (excluding the Library and Temp folders) in order to reduce its size, then send it to me via a shareable link from your Google Drive (or on any other file-sharing site that you prefer). Don't forget to send the shareable link via Reply privately to author.

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team



ref:_00D1U1174p._5004Q1ztHaF:ref
Reply all
Reply to author
Forward
0 new messages