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

Bug 325293

Summary: SWTException when closing ControlExample while child-shell is active
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED WONTFIX QA Contact: Lakshmi P Shanmugam <lshanmug>
Severity: minor    
Priority: P3 CC: skovatch
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Markus Keller CLA 2010-09-14 16:38:39 EDT
I20100914-0100 Carbon

- run ControlExample from HEAD
- click Get/Set API
- without giving focus to the main window, click the main window's close button
=> application quits, but this is written to stderr:

2010-09-14 22:27:19.847 java[9151:903] *** __NSAutoreleaseNoPool(): Object 0x173ac0 of class NSEvent autoreleased with no pool in place - just leaking
Exception in thread "main" org.eclipse.swt.SWTException: Graphic is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4083)
	at org.eclipse.swt.SWT.error(SWT.java:3998)
	at org.eclipse.swt.SWT.error(SWT.java:3969)
	at org.eclipse.swt.graphics.Image.getBounds(Image.java:613)
	at org.eclipse.swt.widgets.Table.drawItemProc(Table.java:1052)
	at org.eclipse.swt.widgets.Display.drawItemProc(Display.java:1203)
	at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
	at org.eclipse.swt.widgets.Widget.callPaintEventHandler(Widget.java:186)
	at org.eclipse.swt.widgets.Table.callPaintEventHandler(Table.java:209)
	at org.eclipse.swt.widgets.Widget.kEventControlDraw(Widget.java:1116)
	at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:376)
	at org.eclipse.swt.widgets.Display.controlProc(Display.java:915)
	at org.eclipse.swt.internal.carbon.OS.DisposeWindow(Native Method)
	at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:661)
	at org.eclipse.swt.widgets.Widget.release(Widget.java:1501)
	at org.eclipse.swt.widgets.Control.release(Control.java:2571)
	at org.eclipse.swt.widgets.Widget.dispose(Widget.java:701)
	at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1441)
	at org.eclipse.swt.widgets.Widget.release(Widget.java:1494)
	at org.eclipse.swt.widgets.Control.release(Control.java:2571)
	at org.eclipse.swt.widgets.Widget.dispose(Widget.java:701)
	at org.eclipse.swt.widgets.Shell.closeWidget(Shell.java:510)
	at org.eclipse.swt.widgets.Shell.kEventWindowClose(Shell.java:1142)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2208)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4427)
	at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3219)
	at org.eclipse.swt.examples.controlexample.ControlExample.main(ControlExample.java:223)
Comment 1 Scott Kovatch CLA 2010-09-14 16:48:53 EDT
No guarantees we'll fix it, since it's carbon, but over to Silenio.
Comment 2 Markus Keller CLA 2010-09-15 04:23:36 EDT
> No guarantees we'll fix it, since it's carbon, but over to Silenio.

I have no problem with that, I just thought I file it in case it's a broader issue.
Comment 3 Silenio Quarti CLA 2012-06-21 14:27:58 EDT
Closing report, platform is discontinued.

Works on cocoa.