Community
Participate
Working Groups
Hello, First I must say that I am not entirely sure that this is a problem from SWT or from the machine on which I am testing. However, the stack trace makes me believe that it is more likely to be a SWT bug, maybe caused by some OS X changes in Mavericks. OS version: OS X 10.9 (13A47u). SWT version: swt-4.3-cocoa-macosx-x86_64 Scenario: I am using SWT 4.3 to launch the Display in my app. It works fine on existing versions of OS X, but on the new Mavericks my app is crashing. This is what I get on the Details box: 0 CoreFoundation 0x00007fff92e278ce __exceptionPreprocess + 174 1 libobjc.A.dylib 0x00007fff884d3f51 objc_exception_throw + 43 2 CoreFoundation 0x00007fff92e276bc +[NSException raise:format:] + 204 3 AppKit 0x00007fff8ec58090 -[NSCarbonMenuImpl _createMenuRef] + 62 4 AppKit 0x00007fff8ec57a66 -[NSCarbonMenuImpl _instantiateCarbonMenu] + 143 5 AppKit 0x00007fff8ec569bf -[NSApplication finishLaunching] + 767 6 libswt-pi-cocoa-4332.jnilib 0x000000010cf7d9ee Java_org_eclipse_swt_internal_cocoa_OS_objc_1msgSendSuper__Lorg_eclipse_swt_internal_cocoa_objc_1super_2J + 89 7 ??? 0x0000000104811eee 0x0 + 4370538222 This is what I get when I choose 'Crash', 'Report': Process: JavaApplicationStub [2307] Path: <pathtomyapp>/Contents/MacOS/JavaApplicationStub Identifier: JavaApplicationStub Version: 100.0 Code Type: X86-64 (Native) Parent Process: launchd [170] Responsible: JavaApplicationStub [2307] User ID: 501 Date/Time: 2013-07-24 04:58:53.181 -0500 OS Version: Mac OS X 10.9 (13A476u) Report Version: 11 Anonymous UUID: FC148B82-35B0-755B-43D0-797A602531B9 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Application Specific Information: Crashing on exception: _createMenuRef called with existing principal MenuRef already associated with menu Java information: Exception type: Illegal Instruction (0x4) at pc=7fff8ee94744 Java VM: Java HotSpot(TM) 64-Bit Server VM (20.51-b01-457 mixed mode macosx-amd64) Current thread (103801000): JavaThread "main" [_thread_in_native, id=2029396752, stack(7fff5f400000,7fff5fc00000)] Stack: [7fff5f400000,7fff5fc00000] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Lorg/eclipse/swt/internal/cocoa/objc_super;J)J+0 j org.eclipse.swt.widgets.Display.finishLaunching(JJ)V+41 j org.eclipse.swt.widgets.Display.applicationProc(JJ)J+78 v ~StubRoutines::call_stub j org.eclipse.swt.internal.cocoa.OS.objc_msgSend(JJ)J+0 j org.eclipse.swt.internal.cocoa.NSApplication.finishLaunching()V+7 j org.eclipse.swt.widgets.Display.init()V+109 j org.eclipse.swt.graphics.Device.<init>(Lorg/eclipse/swt/graphics/DeviceData;)V+187 j org.eclipse.swt.widgets.Display.<init>(Lorg/eclipse/swt/graphics/DeviceData;)V+2 j org.eclipse.swt.widgets.Display.<init>()V+2 j myapp.SWTDisplayManager.<init>()V+24 Thank you guys for taking the time to look over this.
Is this on the OSX 10.9 preview version? Are you able to bring up eclipse 4.3 on it?
(In reply to comment #1) > Is this on the OSX 10.9 preview version? Are you able to bring up eclipse > 4.3 on it? Yes to both question. I'll get back to you with specific code examples and behaviors as soon as I get access to the machine again.
Please provide the sample code to reproduce the problem.
Do you see this on the 10.9 release version?
See also bug 431950. I think the JavaApplicationStub doesn't work any more on Mavericks.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.