Help with crash report

I recently received this crash report from a user using El Capitan, and my development environment is El Capitan as well.

I am trying to understand what is causing the crash, but having difficulty reading the crash report.

Compared to usual, it doesn't seem to specifically say what the matter is.

Help would be much appreciated.



Exception Type: EXC_BAD_INSTRUCTION (SIGILL)


Exception Codes: 0x0000000000000001, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY

Global Trace Buffer (reverse chronological seconds):

1.146487 CFNetwork 0x00007fff8eaaacdf TCP Conn 0x7fca2a838be0 started

1.146571 CFNetwork 0x00007fff8eaaacdf TCP Conn 0x7fca2a90fc80 started

1.213608 CFNetwork 0x00007fff8ea6e86b Creating default cookie storage with default identifier

1.213608 CFNetwork 0x00007fff8ea6e836 Faulting in CFHTTPCookieStorage singleton

1.213608 CFNetwork 0x00007fff8ea6e6c5 Faulting in NSHTTPCookieStorage singleton

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread

0 com.- 0x000000010f23610e 0x10f213000 + 143630

1 com.- 0x000000010f22f17e 0x10f213000 + 115070

2 com.- 0x000000010f369496 0x10f213000 + 1402006

3 com.- 0x000000010f3696d6 0x10f213000 + 1402582

4 com.apple.AppKit 0x00007fff92ea783d -[NSViewController _sendViewDidAppear] + 43

5 com.apple.AppKit 0x00007fff92ea74f8 -[NSView(NSInternal) _windowDidOrderOnScreen] + 67

6 com.apple.AppKit 0x00007fff92ea75f0 -[NSView(NSInternal) _windowDidOrderOnScreen] + 315

7 com.apple.AppKit 0x00007fff92ea75f0 -[NSView(NSInternal) _windowDidOrderOnScreen] + 315

8 com.apple.AppKit 0x00007fff92ea75f0 -[NSView(NSInternal) _windowDidOrderOnScreen] + 315

9 com.apple.AppKit 0x00007fff92ea75f0 -[NSView(NSInternal) _windowDidOrderOnScreen] + 315

10 com.apple.AppKit 0x00007fff92ea75f0 -[NSView(NSInternal) _windowDidOrderOnScreen] + 315

11 com.apple.AppKit 0x00007fff92ea470d -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 2815

12 com.apple.AppKit 0x00007fff92ea2b0e -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 894

13 com.apple.AppKit 0x00007fff92ea2732 -[NSWindow orderWindow:relativeTo:] + 159

14 com.apple.AppKit 0x00007fff92f6261d -[NSWindow makeKeyAndOrderFront:] + 47

15 com.apple.QuickLookUIFramework 0x00007fff85ee4ec3 -[QLSeamlessDocumentOpener showWindow:contentFrame:withBlock:] + 108

16 com.apple.AppKit 0x00007fff92f6175b -[NSWindowController showWindow:] + 434

17 com.- 0x000000010f352df7 0x10f213000 + 1310199

18 com.- 0x000000010f3574fe 0x10f213000 + 1328382

19 com.- 0x000000010f352265 0x10f213000 + 1307237

20 com.apple.CoreFoundation 0x00007fff82033c9c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12

21 com.apple.CoreFoundation 0x00007fff82033c2f ___CFXRegistrationPost_block_invoke + 63

22 com.apple.CoreFoundation 0x00007fff82033ba7 _CFXRegistrationPost + 407

23 com.apple.CoreFoundation 0x00007fff82033912 ___CFXNotificationPost_block_invoke + 50

24 com.apple.CoreFoundation 0x00007fff81ff06d2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922

25 com.apple.CoreFoundation 0x00007fff81fef925 _CFXNotificationPost + 693

26 com.apple.Foundation 0x00007fff8f9b60fa -[NSNotificationCenter postNotificationName:object:userInfo:] + 66

27 com.apple.AppKit 0x00007fff92eaaea1 -[NSApplication _postDidFinishNotification] + 297

28 com.apple.AppKit 0x00007fff92eaac0b -[NSApplication _sendFinishLaunchingNotification] + 203

29 com.apple.AppKit 0x00007fff92d65dc1 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 557

30 com.apple.AppKit 0x00007fff92d6586b -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 250

31 com.apple.Foundation 0x00007fff8fa04a8d -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290

32 com.apple.Foundation 0x00007fff8fa04907 _NSAppleEventManagerGenericHandler + 102

33 com.apple.AE 0x00007fff837da1b5 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 531

34 com.apple.AE 0x00007fff837d9f3c dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31

35 com.apple.AE 0x00007fff837d9e58 aeProcessAppleEvent + 288

