Crash on iPad with iOS 26 only: -[UIPrintPanelViewController viewControllers]: unrecognized selector triggered from GMA banner refresh

59 views
Skip to first unread message

VS

unread,
Oct 29, 2025, 12:00:37 PM (7 days ago) Oct 29
to Google Mobile Ads SDK Developers
Our app crashes only on iPad with iOS 26.x when a GADBannerView loads or refresh ad while the iOS print dialog is visible (UIPrintPanelViewController).

Crash reason:

-[UIPrintPanelViewController viewControllers]: unrecognized selector

Excerpt from the crash report:

Hardware Model:      iPad15,7
AppVariant:          1:iPad15,7:18
Code Type:           ARM-64 (Native)
Role:                Foreground
OS Version:          iPhone OS 26.0.1 (23A355)
Exception Type:      EXC_CRASH (SIGABRT)
Exception Codes:     0x0000000000000000, 0x0000000000000000
Exception Reason:    -[UIPrintPanelViewController viewControllers]: unrecognized selector sent to instance 0x1274bd900
Termination Reason:  SIGNAL 6 Abort trap: 6
Terminating Process: TheAppName [...]

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                 0x19c41a8c8 __exceptionPreprocess + 164 (NSException.m:249)
1   libobjc.A.dylib               0x1993917c4 objc_exception_throw + 88 (objc-exception.mm:356)
2   CoreFoundation                 0x19c4b6838 -[NSObject(NSObject) doesNotRecognizeSelector:] + 364 (NSObject.m:168)
3   UIKitCore                     0x1a2fe9484 -[UIResponder doesNotRecognizeSelector:] + 260 (UIResponder.m:841)
4   CoreFoundation                 0x19c3974f8 ___forwarding___ + 1472 (NSForwarding.m:3616)
5   CoreFoundation                 0x19c39f3a0 _CF_forwarding_prep_0 + 96 (:-1)
6   TheAppName                   0x1029095f4 GADViewHierarchyInformationForViewAndScene + 968
7   TheAppName                   0x1029097b4 GADAdKeySignalSource + 40
8   TheAppName                   0x1028aa480 GAD_GADBannerView_arm64_12_11_0 + 7984
9   TheAppName                   0x1028ab830 __destroy_helper_block_e8_32s40s48s56s64s72w + 1868
10  TheAppName                   0x1028aa184 GAD_GADBannerView_arm64_12_11_0 + 7220
11  TheAppName                   0x1028f3c6c GAD_GADRefreshTimer_arm64_12_11_0 + 820
12  libdispatch.dylib             0x1d3d26adc _dispatch_call_block_and_release + 32 (init.c:1575)
13  libdispatch.dylib             0x1d3d407ec _dispatch_client_callout + 16 (client_callout.mm:85)
14  libdispatch.dylib             0x1d3d5db24 _dispatch_main_queue_drain.cold.5 + 812 (queue.c:8181)
15  libdispatch.dylib             0x1d3d35ec8 _dispatch_main_queue_drain + 180 (queue.c:8162)
16  libdispatch.dylib             0x1d3d35e04 _dispatch_main_queue_callback_4CF + 44 (queue.c:8341)
17  CoreFoundation                 0x19c3bc520 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1820)
18  CoreFoundation                 0x19c36ed14 __CFRunLoopRun + 1944 (CFRunLoop.c:3177)
19  CoreFoundation                 0x19c36dc44 _CFRunLoopRunSpecificWithOptions + 532 (CFRunLoop.c:3462)
20  GraphicsServices               0x23b4c7498 GSEventRunModal + 120 (GSEvent.c:2049)
21  UIKitCore                     0x1a1ce8ddc -[UIApplication _run] + 792 (UIApplication.m:3899)
22  UIKitCore                     0x1a1c8db0c UIApplicationMain + 336 (UIApplication.m:5574)
23  TheAppName                   0x1027de5c4 main + 80 (main.m:16)
24  dyld                           0x1993e6e28 start + 7116 (dyldMain.cpp:1477)


Environment:

iPad with iOS 26.0.1 (23A355)

Google Mobile Ads SDK 12.11.0 and 12.12.0

No crash on iOS ≤ 18.x

Removing AppLovin / other mediation adapters doesn’t help — still in GMA core

Steps to Reproduce:

1. Load an ad on GADBannerView

2. Present the iOS print UI (e.g., UIPrintInteractionController, which shows UIPrintPanelViewController).

3. Wait until the configured banner refresh time has passed before the crash occurs.

Alternative steps for reproduction:

