Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341666

Summary: [10.7]Eclipse Cocoa is crashing in Mac OS X 10.7 Lion beta when hitting Command Q to quit
Product: [Eclipse Project] Platform Reporter: Bino George <bino_george>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: esapersona, lshanmug, Silenio_Quarti, swingler
Version: 4.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Bino George CLA 2011-04-01 14:57:11 EDT
Wuala (an Eclipse Cocoa based application) is crashing on Mac OS X 10.7 Lion beta when hitting Command Q to quit :


Thread 0 Crashed:
0   libobjc.A.dylib               	0x00007fff9227eead objc_msgSend_vtable5 + 21
1   com.apple.AppKit              	0x00007fff8f4ae598 -[NSApplication encodeRestorableStateWithCoder:] + 96
2   com.apple.AppKit              	0x00007fff8f9e8b49 -[NSPersistentUIRecord generateArchive:] + 177
3   com.apple.AppKit              	0x00007fff8f9e827b recursivelyEncodeInvalidPersistentState + 406
4   com.apple.AppKit              	0x00007fff8f9e7a3b -[NSPersistentUIManager flushAllChangesOptionallyWaitingUntilDone:] + 1515
5   com.apple.AppKit              	0x00007fff8f865dde __-[NSWindow _close]_block_invoke_1 + 97
6   com.apple.AppKit              	0x00007fff8f3f7ac6 -[NSWindow _close] + 363
7   libswt-pi-cocoa-3655.jnilib   	0x0000000108e110fc Java_org_eclipse_swt_internal_cocoa_OS_objc_1msgSend__JJ + 46
8   ???                           	0x0000000101540a96 0 + 4317252246
9   ???                           	0x0000000101496929 0 + 4316555561
10  ???                           	0x000000010149685a 0 + 4316555354
11  ???                           	0x000000010149685a 0 + 4316555354
12  ???                           	0x000000010149685a 0 + 4316555354
13  ???                           	0x000000010149685a 0 + 4316555354
14  ???                           	0x000000010149685a 0 + 4316555354
15  ???                           	0x000000010149685a 0 + 4316555354
16  ???                           	0x000000010149685a 0 + 4316555354
17  ???                           	0x0000000101496d34 0 + 4316556596
18  ???                           	0x000000010149685a 0 + 4316555354

The app's delegate has been deallocated while it is still attached to the application, so Appkit crashes while trying to message it.  Whoever is responsible for setting the NSApp's delegate in the Eclipse Cocoa port should clear it when that delegate is deallocated.
Comment 1 Royce CLA 2011-07-23 06:59:02 EDT
Perhaps I'm not doing the same thing as Bino, but hitting Command-Q works fine for me using Indigo and 10.7.0 (the first release)
Comment 2 Silenio Quarti CLA 2011-08-04 16:44:24 EDT
I cannot reproduce this problem. Please reopen if it still happens for you with 10.7.0 (the first release).