36 com.apple.HIToolbox 0x00007fff9495def5 AEProcessAppleEvent + 55

37 com.apple.AppKit 0x00007fff92d61230 _DPSNextEvent + 2245

38 com.apple.AppKit 0x00007fff92d601c5 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454

39 com.apple.AppKit 0x00007fff92d54d28 -[NSApplication run] + 682

40 com.apple.AppKit 0x00007fff92d1dfbe NSApplicationMain + 1176

41 com.- 0x000000010f3566e9 0x10f213000 + 1324777

42 libdyld.dylib 0x00007fff8fd205ad start + 1

Thread 1:

0 libsystem_kernel.dylib 0x00007fff8be8878a __workq_kernreturn + 10

1 libsystƒ9em_pthread.dylib 0x00007fff97fa958c _pthread_wqthread + 1283

2 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager

0 libsystem_kernel.dylib 0x00007fff8be890a2 kevent_qos + 10

1 libdispatch.dylib 0x00007fff8f90311d _dispatch_mgr_invoke + 216

2 libdispatch.dylib 0x00007fff8f902d85 _dispatch_mgr_thread + 52

Thread 3:: Dispatch queue: com.apple.networking.connection.0x7fca2a90fc80

0 libsystem_kernel.dylib 0x00007fff8be889e2 close + 10

1 libsystem_network.dylib 0x00007fff84413a06 get_host_counts + 911

2 libsystem_network.dylib 0x00007fff84444e4f tcp_connection_destination_create + 301

3 libsystem_network.dylib 0x00007fff84418eb7 tcp_connection_destination_add + 78

4 libsystem_network.dylib 0x00007fff84418e5a __tcp_connection_start_host_block_invoke + 155

5 libsystem_network.dylib 0x00007fff8443d9a5 tcp_connection_host_resolve_result + 1663

6 libsystem_dnssd.dylib 0x00007fff8ef67fe0 handle_addrinfo_response + 509

7 libsystem_dnssd.dylib 0x00007fff8ef66189 DNSServiceProcessResult + 665

8 libdispatch.dylib 0x00007fff8f8fd3c3 _dispatch_client_callout + 8

9 libdispatch.dylib 0x00007fff8f90d674 _dispatch_source_latch_and_call + 2235

10 libdispatch.dylib 0x00007fff8f901a3b _dispatch_source_invoke + 983

11 libdispatch.dylib 0x00007fff8f9021b8 _dispatch_queue_drain + 1207

12 libdispatch.dylib 0x00007fff8f9086bf _dispatch_queue_invoke + 549

13 libdispatch.dylib 0x00007fff8f900d0b _dispatch_root_queue_drain + 538

14 libdispatch.dylib 0x00007fff8f900ab8 _dispatch_worker_thread3 + 91

15 libsystem_pthread.dylib 0x00007fff97fa94f2 _pthread_wqthread + 1129

16 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 4:

0 libsystem_kernel.dylib 0x00007fff8be8878a __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff97fa958c _pthread_wqthread + 1283

2 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 5:: Dispatch queue: com.apple.networking.connection.0x7fca2a838be0

0 libsystem_kernel.dylib 0x00007fff8be889fa connectx + 10

1 libsystem_network.dylib 0x00007fff84449c78 tcp_connection_destination_perform_socket_connect + 1099

2 libsystem_network.dylib 0x00007fff84418865 tcp_connection_handle_destination_prepare_complete + 62

3 libsystem_network.dylib 0x00007fff8444941a tcp_connection_destination_start + 682

4 libsystem_network.dylib 0x00007fff84417d15 tcp_connection_start_destination + 84

5 libsystem_network.dylib 0x00007fff84417b26 tcp_connection_handle_start_next_destination_helper + 198

6 libsystem_network.dylib 0x00007fff84417c4c tcp_connection_handle_start_next_destination + 97

7 libdispatch.dylib 0x00007fff8f8fd3c3 _dispatch_client_callout + 8

8 libdispatch.dylib 0x00007fff8f90d674 _dispatch_source_latch_and_call + 2235

9 libdispatch.dylib 0x00007fff8f901a3b _dispatch_source_invoke + 983

10 libdispatch.dylib 0x00007fff8f9021b8 _dispatch_queue_drain + 1207

11 libdispatch.dylib 0x00007fff8f9086bf _dispatch_queue_invoke + 549

12 libdispatch.dylib 0x00007fff8f900d0b _dispatch_root_queue_drain + 538

13 libdispatch.dylib 0x00007fff8f900ab8 _dispatch_worker_thread3 + 91