1. Present the iOS print UI (e.g., UIPrintInteractionController, which shows UIPrintPanelViewController).

2. Call loadRequest on the GADBannerView (By calling a function with a delay before the print preview was showed)

VS

unread,
Oct 31, 2025, 5:11:23 AM (5 days ago) Oct 31
to Google Mobile Ads SDK Developers
Does anyone have any ideas on how to avoid this crash?

Mobile Ads SDK Forum Advisor

unread,
Oct 31, 2025, 11:25:21 AM (5 days ago) Oct 31
to google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

I tested this behavior in our banner sample project following the steps you provided — loading a banner ad and then presenting the iOS print UI (UIPrintInteractionController, which shows UIPrintPanelViewController) on an iPad running iOS 18 (26.0.1).

However, I was not able to reproduce the crash in our environment.

For further investigation, could you please share a sample project reproducing the issue on your side.

Kindly provide the requested details via reply to the author option.

 

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=500Ht00001vSL7rIAG&entry.80707362=00338101

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-10-31 15:24:20Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vSL7r:ref" (ADR-00338101)



VS

unread,
Oct 31, 2025, 3:55:30 PM (4 days ago) Oct 31
to Google Mobile Ads SDK Developers

Hello, thank you for your reply. I have just sent a test project in the attachment via reply to the author. With this test project, the crash occurs on the iPad with iOS 26.0.1 and also in the iPad iOS 26.0.1 simulator. I hope this helps you to fix the cause of the crash in the next version.

VS

unread,
Nov 1, 2025, 9:46:58 AM (4 days ago) Nov 1
to Google Mobile Ads SDK Developers
Here is the Swift code to cause the crash, in case anyone wants to test it:


    func loadBannerAd() {
      bannerView.adSize = currentOrientationAnchoredAdaptiveBanner(width: 375)
      bannerView.load(Request())
    }
   
    @IBAction func printAction(_ sender: Any) {
        printTestText()
       
        DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
            self.loadBannerAd()
        }
    }

    func printTestText() {
        // The text you want to print
        let textToPrint = "Hello, this is a test print using UIPrintInteractionController!"
       
        // Create an attributed string for drawing
        let attributes: [NSAttributedString.Key: Any] = [
            .font: UIFont.systemFont(ofSize: 18),
            .foregroundColor: UIColor.black
        ]
        let attributedText = NSAttributedString(string: textToPrint, attributes: attributes)
       
        // Create simple PDF data containing the text
        let pdfData = NSMutableData()
        UIGraphicsBeginPDFContextToData(pdfData, .zero, nil)
        UIGraphicsBeginPDFPage()
        attributedText.draw(in: CGRect(x: 72, y: 72, width: 468, height: 648)) // 1-inch margins
        UIGraphicsEndPDFContext()
       
        // Get the shared print controller
        guard let pic = UIPrintInteractionController.shared as UIPrintInteractionController? else {
            print("Error: UIPrintInteractionController not available.")
            return
        }
       
        // Configure print info
        let printInfo = UIPrintInfo.printInfo()
        printInfo.outputType = .general
        printInfo.jobName = "Test Print"
        pic.printInfo = printInfo
       
        // Set the PDF data as the printing item
        pic.printingItem = pdfData
       
        // Present the print dialog (sheet on iPhone, popover on iPad)
        pic.present(animated: true) { _, completed, error in

        }
    }

Mobile Ads SDK Forum Advisor

unread,
Nov 3, 2025, 2:08:23 AM (2 days ago) Nov 3
to google-adm...@googlegroups.com
 

Hi ,

Thank you for sharing the details

I have executed our Sample project with the provided code changes but unfortunately we are unable to replicate the crash from our end. Could you please verify if the same behavior occurs in our sample project? If so, please share the sample project which replicates the issue and screen recording via reply to the author option? for further investigation.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=500Ht00001vSL7rIAG&entry.80707362=00338101

2. Fill out all fields, and attach your file(s).

3. Please reply back to this thread when you have uploaded your file(s). Please do not share this link.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-11-03 07:07:34Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vSL7r:ref" (ADR-00338101)



VS

unread,
Nov 3, 2025, 3:06:03 AM (2 days ago) Nov 3
to Google Mobile Ads SDK Developers
Are you really testing on an iPad with iOS version 26.0.1? Above, I posted the Swift code that causes your example app to crash every time it's run on an iPad with iOS 26.0.1 and the "Print" button is clicked. It's important that you don't actually print, but leave the preview window open for at least 5 seconds. Could other users please test it as well to confirm?
Reply all
Reply to author
Forward
0 new messages