atom / atom

:atom: The hackable text editor
https://atom.io
MIT License
60.23k stars 17.39k forks source link

Atom 1.2.0 crashes when closing a full-screen window on OS X 10.11.1 #9584

Closed davepeck closed 8 years ago

davepeck commented 8 years ago

To reproduce:

  1. Run atom --safe
  2. Make the window full-screen
  3. Tap ⌘-Shift-W to close the window
  4. Wait for the crash!

Happy to share a full dump if needed. The more interesting bits:

Process:               Atom [45448]
Path:                  /Applications/Atom.app/Contents/MacOS/Atom
Identifier:            com.github.atom
Version:               1.2.0 (1.2.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Atom [45448]
User ID:               501

Date/Time:             2015-11-13 15:08:10.822 -0800
OS Version:            Mac OS X 10.11.1 (15B42)
Report Version:        11
Anonymous UUID:        D2B1C999-B2A2-9608-8E2F-B5130BFB7F1E

Sleep/Wake UUID:       1C61E36F-68DB-4D79-A073-505FC8BC9455

Time Awake Since Boot: 63000 seconds
Time Since Wake:       20000 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000007fc45dc3ca0

VM Regions Near 0x7fc45dc3ca0:
    Memory Tag 255         00000772e2200000-00000772e22dd000 [  884K] rw-/rwx SM=PRV  
--> 
    Memory Tag 255         0000095bba000000-0000095bba100000 [ 1024K] rw-/rwx SM=PRV  

Application Specific Information:
objc_msgSend() selector name: windowDidResize:

Global Trace Buffer (reverse chronological seconds):
5.002928     CFNetwork                  0x00007fff8d2a6163 TCP Conn 0x7fc45abd44b0 SSL Handshake DONE
5.189474     CFNetwork                  0x00007fff8d2a603f TCP Conn 0x7fc45abd44b0 starting SSL negotiation
5.189741     CFNetwork                  0x00007fff8d2a4a0f TCP Conn 0x7fc45abd44b0 complete. fd: 54, err: 0
5.189947     CFNetwork                  0x00007fff8d3331ad TCP Conn 0x7fc45abd44b0 event 1. err: 0
5.261386     CFNetwork                  0x00007fff8d2a3cdf TCP Conn 0x7fc45abd44b0 started
5.291244     CFNetwork                  0x00007fff8d26789e Creating default cookie storage with process/bundle identifier
5.291244     CFNetwork                  0x00007fff8d267836 Faulting in CFHTTPCookieStorage singleton
5.291251     CFNetwork                  0x00007fff8d2676c5 Faulting in NSHTTPCookieStorage singleton

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff91bb2e5d objc_msgSend + 29
1   com.apple.CoreFoundation        0x00007fff84f39c2f ___CFXRegistrationPost_block_invoke + 63
2   com.apple.CoreFoundation        0x00007fff84f39ba7 _CFXRegistrationPost + 407
3   com.apple.CoreFoundation        0x00007fff84f39912 ___CFXNotificationPost_block_invoke + 50
4   com.apple.CoreFoundation        0x00007fff84ef66d2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
5   com.apple.CoreFoundation        0x00007fff84ef5925 _CFXNotificationPost + 693
6   com.apple.Foundation            0x00007fff9ab550fa -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
7   com.apple.AppKit                0x00007fff95e2971c -[NSWindow _setFrameCommon:display:stashSize:] + 3477
8   com.apple.AppKit                0x00007fff95e28979 -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 222
9   com.apple.AppKit                0x00007fff95e28894 -[NSWindow setFrame:display:] + 67
10  com.apple.AppKit                0x00007fff95f96762 __25-[NSWindow setStyleMask:]_block_invoke + 2241
11  com.apple.AppKit                0x00007fff95e91f05 NSPerformVisuallyAtomicChange + 147
12  com.apple.AppKit                0x00007fff95f95e56 -[NSWindow setStyleMask:] + 222
13  com.apple.AppKit                0x00007fff9609569f -[NSWindow _didExitFullScreen:] + 247
14  com.apple.AppKit                0x00007fff96665489 __123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke_2 + 397
15  com.apple.AppKit                0x00007fff966651ec __123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke + 1300
16  com.apple.AppKit                0x00007fff96580a9f __177-[NSDockConnection(FullScreenMessages) sendFullScreenExitForTransition:synchronous:window:exitForClose:backgroundWindows:participatingWindows:customAnimation:completionHandler:]_block_invoke + 60
17  libxpc.dylib                    0x00007fff8905a74b _xpc_connection_reply_callout + 26
18  libxpc.dylib                    0x00007fff8905a6ec _xpc_connection_call_reply + 36
19  libdispatch.dylib               0x00007fff870663c3 _dispatch_client_callout + 8
20  libdispatch.dylib               0x00007fff87079c1b _dispatch_main_queue_callback_4CF + 1685
21  com.apple.CoreFoundation        0x00007fff84f63999 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
22  com.apple.CoreFoundation        0x00007fff84f229cd __CFRunLoopRun + 1949
23  com.apple.CoreFoundation        0x00007fff84f21fc8 CFRunLoopRunSpecific + 296
24  com.apple.HIToolbox             0x00007fff8d799d55 RunCurrentEventLoopInMode + 235
25  com.apple.HIToolbox             0x00007fff8d799b8f ReceiveNextEventCommon + 432
26  com.apple.HIToolbox             0x00007fff8d7999cf _BlockUntilNextEventMatchingListInModeWithFilter + 71
27  com.apple.AppKit                0x00007fff95d57d96 _DPSNextEvent + 1067
28  com.apple.AppKit                0x00007fff95d571c5 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
29  com.apple.AppKit                0x00007fff95d4bd28 -[NSApplication run] + 682
30  com.github.electron.framework   0x00000001062994a1 0x10612e000 + 1488033
31  com.github.electron.framework   0x0000000106298abc 0x10612e000 + 1485500
32  com.github.electron.framework   0x00000001062ce813 0x10612e000 + 1706003
33  com.github.electron.framework   0x000000010678de8b 0x10612e000 + 6684299
34  com.github.electron.framework   0x000000010678ddc5 0x10612e000 + 6684101
35  com.github.electron.framework   0x0000000106790272 0x10612e000 + 6693490
36  com.github.electron.framework   0x000000010678a11f 0x10612e000 + 6668575
37  com.github.electron.framework   0x000000010671401c 0x10612e000 + 6184988
38  com.github.electron.framework   0x0000000106713676 0x10612e000 + 6182518
39  com.github.electron.framework   0x000000010612ff0d AtomMain + 77
40  com.github.atom                 0x0000000106122eea main + 58
41  libdyld.dylib                   0x00007fff8975b5ad start + 1
winstliu commented 8 years ago

/cc @zcbenz

silentsokolov commented 8 years ago

+1

Process:               Atom [9795]
Path:                  /Applications/Atom.app/Contents/MacOS/Atom
Identifier:            com.github.atom
Version:               1.2.0 (1.2.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Atom [9795]
User ID:               501

Date/Time:             2015-11-16 10:56:09.825 +0300
OS Version:            Mac OS X 10.11.1 (15B42)
Report Version:        11
Anonymous UUID:        CD005D3F-9AAB-88BA-064B-946BD4B42FFE

Time Awake Since Boot: 6200 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000007f938e26a38

VM Regions Near 0x7f938e26a38:
    Memory Tag 255         000005f6636ff000-000005f682fe9000 [504.9M] ---/rwx SM=NUL  
--> 
    Memory Tag 255         000009009ee00000-000009009ef00000 [ 1024K] rw-/rwx SM=PRV  

Application Specific Information:
objc_msgSend() selector name: windowDidResize:

Global Trace Buffer (reverse chronological seconds):
107.021145   CFNetwork                  0x00007fff94cee163 TCP Conn 0x7f938d8da980 SSL Handshake DONE
107.330003   CFNetwork                  0x00007fff94cee03f TCP Conn 0x7f938d8da980 starting SSL negotiation
107.330412   CFNetwork                  0x00007fff94ceca0f TCP Conn 0x7f938d8da980 complete. fd: 58, err: 0
107.330667   CFNetwork                  0x00007fff94d7b1ad TCP Conn 0x7f938d8da980 event 1. err: 0
107.482235   CFNetwork                  0x00007fff94cebcdf TCP Conn 0x7f938d8da980 started
107.523443   CFNetwork                  0x00007fff94caf89e Creating default cookie storage with process/bundle identifier
107.523443   CFNetwork                  0x00007fff94caf836 Faulting in CFHTTPCookieStorage singleton
107.523446   CFNetwork                  0x00007fff94caf6c5 Faulting in NSHTTPCookieStorage singleton

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff915cdd5d objc_msgSend + 29
1   com.apple.CoreFoundation        0x00007fff9b49fc2f ___CFXRegistrationPost_block_invoke + 63
2   com.apple.CoreFoundation        0x00007fff9b49fba7 _CFXRegistrationPost + 407
3   com.apple.CoreFoundation        0x00007fff9b49f912 ___CFXNotificationPost_block_invoke + 50
4   com.apple.CoreFoundation        0x00007fff9b45c6d2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
5   com.apple.CoreFoundation        0x00007fff9b45b925 _CFXNotificationPost + 693
6   com.apple.Foundation            0x00007fff97ff70fa -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
7   com.apple.AppKit                0x00007fff9868d71c -[NSWindow _setFrameCommon:display:stashSize:] + 3477
8   com.apple.AppKit                0x00007fff9868c979 -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 222
9   com.apple.AppKit                0x00007fff9868c894 -[NSWindow setFrame:display:] + 67
10  com.apple.AppKit                0x00007fff987fa762 __25-[NSWindow setStyleMask:]_block_invoke + 2241
11  com.apple.AppKit                0x00007fff986f5f05 NSPerformVisuallyAtomicChange + 147
12  com.apple.AppKit                0x00007fff987f9e56 -[NSWindow setStyleMask:] + 222
13  com.apple.AppKit                0x00007fff988f969f -[NSWindow _didExitFullScreen:] + 247
14  com.apple.AppKit                0x00007fff98ec9489 __123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke_2 + 397
15  com.apple.AppKit                0x00007fff98ec91ec __123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke + 1300
16  com.apple.AppKit                0x00007fff98de4a9f __177-[NSDockConnection(FullScreenMessages) sendFullScreenExitForTransition:synchronous:window:exitForClose:backgroundWindows:participatingWindows:customAnimation:completionHandler:]_block_invoke + 60
17  libxpc.dylib                    0x00007fff8e20374b _xpc_connection_reply_callout + 26
18  libxpc.dylib                    0x00007fff8e2036ec _xpc_connection_call_reply + 36
19  libdispatch.dylib               0x00007fff978743c3 _dispatch_client_callout + 8
20  libdispatch.dylib               0x00007fff97887c1b _dispatch_main_queue_callback_4CF + 1685
21  com.apple.CoreFoundation        0x00007fff9b4c9999 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
22  com.apple.CoreFoundation        0x00007fff9b4889cd __CFRunLoopRun + 1949
23  com.apple.CoreFoundation        0x00007fff9b487fc8 CFRunLoopRunSpecific + 296
24  com.apple.HIToolbox             0x00007fff8aa15d55 RunCurrentEventLoopInMode + 235
25  com.apple.HIToolbox             0x00007fff8aa15b8f ReceiveNextEventCommon + 432
26  com.apple.HIToolbox             0x00007fff8aa159cf _BlockUntilNextEventMatchingListInModeWithFilter + 71
27  com.apple.AppKit                0x00007fff985bbd96 _DPSNextEvent + 1067
28  com.apple.AppKit                0x00007fff985bb1c5 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
29  com.apple.AppKit                0x00007fff985afd28 -[NSApplication run] + 682
30  com.github.electron.framework   0x000000010e5774a1 0x10e40c000 + 1488033
31  com.github.electron.framework   0x000000010e576abc 0x10e40c000 + 1485500
32  com.github.electron.framework   0x000000010e5ac813 0x10e40c000 + 1706003
33  com.github.electron.framework   0x000000010ea6be8b 0x10e40c000 + 6684299
34  com.github.electron.framework   0x000000010ea6bdc5 0x10e40c000 + 6684101
35  com.github.electron.framework   0x000000010ea6e272 0x10e40c000 + 6693490
36  com.github.electron.framework   0x000000010ea6811f 0x10e40c000 + 6668575
37  com.github.electron.framework   0x000000010e9f201c 0x10e40c000 + 6184988
38  com.github.electron.framework   0x000000010e9f1676 0x10e40c000 + 6182518
39  com.github.electron.framework   0x000000010e40df0d AtomMain + 77
40  com.github.atom                 0x000000010e401eea main + 58
41  libdyld.dylib                   0x00007fff911c55ad start + 1
mistadikay commented 8 years ago

same here

Process:               Atom [37123]
Path:                  /Applications/Atom.app/Contents/MacOS/Atom
Identifier:            com.github.atom
Version:               1.2.0 (1.2.0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Atom [37123]
User ID:               501

Date/Time:             2015-11-17 13:37:11.798 +0700
OS Version:            Mac OS X 10.11.2 (15C40a)
Report Version:        11
Anonymous UUID:        C7CC62AD-DD3E-9C81-FFB3-35B62D96BA31

Sleep/Wake UUID:       30B6FCFA-9428-4823-80B7-91ACF17FFC7A

Time Awake Since Boot: 430000 seconds
Time Since Wake:       95000 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000018

VM Regions Near 0x18:
--> 
    __TEXT                 0000000101549000-000000010154a000 [    4K] r-x/rwx SM=COW  /Applications/Atom.app/Contents/MacOS/Atom

Application Specific Information:
objc_msgSend() selector name: windowDidResize:

Global Trace Buffer (reverse chronological seconds):
730.614171   CFNetwork                  0x00007fff8fdfc8a7 TCP Conn 0x7fead8f342f0 SSL Handshake DONE
731.169071   CFNetwork                  0x00007fff8fdfc783 TCP Conn 0x7fead8f342f0 starting SSL negotiation
731.169303   CFNetwork                  0x00007fff8fdfb14d TCP Conn 0x7fead8f342f0 complete. fd: 65, err: 0
731.169537   CFNetwork                  0x00007fff8fe89a2b TCP Conn 0x7fead8f342f0 event 1. err: 0
731.808019   CFNetwork                  0x00007fff8fdfa41f TCP Conn 0x7fead8f342f0 started
731.839607   CFNetwork                  0x00007fff8fdbe08a Creating default cookie storage with process/bundle identifier
731.839607   CFNetwork                  0x00007fff8fdbe022 Faulting in CFHTTPCookieStorage singleton
731.839610   CFNetwork                  0x00007fff8fdbdeb1 Faulting in NSHTTPCookieStorage singleton

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff911544dd objc_msgSend + 29
1   com.apple.CoreFoundation        0x00007fff901a067f ___CFXRegistrationPost_block_invoke + 63
2   com.apple.CoreFoundation        0x00007fff9019fd47 _CFXRegistrationPost + 407
3   com.apple.CoreFoundation        0x00007fff9019fab2 ___CFXNotificationPost_block_invoke + 50
4   com.apple.CoreFoundation        0x00007fff90199d42 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
5   com.apple.CoreFoundation        0x00007fff90088145 _CFXNotificationPost + 693
6   com.apple.Foundation            0x00007fff9dae9921 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
7   com.apple.AppKit                0x00007fff915d4522 -[NSWindow _setFrameCommon:display:stashSize:] + 3507
8   com.apple.AppKit                0x00007fff915d3760 -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 222
9   com.apple.AppKit                0x00007fff915d367b -[NSWindow setFrame:display:] + 67
10  com.apple.AppKit                0x00007fff916c5419 __25-[NSWindow setStyleMask:]_block_invoke + 2241
11  com.apple.AppKit                0x00007fff91d415b5 NSPerformVisuallyAtomicChange + 147
12  com.apple.AppKit                0x00007fff916c4ad9 -[NSWindow setStyleMask:] + 222
13  com.apple.AppKit                0x00007fff91847ed5 -[NSWindow _didExitFullScreen:] + 309
14  com.apple.AppKit                0x00007fff91e5abe5 __123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke_2 + 397
15  com.apple.AppKit                0x00007fff91e5a948 __123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke + 1300
16  com.apple.AppKit                0x00007fff91d6da2f __177-[NSDockConnection(FullScreenMessages) sendFullScreenExitForTransition:synchronous:window:exitForClose:backgroundWindows:participatingWindows:customAnimation:completionHandler:]_block_invoke + 60
17  libxpc.dylib                    0x00007fff923c991f _xpc_connection_reply_callout + 26
18  libxpc.dylib                    0x00007fff923c98c0 _xpc_connection_call_reply + 36
19  libdispatch.dylib               0x00007fff9852033f _dispatch_client_callout + 8
20  libdispatch.dylib               0x00007fff98533c1d _dispatch_main_queue_callback_4CF + 1685
21  com.apple.CoreFoundation        0x00007fff9012ccd9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
22  com.apple.CoreFoundation        0x00007fff900e7d3d __CFRunLoopRun + 1949
23  com.apple.CoreFoundation        0x00007fff900e7338 CFRunLoopRunSpecific + 296
24  com.apple.HIToolbox             0x00007fff9e894935 RunCurrentEventLoopInMode + 235
25  com.apple.HIToolbox             0x00007fff9e89476f ReceiveNextEventCommon + 432
26  com.apple.HIToolbox             0x00007fff9e8945af _BlockUntilNextEventMatchingListInModeWithFilter + 71
27  com.apple.AppKit                0x00007fff91595dc2 _DPSNextEvent + 1067
28  com.apple.AppKit                0x00007fff9196289f -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
29  com.apple.AppKit                0x00007fff9158bc9c -[NSApplication run] + 682
30  com.github.electron.framework   0x00000001016be4a1 0x101553000 + 1488033
31  com.github.electron.framework   0x00000001016bdabc 0x101553000 + 1485500
32  com.github.electron.framework   0x00000001016f3813 0x101553000 + 1706003
33  com.github.electron.framework   0x0000000101bb2e8b 0x101553000 + 6684299
34  com.github.electron.framework   0x0000000101bb2dc5 0x101553000 + 6684101
35  com.github.electron.framework   0x0000000101bb5272 0x101553000 + 6693490
36  com.github.electron.framework   0x0000000101baf11f 0x101553000 + 6668575
37  com.github.electron.framework   0x0000000101b3901c 0x101553000 + 6184988
38  com.github.electron.framework   0x0000000101b38676 0x101553000 + 6182518
39  com.github.electron.framework   0x0000000101554f0d AtomMain + 77
40  com.github.atom                 0x0000000101549eea main + 58
41  libdyld.dylib                   0x00007fff9ae895ad start + 1
davepeck commented 8 years ago

Seems like this might land as an issue in the atom/electron repo?

lee-dohm commented 8 years ago

There is extra context on Discuss here:

https://discuss.atom.io/t/bug-atom-crash-after-close-fullscreen-window-on-mac/22716

I've never been able to reproduce this, personally.

75lb commented 8 years ago

this is a constant problem for me too, my reproduction steps are the same as above.. here is my crash log

Mac OSX 10.11.1 reproduced in Atom 1.2.3 and 1.3.0-beta3

benogle commented 8 years ago

Note: more crash logs at https://github.com/atom/atom/issues/9686

OmgImAlexis commented 8 years ago

Just a head's up, I've never had this issue with anything before El Capitan so it's definitely specific to that version of OS X.

chalasr commented 8 years ago

+1

Process:               Atom [10193]
Path:                  /Applications/Atom.app/Contents/MacOS/Atom
Identifier:            com.github.atom
Version:               1.2.4 (1.2.4)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Atom [10193]
User ID:               501

Date/Time:             2015-12-02 20:01:18.448 +0100
OS Version:            Mac OS X 10.11 (15A284)
Report Version:        11
Anonymous UUID:        A76361E6-E4D9-0553-46F8-39E7482C7650

Time Awake Since Boot: 820 seconds

System Integrity Protection: disabled

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000007f9149c7120

VM Regions Near 0x7f9149c7120:
    Memory Tag 255         000007cd2e89a000-000007cd2ea7a000 [ 1920K] ---/rwx SM=NUL  
--> 
    Memory Tag 255         00000a79a3300000-00000a79a3400000 [ 1024K] rw-/rwx SM=PRV  

Application Specific Information:
objc_msgSend() selector name: windowDidResize:

Global Trace Buffer (reverse chronological seconds):
39.504850    CFNetwork                  0x00007fff88f4607b TCP Conn 0x7f914c5042a0 SSL Handshake DONE
39.743544    CFNetwork                  0x00007fff88f45f57 TCP Conn 0x7f914c5042a0 starting SSL negotiation
39.743852    CFNetwork                  0x00007fff88f44927 TCP Conn 0x7f914c5042a0 complete. fd: 64, err: 0
39.744092    CFNetwork                  0x00007fff88fd3121 TCP Conn 0x7f914c5042a0 event 1. err: 0
39.877259    CFNetwork                  0x00007fff88f43bf7 TCP Conn 0x7f914c5042a0 started
39.918995    CFNetwork                  0x00007fff88f0775e Creating default cookie storage with process/bundle identifier
39.918995    CFNetwork                  0x00007fff88f076f6 Faulting in CFHTTPCookieStorage singleton
39.918995    CFNetwork                  0x00007fff88f07585 Faulting in NSHTTPCookieStorage singleton

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x00007fff8af34e5d objc_msgSend + 29
1   com.apple.CoreFoundation        0x00007fff93c4b99f ___CFXRegistrationPost_block_invoke + 63
2   com.apple.CoreFoundation        0x00007fff93c4b917 _CFXRegistrationPost + 407
3   com.apple.CoreFoundation        0x00007fff93c4b682 ___CFXNotificationPost_block_invoke + 50
4   com.apple.CoreFoundation        0x00007fff93c08442 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
5   com.apple.CoreFoundation        0x00007fff93c07695 _CFXNotificationPost + 693
6   com.apple.Foundation            0x00007fff94f9131a -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
7   com.apple.AppKit                0x00007fff95eb78c0 -[NSWindow _setFrameCommon:display:stashSize:] + 3477
8   com.apple.AppKit                0x00007fff95eb6b1d -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 222
9   com.apple.AppKit                0x00007fff95eb6a38 -[NSWindow setFrame:display:] + 67
10  com.apple.AppKit                0x00007fff96024906 __25-[NSWindow setStyleMask:]_block_invoke + 2241
11  com.apple.AppKit                0x00007fff95f200a9 NSPerformVisuallyAtomicChange + 147
12  com.apple.AppKit                0x00007fff96023ffa -[NSWindow setStyleMask:] + 222
13  com.apple.AppKit                0x00007fff961237eb -[NSWindow _didExitFullScreen:] + 247
14  com.apple.AppKit                0x00007fff966f32fd __106-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:options:customWindows:doKitAnimation:]_block_invoke + 1281
15  com.apple.AppKit                0x00007fff9660ebe7 __177-[NSDockConnection(FullScreenMessages) sendFullScreenExitForTransition:synchronous:window:exitForClose:backgroundWindows:participatingWindows:customAnimation:completionHandler:]_block_invoke + 60
16  libxpc.dylib                    0x00007fff9224074b _xpc_connection_reply_callout + 26
17  libxpc.dylib                    0x00007fff922406ec _xpc_connection_call_reply + 36
18  libdispatch.dylib               0x00007fff8aab8453 _dispatch_client_callout + 8
19  libdispatch.dylib               0x00007fff8aacbc1c _dispatch_main_queue_callback_4CF + 1685
20  com.apple.CoreFoundation        0x00007fff93c75789 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
21  com.apple.CoreFoundation        0x00007fff93c3473d __CFRunLoopRun + 1949
22  com.apple.CoreFoundation        0x00007fff93c33d38 CFRunLoopRunSpecific + 296
23  com.apple.HIToolbox             0x00007fff8d9eed55 RunCurrentEventLoopInMode + 235
24  com.apple.HIToolbox             0x00007fff8d9eeb8f ReceiveNextEventCommon + 432
25  com.apple.HIToolbox             0x00007fff8d9ee9cf _BlockUntilNextEventMatchingListInModeWithFilter + 71
26  com.apple.AppKit                0x00007fff95de5f3a _DPSNextEvent + 1067
27  com.apple.AppKit                0x00007fff95de5369 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
28  com.apple.AppKit                0x00007fff95dd9ecc -[NSApplication run] + 682
29  com.github.electron.framework   0x00000001007384a1 0x1005cd000 + 1488033
30  com.github.electron.framework   0x0000000100737abc 0x1005cd000 + 1485500
31  com.github.electron.framework   0x000000010076d813 0x1005cd000 + 1706003
32  com.github.electron.framework   0x0000000100c2ce8b 0x1005cd000 + 6684299
33  com.github.electron.framework   0x0000000100c2cdc5 0x1005cd000 + 6684101
34  com.github.electron.framework   0x0000000100c2f272 0x1005cd000 + 6693490
35  com.github.electron.framework   0x0000000100c2911f 0x1005cd000 + 6668575
36  com.github.electron.framework   0x0000000100bb301c 0x1005cd000 + 6184988
37  com.github.electron.framework   0x0000000100bb2676 0x1005cd000 + 6182518
38  com.github.electron.framework   0x00000001005cef0d AtomMain + 77
39  com.github.atom                 0x00000001005c2eea main + 58
40  libdyld.dylib                   0x00007fff8ead35ad start + 1
OmgImAlexis commented 8 years ago

@zcbenz is there any way to force an update to the version that's fixed? I'm still getting crashes and it says there's no updates available. :disappointed:

winstliu commented 8 years ago

@OmgImAlexis I don't believe a new version was released that contains this fix yet.

stevenmills commented 8 years ago

+1

memoht commented 8 years ago

+1

75lb commented 8 years ago

i'm eagerly waiting a release, too - my Atom crashes all day, everyday unless i un-fullscreen a window before closing it..

OmgImAlexis commented 8 years ago

@75lb that's handy to know until they release the next update.

moeriki commented 8 years ago

+1

Can reproduce this indefinitely.

Close non full-screen window = OK Close (CMD + SHIFT + W) in OS X native fullscreen = app crash

http://pastebin.com/xftPgvGp

Looks like it's fixed according to #9838

jahio commented 8 years ago

Just stumbled on this thread while doing some searching for SIGSEGV issues on El Capitan in the last ~month. After reading through a whole lot of git issues, forum posts, blogs, and skimming just as many system traces, I've read a few things that are starting to make sense, and thought I'd just mention them here for your benefit; feel free to chime in here with your opinion on this, especially if you're a BSD guru or OS X developer, as I'm neither.

Several of the stack traces I saw mentioned a SIGSEGV (segfault - reaching for memory that either doesn't exist or that the operating system denies to the process for other reasons - e.g. address owned by another process, for example) caused by the main thread. Others mentioned the same thing (segfault) caused by some kind of QOS library.

I also noticed that every affected report was from someone rockin' El Capitan 10.11.1.

Next, XCode. I stumbled on a few separate threads where multiple developers claimed that since the upgrade to XCode 7.1, the IDE was horribly unstable. One person even claimed it crashed on him every 15 minutes.

Recap so far: El Capitan 10.11.1 specifically. XCode 7.1.1. The former released late October, the latter on November 9th. Not an exact line-up, but pretty close in terms of major releases. And people with this combination get random segfaults, crashing XCode and/or misc. apps of all kinds (saw reports of media apps like Adobe Photoshop CC, a video game emulator, and several other things).

Some dude on the Apple forums claimed that he actually managed to get a coherent response from Apple (ZOMG WHOA, HISTORY IN THE MAKING) on this through a bug report . They claimed that it was a known issue that's supposedly fixed in the next version of El Capitan, 10.11.2, which is available through the App Store right now via the public beta program. (Google up some "mac os beta opt in" or something and you'll find it).

Another interesting find of my own is that on my machine, I've seen this happen with specific programs over the last several days to weeks, seemingly at random. (And if you know anything about concurrent programming, you know that "random" is code for "oh shit, threads done screwed it up again!") There are two specific programs I was using, both of which were quite modern, regularly maintained and updated, and generally considered stable.These two specific programs I have in mind were repeat offenders. I couldn't crash it on demand with specific actions, but these two were FAR more probable to trigger this behavior than others - although others can do it.

My theory, with all this in mind, is that Apple introduced a concurrency bug of some kind in various underlying OS dependencies upon which some programs depend. When the program makes a call to the OS for whatever it needs, the bug gets hit in certain cases, causing the thread to fetch a memory address that doesn't have anything in it yet. Boom - segfault.

I'm off to update to OS X 10.11.2 public beta 5 to see if that in some way helps. It's frustrating because I'll have no way of knowing if it helps or not until I get a crash - in which case, it didn't help! :)

Hope this is useful to some one and/or in some way enlightening. Good luck, everyone.

moeriki commented 8 years ago

I'm on the latest Beta of OS X El Capitan though. Still have this issue with Atom and one other app.

jahio commented 8 years ago

Just to try to narrow it down @Moeriki, what build number are you on? The latest the app store shows me is what I have installed as of now - 10.11.2 Beta (15C48a). I haven't seen it happen again, though that doesn't yet mean much of course. Any details we can get to line things up would be helpful, though!

moeriki commented 8 years ago

Apple Menu > System Information: System Version: OS X 10.11 (15A278b) Curious how this can differ. Are there multiple levels of beta program?

jahio commented 8 years ago

That's odd, it looks like it's either hiding the minor version (.2) from you, or maybe somehow you're actually on the .0 version still, in spite of actually upgrading? I'm curious, what region does the App Store consider you to be under? I'm physically and in terms of my Apple account in the United States; if you're not, I wonder: are they holding other regions back?!

moeriki commented 8 years ago

They might be. I'm in Europe. How old is this latest beta you're on? I've been receiving betas for OS X steadily since half a year. Started a bit before El Capitan was out.

winstliu commented 8 years ago

/cc @zcbenz to look at @jaustinhughey's comments that this will be fixed in the next El Capitan release.

davepeck commented 8 years ago

This bug is not fixed with the release of El Capitan 10.11.2. @zcbenz Already checked in the fix for Electron (which reads to me more like a workaround for an underlying OS X bug) so it's just a question of time before a new version of Atom is available that doesn't crash.

carlcs commented 8 years ago

This is still an issue with OS 10.11.2 release and Atom 1.3.1.

davepeck commented 8 years ago

This is fixed with Atom 1.4.0-beta0

Cangit commented 8 years ago

Was this not fixed 23 days ago with Electron 0.34.5? Unfortunately the recently released Atom 1.3.0 and 1.3.1 is shipping with Electron 0.34.3 for unknown reasons. There should be a priority to get Atom 1.3.x patched with Electron 0.34.5, since 0.34.4 and 0.34.5 are just bugfix versions.

winstliu commented 8 years ago

There should be a priority to get Atom 1.3.x patched with Electron 0.34.5, since 0.34.4 and 0.34.5 are just bugfix versions.

I'll ask the core team to consider releasing a patch release with 0.34.5.

davidhariri commented 8 years ago

This is still an issue on El Capitan with Atom 1.3.2

lee-dohm commented 8 years ago

@davidhariri Yes, it is fixed in the v1.4.x betas.

davidawad commented 8 years ago

+1 still having this issue

andre0799 commented 8 years ago

+1 (1.3.2 stable)

winstliu commented 8 years ago

This has been fixed in the 1.4 betas already. If you are still experiencing this on 1.4.0 or later, please file a new issue. Thanks!

winstliu commented 8 years ago

Atom 1.3.3 is now out which fixes this crash. Sorry for the delay!