14 libsystem_pthread.dylib 0x00007fff97fa94f2 _pthread_wqthread + 1129

15 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 6:: Dispatch queue: com.parse.PFCommandCache.processing

0 libsystem_kernel.dylib 0x00007fff8be87f5e __psynch_cvwait + 10

1 libsystem_pthread.dylib 0x00007fff97faa73d _pthread_cond_wait + 767

2 com.apple.Foundation 0x00007fff8f9e5048 -[NSCondition wait] + 240

3 com.bolts.boltsmac 0x000000010f5f5cb2 -[BFTask waitUntilFinished] + 251

4 com.parse.ParseOSX 0x000000010f67a755 -[BFTask(Private) waitForResult:withMainThreadWarning:] + 43

5 com.parse.ParseOSX 0x000000010f61884b -[PFEventuallyQueue _runCommandsWithRetriesCount:] + 1135

6 libdispatch.dylib 0x00007fff8f8fd3c3 _dispatch_client_callout + 8

7 libdispatch.dylib 0x00007fff8f90d674 _dispatch_source_latch_and_call + 2235

8 libdispatch.dylib 0x00007fff8f901a3b _dispatch_source_invoke + 983

9 libdispatch.dylib 0x00007fff8f9021b8 _dispatch_queue_drain + 1207

10 libdispatch.dylib 0x00007fff8f9086bf _dispatch_queue_invoke + 549

11 libdispatch.dylib 0x00007fff8f900d0b _dispatch_root_queue_drain + 538

12 libdispatch.dylib 0x00007fff8f900ab8 _dispatch_worker_thread3 + 91

13 libsystem_pthread.dylib 0x00007fff97fa94f2 _pthread_wqthread + 1129

14 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 7:

0 libsystem_kernel.dylib 0x00007fff8be82c96 mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fff8be820d7 mach_msg + 55

2 net.hockeyapp.sdk.mac 0x000000010f562403 exception_server_thread + 202

3 libsystem_pthread.dylib 0x00007fff97fa99b1 _pthread_body + 131

4 libsystem_pthread.dylib 0x00007fff97fa992e _pthread_start + 168

5 libsystem_pthread.dylib 0x00007fff97fa7385 thread_start + 13

Thread 8:: Dispatch queue: com.parse.reachability

0 libsystem_kernel.dylib 0x00007fff8be87f5e __psynch_cvwait + 10

1 libsystem_pthread.dylib 0x00007fff97faa73d _pthread_cond_wait + 767

2 com.apple.Foundation 0x00007fff8f9e5048 -[NSCondition wait] + 240

3 com.bolts.boltsmac 0x000000010f5f5cb2 -[BFTask waitUntilFinished] + 251

4 com.parse.ParseOSX 0x000000010f67a755 -[BFTask(Private) waitForResult:withMainThreadWarning:] + 43

5 com.parse.ParseOSX 0x000000010f6197cc -[PFEventuallyQueue setConnected:] + 311

6 com.parse.ParseOSX 0x000000010f68d79c __37-[PFReachability _notifyAllListeners]_block_invoke + 325

7 libdispatch.dylib 0x00007fff8f9088f5 _dispatch_call_block_and_release + 12

8 libdispatch.dylib 0x00007fff8f8fd3c3 _dispatch_client_callout + 8

9 libdispatch.dylib 0x00007fff8f90fbd6 _dispatch_async_redirect_invoke + 1733

10 libdispatch.dylib 0x00007fff8f8fd3c3 _dispatch_client_callout + 8

11 libdispatch.dylib 0x00007fff8f901253 _dispatch_root_queue_drain + 1890

12 libdispatch.dylib 0x00007fff8f900ab8 _dispatch_worker_thread3 + 91

13 libsystem_pthread.dylib 0x00007fff97fa94f2 _pthread_wqthread + 1129

14 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 9:: com.apple.NSURLConnectionLoader

0 libsystem_kernel.dylib 0x00007fff8be82c96 mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fff8be820d7 mach_msg + 55

2 com.apple.CoreFoundation 0x00007fff8201d2b4 __CFRunLoopServiceMachPort + 212

3 com.apple.CoreFoundation 0x00007fff8201c77c __CFRunLoopRun + 1356

4 com.apple.CoreFoundation 0x00007fff8201bfc8 CFRunLoopRunSpecific + 296

5 com.apple.CFNetwork 0x00007fff8ea71d6d +[NSURLConnection(Loader) _resourceLoadLoop:] + 412

6 com.apple.Foundation 0x00007fff8f9e4ee4 __NSThread__start__ + 1351

7 libsystem_pthread.dylib 0x00007fff97fa99b1 _pthread_body + 131

