Hello,
I have this occasional crash that I was't able to reproduce on my devices or the simulator but from the Crashlytics logs happen on iPad Mini 4, iPad Air and iPhone 6 with iOS version 9.3 or newer.
It happens on large PDF files (around 100 pages and 70 MBytes each, with a lot of hi-res images) but those files seem correct and I never had problem browsing them.
I can provide the PDF file if necessary but I can't attach them here because of they are not freely available.
FastPDFKit version is 20151029e.
Hello, I have this occasional crash that I was't able to reproduce on my devices or the simulator but from the Crashlytics logs happen on iPad Mini 4, iPad Air and iPhone 6 with iOS version 9.3 or newer. It happens on large PDF files (around 100 pages and 70 MBytes each, with a lot of hi-res images) but those files seem correct and I never had problem browsing them. I can provide the PDF file if necessary but I can't attach them here because of they are not freely available. FastPDFKit version is 20151029e.
Here is the stack trace:
Platform: ios
OS Version: 9.3.0-9.3.2
Device: iPhone 6 (or iPad Mini 4 or iPad Air)
RAM Free: Plenty
Disk Free: Plenty
0. Crashed: com.apple.main-thread
0 Hearst 0x10018d55c -[MFDocumentManager getCropbox:andRotation:forPageNumber:withBuffer:] + 4296725852 1 Hearst 0x10011d204 -MyMFDocumentManager initWithFileUrl: 2 Hearst 0x1000fd728 openPDFDocument (Utilities.mm:828) 3 Hearst 0x1000db8b0 -AppDelegate alertView:didDismissWithButtonIndex: 4 UIKit 0x18877ab5c *76-[UIAlertView _performPresentationDismissalWithClickedButtonIndex:animated:]_block_invoke + 68 5 UIKit 0x188c453e8 -[_UIAlertControllerShimPresenter _dismissAlertControllerAnimated:completion:] + 516 6 UIKit 0x18877aacc -[UIAlertView _performPresentationDismissalWithClickedButtonIndex:animated:] + 180 7 UIKit 0x1887795fc 35-[UIAlertView _prepareAlertActions]_block_invoke + 52 8 UIKit 0x18876ace8 -[UIAlertController _fireOffActionOnTargetIfValidForAction:] + 100 9 UIKit 0x18876b480 85-[UIAlertController _dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:]_block_invoke + 32 10 UIKit 0x188651944 -[UIPresentationController transitionDidFinish:] + 1320 11 UIKit 0x188654b3c __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 188 12 UIKit 0x188425114 -[_UIViewControllerTransitionContext completeTransition:] + 116 13 UIKit 0x18833012c -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 628 14 UIKit 0x18832fc28 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 312 15 UIKit 0x18832fab0 -[UIViewAnimationState animationDidStop:finished:] + 108 16 QuartzCore 0x185c899a0 CA::Layer::run_animation_callbacks(void) + 284 17 libdispatch.dylib 0x182be147c _dispatch_client_callout + 16 18 libdispatch.dylib 0x182be6b84 _dispatch_main_queue_callback_4CF + 1844 19 CoreFoundation 0x18314cd50 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE** + 12 20 CoreFoundation 0x18314abb8 CFRunLoopRun + 1628 21 CoreFoundation 0x183074c50 CFRunLoopRunSpecific + 384 22 GraphicsServices 0x18495c088 GSEventRunModal + 180 23 UIKit 0x18835e088 UIApplicationMain + 204 24 Hearst 0x1000d58b4 main (main.m:13) 25 libdyld.dylib 0x182c128b8 start + 4
0. Crashed: com.apple.main-thread
0 Hearst 0x10018d55c -[MFDocumentManager getCropbox:andRotation:forPageNumber:withBuffer:] + 4296725852 1 Hearst 0x10011d204 -MyMFDocumentManager initWithFileUrl: 2 Hearst 0x1000fd728 openPDFDocument (Utilities.mm:828) 3 Hearst 0x1000db8b0 -AppDelegate alertView:didDismissWithButtonIndex: 4 UIKit 0x18877ab5c *76-[UIAlertView _performPresentationDismissalWithClickedButtonIndex:animated:]_block_invoke + 68 5 UIKit 0x188c453e8 -[_UIAlertControllerShimPresenter _dismissAlertControllerAnimated:completion:] + 516 6 UIKit 0x18877aacc -[UIAlertView _performPresentationDismissalWithClickedButtonIndex:animated:] + 180 7 UIKit 0x1887795fc 35-[UIAlertView _prepareAlertActions]_block_invoke + 52 8 UIKit 0x18876ace8 -[UIAlertController _fireOffActionOnTargetIfValidForAction:] + 100 9 UIKit 0x18876b480 85-[UIAlertController _dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:]_block_invoke + 32 10 UIKit 0x188651944 -[UIPresentationController transitionDidFinish:] + 1320 11 UIKit 0x188654b3c __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 188 12 UIKit 0x188425114 -[_UIViewControllerTransitionContext completeTransition:] + 116 13 UIKit 0x18833012c -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 628 14 UIKit 0x18832fc28 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 312 15 UIKit 0x18832fab0 -[UIViewAnimationState animationDidStop:finished:] + 108 16 QuartzCore 0x185c899a0 CA::Layer::run_animation_callbacks(void) + 284 17 libdispatch.dylib 0x182be147c _dispatch_client_callout + 16 18 libdispatch.dylib 0x182be6b84 _dispatch_main_queue_callback_4CF + 1844 19 CoreFoundation 0x18314cd50 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE** + 12 20 CoreFoundation 0x18314abb8 CFRunLoopRun + 1628 21 CoreFoundation 0x183074c50 CFRunLoopRunSpecific + 384 22 GraphicsServices 0x18495c088 GSEventRunModal + 180 23 UIKit 0x18835e088 UIApplicationMain + 204 24 Hearst 0x1000d58b4 main (main.m:13) 25 libdyld.dylib 0x182c128b8 start + 4
1. com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x182d314d8 kevent_qos + 8 1 libdispatch.dylib 0x182bf47d8 _dispatch_mgr_invoke + 232 2 libdispatch.dylib 0x182be3648 _dispatch_source_invoke + 50
2. com.twitter.crashlytics.mac.MachExceptionServer
0 Hearst 0x1001531fc CLSProcessRecordAllThreads + 4296487420 1 Hearst 0x1001531fc CLSProcessRecordAllThreads + 4296487420 2 Hearst 0x1001536ac CLSProcessRecordAllThreads + 4296488620 3 Hearst 0x10013e0dc CLSHandler + 4296401116 4 Hearst 0x100134b94 CLSMachExceptionServer + 4296362900 5 libsystem_pthread.dylib 0x182dfbb28 _pthread_body + 156 6 libsystem_pthread.dylib 0x182dfba8c _pthread_body + 154 7 libsystem_pthread.dylib 0x182df9028 thread_start + 4
3. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x182d14fd8 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x182d14e54 mach_msg + 72 2 CoreFoundation 0x18314cc60 CFRunLoopServiceMachPort + 196 3 CoreFoundation 0x18314a964 __CFRunLoopRun + 1032 4 CoreFoundation 0x183074c50 CFRunLoopRunSpecific + 384 5 CFNetwork 0x1837f5c68 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412 6 Foundation 0x183b6be4c NSThreadstart + 1000 7 libsystem_pthread.dylib 0x182dfbb28 _pthread_body + 156 8 libsystem_pthread.dylib 0x182dfba8c _pthread_body + 154 9 libsystem_pthread.dylib 0x182df9028 thread_start + 4
4. com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x182d30344 select + 8 1 CoreFoundation 0x1831531c8 CFSocketManager + 648 2 libsystem_pthread.dylib 0x182dfbb28 _pthread_body + 156 3 libsystem_pthread.dylib 0x182dfba8c _pthread_body + 154 4 libsystem_pthread.dylib 0x182df9028 thread_start + 4
5. AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x182d14fd8 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x182d14e54 machmsg + 72 2 CoreFoundation 0x18314cc60 CFRunLoopServiceMachPort + 196 3 CoreFoundation 0x18314a964 CFRunLoopRun + 1032 4 CoreFoundation 0x183074c50 CFRunLoopRunSpecific + 384 5 libAVFAudio.dylib 0x1897ed9e0 GenericRunLoopThread::Entry(void) + 164 6 libAVFAudio.dylib 0x1897c275c CAPThread::Entry(CAPThread_) + 84 7 libsystem_pthread.dylib 0x182dfbb28 _pthread_body + 156 8 libsystem_pthread.dylib 0x182dfba8c _pthread_body + 154 9 libsystem_pthread.dylib 0x182df9028 thread_start + 4
6. Thread
0 libsystem_kernel.dylib 0x182d30b48 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x182df9530 _pthread_wqthread + 1284 2 libsystem_pthread.dylib 0x182df9020 start_wqthread + 4
7. Thread
0 libsystem_kernel.dylib 0x182d30b48 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x182df9530 _pthread_wqthread + 1284 2 libsystem_pthread.dylib 0x182df9020 start_wqthread + 4
8. Thread
0 libsystem_kernel.dylib 0x182d30b48 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x182df9530 _pthread_wqthread + 1284 2 libsystem_pthread.dylib 0x182df9020 start_wqthread + 4
9. Thread
0 libsystem_kernel.dylib 0x182d30b48 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x182df9530 _pthread_wqthread + 1284 2 libsystem_pthread.dylib 0x182df9020 start_wqthread + 4
Best regards,
Luca Severini