4 Replies
      Latest reply on May 23, 2019 6:57 PM by kiel.gillard
      gregfgbdgvfdsgvfd Level 1 Level 1 (0 points)

        We have the following crash report from live users that started happening after iOS 12 was released. We have not been able to reproduce it locally and the only part that refers to our app code leads to the line

            override func awakeFromNib() {
        

        but nothing more.

         

        Anyone have any info on how we can proceed to find the root cause of this issue?

         

        Hardware Model:      iPhone9,3
        Process:             ******** [1434]
        Path:                /private/var/containers/Bundle/Application/DAEF00AC-2E13-494C-B66A-B4FF1C9105AD/********.app/********
        Identifier:          com.********
        Version:             ********
        AppStoreTools:       10A247
        AppVariant:          1:iPhone9,3:12
        Code Type:           ARM-64 (Native)
        Role:                Non UI
        Parent Process:      launchd [1]
        Coalition:           com.******** [920]
        
        
        
        
        Date/Time:           2018-11-04 21:26:32.5368 +0100
        Launch Time:         2018-11-04 21:26:20.6673 +0100
        OS Version:          iPhone OS 12.1 (16B92)
        Baseband Version:    3.01.06
        Report Version:      104
        
        
        Exception Type:  EXC_CRASH (SIGABRT)
        Exception Codes: 0x0000000000000000, 0x0000000000000000
        Exception Note:  EXC_CORPSE_NOTIFY
        Triggered by Thread:  0
        
        
        Last Exception Backtrace:
        0   CoreFoundation                0x2078f7ea0 __exceptionPreprocess + 228 (NSException.m:172)
        1   libobjc.A.dylib                0x206ac9a40 objc_exception_throw + 56 (objc-exception.mm:557)
        2   UIKitCore                      0x23451041c -[UIViewController _presentViewController:withAnimationController:completion:] + 4936 (UIViewController.m:7207)
        3   UIKitCore                      0x234512a38 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 104 (UIViewController.m:7644)
        4   UIKitCore                      0x23451309c -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 512 (UIViewController.m:7738)
        5   UIKitCore                      0x234512990 -[UIViewController _presentViewController:animated:completion:] + 180 (UIViewController.m:7650)
        6   UIKitCore                      0x234512ccc -[UIViewController presentViewController:animated:completion:] + 160 (UIViewController.m:7682)
        7   UIKitCore                      0x234b37e5c __51-[UISearchController _performAutomaticPresentation]_block_invoke + 328 (UISearchController.m:781)
        8   UIKitCore                      0x23452c224 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 272 (UIViewControllerTransitioning.m:1121)
        9   UIKitCore                      0x2345283c8 -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 140 (UIViewControllerTransitioning.m:374)
        10  UIKitCore                      0x2345280a0 -[_UIViewControllerTransitionContext completeTransition:] + 132 (UIViewControllerTransitioning.m:286)
        11  UIKitCore                      0x234f5e374 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 744 (UIView.m:12839)
        12  UIKitCore                      0x234f34154 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 312 (UIView.m:0)
        13  UIKitCore                      0x234f34740 -[UIViewAnimationState animationDidStop:finished:] + 296 (UIView.m:2111)
        14  UIKitCore                      0x234f347e0 -[UIViewAnimationState animationDidStop:finished:] + 456 (UIView.m:2130)
        15  QuartzCore                    0x20befc5d0 CA::Layer::run_animation_callbacks(void*) + 284 (CALayer.mm:6675)
        16  libdispatch.dylib              0x207332484 _dispatch_client_callout + 16 (object.m:511)
        17  libdispatch.dylib              0x2072de9b4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068 (inline_internal.h:2441)
        18  CoreFoundation                0x207887dd0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1813)
        19  CoreFoundation                0x207882c98 __CFRunLoopRun + 1964 (CFRunLoop.c:3113)
        20  CoreFoundation                0x2078821cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
        21  GraphicsServices              0x209af9584 GSEventRunModal + 100 (GSEvent.c:2245)
        22  UIKitCore                      0x234ac5054 UIApplicationMain + 212 (UIApplication.m:4347)
        23  ********                      0x1044747ec main + 60 (UITableViewCellSubClass.swift:18)
        24  libdyld.dylib                  0x207342bb4 start + 4
        
        
        Thread 0 name:
        Thread 0 Crashed:
        0   libsystem_kernel.dylib        0x000000020748f104 __pthread_kill + 8
        1   libsystem_pthread.dylib        0x000000020750a070 pthread_kill$VARIANT$mp + 380 (pthread.c:1492)
        2   libsystem_c.dylib              0x00000002073e6d78 abort + 140 (abort.c:94)
        3   libc++abi.dylib                0x0000000206ab0f78 abort_message + 132 (abort_message.cpp:75)
        4   libc++abi.dylib                0x0000000206ab1120 default_terminate_handler() + 304 (cxa_default_handlers.cpp:68)
        5   libobjc.A.dylib                0x0000000206ac9e48 _objc_terminate() + 124 (objc-exception.mm:693)
        6   libc++abi.dylib                0x0000000206abd0fc std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:66)
        7   libc++abi.dylib                0x0000000206abd188 std::terminate() + 84 (cxa_handlers.cpp:97)
        8   libdispatch.dylib              0x0000000207332498 _dispatch_client_callout + 36 (object.m:514)
        9   libdispatch.dylib              0x00000002072de9b4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068 (inline_internal.h:2441)
        10  CoreFoundation                0x0000000207887dd0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1813)
        11  CoreFoundation                0x0000000207882c98 __CFRunLoopRun + 1964 (CFRunLoop.c:3113)
        12  CoreFoundation                0x00000002078821cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
        13  GraphicsServices              0x0000000209af9584 GSEventRunModal + 100 (GSEvent.c:2245)
        14  UIKitCore                      0x0000000234ac5054 UIApplicationMain + 212 (UIApplication.m:4347)
        15  ********                      0x00000001044747ec main + 60 (UITableViewCellSubClass.swift:18)
        16  libdyld.dylib                  0x0000000207342bb4 start + 4

         

         

        Full crash report: https://pastebin.com/CiSUD511

         

        (Couldn't inline the crash report due to forum error message "The message contains invalid characters.")

        • Re: Help needed with crash report
          eskimo Apple Staff Apple Staff (11,625 points)

          Full crash report …

          Thanks for that.  Getting the full Apple crash report is critical in a lot of cases.

          Looking at the crash report it’s clear that your process died due to an unhandled language exception.  Unfortunately the crash report doesn’t record the exception name or reason, but some spelunking in the debugger will often reveal those.  Considering your exception backtrace:

          Last Exception Backtrace:  
          0   CoreFoundation    … __exceptionPreprocess + 228 (NSException.m:172)  
          1   libobjc.A.dylib   … objc_exception_throw + 56 (objc-exception.mm:557)  
          2   UIKitCore         … -[UIViewController _presentViewController:withAnimationController:completion:] + 4936 (UIViewController.m:7207)  
          3   UIKitCore         … __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 104 (UIViewController.m:7644)  
          4   UIKitCore         … -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 512 (UIViewController.m:7738)  
          5   UIKitCore         … -[UIViewController _presentViewController:animated:completion:] + 180 (UIViewController.m:7650)  
          6   UIKitCore         … -[UIViewController presentViewController:animated:completion:] + 160 (UIViewController.m:7682)  
          7   UIKitCore         … __51-[UISearchController _performAutomaticPresentation]_block_invoke + 328 (UISearchController.m:781)  
          8   UIKitCore         … -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 272 (UIViewControllerTransitioning.m:1121)  
          9   UIKitCore         … -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 140 (UIViewControllerTransitioning.m:374)  
          10  UIKitCore         … -[_UIViewControllerTransitionContext completeTransition:] + 132 (UIViewControllerTransitioning.m:286)  
          11  UIKitCore         … -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 744 (UIView.m:12839)  
          12  UIKitCore         … -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 312 (UIView.m:0)  
          13  UIKitCore         … -[UIViewAnimationState animationDidStop:finished:] + 296 (UIView.m:2111)  
          14  UIKitCore         … -[UIViewAnimationState animationDidStop:finished:] + 456 (UIView.m:2130)  
          15  QuartzCore        … CA::Layer::run_animation_callbacks(void*) + 284 (CALayer.mm:6675)  
          …

          Frame 2 has thrown an NSInvalidArgumentException with the reason Application tried to present modal view controller on itself. Presenting controller is xxx.  I do not, alas, see a way to uncover xxx, but this does at least give you something to focus on.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"

            • Re: Help needed with crash report
              genjokoan Level 1 Level 1 (0 points)

              Hi Quinn,

              hope you are well.

               

              I downloaded this crash report from https://pastebin.com/raw/CiSUD511

               

              Apologies if I'm missing something very obvious, but I couldn't find the NSInvalidArgumentException that you refer to on Frame 2?

                • Re: Help needed with crash report
                  eskimo Apple Staff Apple Staff (11,625 points)

                  I couldn't find the NSInvalidArgumentException that you refer to on Frame 2?

                  To determine this I did the following:

                  1. I built a simple test app and ran it on a device with the same OS version installed.

                  2. To confirm that I was looking at exactly the right code, I compared the UUID from Binary Images section of the full crash report to the result of the LLDB image list command.

                  3. I disassembled the frame 2 method, -[UIViewController _presentViewController:withAnimationController:completion:], focusing on the code at offset 4936, to determine what exception it threw.

                  Share and Enjoy

                  Quinn “The Eskimo!”
                  Apple Developer Relations, Developer Technical Support, Core OS/Hardware
                  let myEmail = "eskimo" + "1" + "@apple.com"

              • Re: Help needed with crash report
                kiel.gillard Level 1 Level 1 (0 points)

                Did you ever fix this crash? I can't seem to fix this for us, either.