8 libsystem_pthread.dylib 0x00007fff97fa992e _pthread_start + 168

9 libsystem_pthread.dylib 0x00007fff97fa7385 thread_start + 13

Thread 10:

0 libsystem_kernel.dylib 0x00007fff8be8878a __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff97fa958c _pthread_wqthread + 1283

2 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 11:

0 libsystem_kernel.dylib 0x00007fff8be8878a __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff97fa958c _pthread_wqthread + 1283

2 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 12:

0 libsystem_kernel.dylib 0x00007fff8be8878a __workq_kernreturn + 10

1 libsystem_pthread.dylib 0x00007fff97fa958c _pthread_wqthread + 1283

2 libsystem_pthread.dylib 0x00007fff97fa7375 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):

rax: 0x0000000000000138 rbx: 0x0000000000000000 rcx: 0x000000010f4be8f0 rdx: 0x0040000000000000

rdi: 0x00007fca2a802cd0 rsi: 0x053d80010f4c5f13 rbp: 0x00007fff509ea7b0 rsp: 0x00007fff509ea700

r8: 0x0000000000000001 r9: 0x0000000000000001 r10: 0x00007fca2868b3c0 r11: 0x00007fff745604f0

r12: 0x000000010fa347d6 r13: 0x0000000000000000 r14: 0x000000010fa7a2a0 r15: 0x00007fca284fbf00

rip: 0x000000010f23610e rfl: 0x0000000000010246 cr2: 0x000000010f22aaa0


Logical CPU: 0

Error Code: 0x00000000

Trap Number: 6

Replies

I believe "EXC_CORPSE_NOTIFY" is what you get in Swift when you reference an "unowned" property that's no longer a valid pointer. The backtrace seems to say that your app received an AppleEvent and it's trying to open a window as a result, and something referenced by the window does't exist any more.


This is most likely a memory management error in your code.

If you can convince Xcode to symbolicate that crash report, then these lines


0   com.- 0x000000010f23610e 0x10f213000 + 143630
1   com.- 0x000000010f22f17e 0x10f213000 + 115070
2   com.- 0x000000010f369496 0x10f213000 + 1402006
3   com.- 0x000000010f3696d6 0x10f213000 + 1402582


will point to the exact file and line numbers in your code where the crash occurred.

Thank you junkpile.

I've looked here for directions on how to symbolicate crash reports,

and am awaiting related files such as the DSYM file, CoreData, etc. from the user.


The wierd thing is that I have the same environment as the user, but I don't seem to have any issues starting the app.

Thank you QuinceyMorris.


Simply put, I have two windows I have to show depending on a certain condition.

I know from the user that 'something()' is false.


The storyboard has a NSWindowController with a Storyboard ID of "MainWindowController", and has it's window content set to a NSSplitViewController.

Could it be something in that NSSplitViewController?


class AppDelegate: NSObject, NSApplicationDelegate {

    var mainWindowController: NSWindowController?
    var altWindowController: NSWindowController?


    func applicationDidFinishLaunching(aNotification: NSNotification) {
        self.mainWindowController = NSStoryboard(name: "Main", bundle: NSBundle.mainBundle())
.instantiateControllerWithIdentifier("MainWindowController") as! NSWindowController

        if something() {
           // Set altWindowController and show
        } else {
            showMainWindow()
        }
    }

    func showMainWindow() {
        self.mainWindowController.window?.setFrame(NSMakeRect(self.mainWindowController.window!.frame.origin.x, self.mainWindowController.window!.frame.origin.y, 1050, 700), display: true)
        self.mainWindowController.window?.titlebarAppearsTransparent = true
       // Crashing after this??
        self.mainWindowController.showWindow(self)
    }

As junkpile says, if you can symbolicate the crash report, you'll have a clearer idea of what's going on. However, you can see from the back trace that the window-opening machinery (apparently) got as far as sending 'viewDidAppear:' to your view controller subclass, then there were 4 levels of calls from that method. Looking at what 'viewDidAppear' does might me a good place to start.

I believe

EXC_CORPSE_NOTIFY
is what you get in Swift when you reference an "unowned" property that's no longer a valid pointer.

Not quite.

EXC_CORPSE_NOTIFY
is part of the machine-exception-to-crash-log execution chain, and you’ll find it in most crash logs. The critical thing here is
EXC_BAD_INSTRUCTION (SIGILL)
, which indicates that the process executed an illegal instruction. The most common cause for that is that the compiler inserted this illegal instruction in such a way that it’s executed if one of the compiler’s safety checks fails. This can happen in C-based languages, but is very common in Swift (for example, when you unwrap a nil optional, or access outside of an array’s bounds).

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"