My app has a PDFViewer utilizing QLPreviewController library. This has been working with none downside till the final month. Since then I have been getting a number of crashes with iOS 18. That is the stacktrace:
Crashed: com.apple.main-thread
0 QuickLook 0x137fc __47-[QLPreviewController setCanChangeCurrentPage:]_block_invoke + 40
1 libdispatch.dylib 0x2370 _dispatch_call_block_and_release + 32
2 libdispatch.dylib 0x40d0 _dispatch_client_callout + 20
3 libdispatch.dylib 0x129e0 _dispatch_main_queue_drain + 980
4 libdispatch.dylib 0x125fc _dispatch_main_queue_callback_4CF + 44
5 CoreFoundation 0x56f64 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
6 CoreFoundation 0x54188 __CFRunLoopRun + 1996
7 CoreFoundation 0x535b8 CFRunLoopRunSpecific + 572
8 GraphicsServices 0x11c4 GSEventRunModal + 164
9 UIKitCore 0x3de2c0 -[UIApplication _run] + 816
10 UIKitCore 0x48cddc UIApplicationMain + 340
11 MyApp 0x11300 most important + 14 (most important.m:14)
12 ??? 0x1c362cd34 (Lacking)
Checking this crash with XCode > organizer I haven’t got extra info, it is the identical stacktrace.
I am unable to reproduce the error domestically.
The one reference I’ve discovered a couple of comparable problem is with giant PDFs however in my case some crashes occurs with PDF not so giant, and then again the crash says setCanChangeCurrentPage and that is about altering the web page…
Anny clue of what’s occurring?