Project: SWT
Bug 336957 Crash in SWT Carbon OS.ReceiveNextEvent / Display.trayItemProc
Reported: 2011-02-11 11:16:01 | Status: resolved fixed

Build Identifier: 3.6.1.v3655c We are sometimes getting crashes in the Carbon SWT at shutdown. It is intermittent, and but does occur during the time that the application is shutting down, and the Display is being shutdown. I will attach the Apple Crash Report of when the event occurred. Unfortunately, I can not recreate it at will. It appears to be related to receiving another event, and the tray item. The Java stack at the time of the crash is: j org.eclipse.swt.widgets.Display.trayItemProc(IIII)I+4 v ~StubRoutines::call_stub J org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(I[IDZ[I)I j org.eclipse.swt.widgets.Display.readAndDispatch()Z+46 j org.eclipse.swt.widgets.Display.release()V+72 j org.eclipse.swt.graphics.Device.dispose()V+50 j com.ibm.rcp.personality.framework.internal.RCPApplication.run(Ljava/lang/ Object;)Ljava/lang/Object;+251 v ~StubRoutines::call_stub j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/ lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/ Object;)Ljava/lang/Object;+87 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/ Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/ Object;+161 The native stack is quite deep into the Apple APIs, and will be in the attached report. Reproducible: Couldn't Reproduce

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TrayItem.java