Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Weird SWTException
Weird SWTException [message #327929] Thu, 08 May 2008 15:44 Go to next message
Eclipse UserFriend
Originally posted by: brianf.sybase.com

Hi all...

I'm working with the 3.4 M7 platform build and we're getting this strange
error from DTP when we delete a profile that's connected. What's weird is
that this code hasn't changed and it works just fine on 3.3.2.

There's absolutely no additional information I can provide, otherwise I'd be
debugging this one further myself.

Has anyone else seen this bizarro behavior anywhere else with the 3.4 M7
milestone? I'm plum out of ideas.

It's BZ231008 if anyone is interested.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=231008

Thanks in advance
--Fitz (aka Brian Fitzpatrick)
Data Tools Project PMC Lead
Data Tools Project Connectivity Sub-project Lead
Sr. Software Engineer
Sybase, Inc.

!ENTRY org.eclipse.ui 4 0 2008-05-08 09:15:55.915
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Graphic is disposed
at org.eclipse.swt.SWT.error(SWT.java:3773)
at org.eclipse.swt.SWT.error(SWT.java:3691)
at org.eclipse.swt.SWT.error(SWT.java:3662)
at org.eclipse.swt.graphics.Image.getImageData(Image.java:1190)
at org.eclipse.swt.internal.ImageList.set(ImageList.java:401)
at org.eclipse.swt.internal.ImageList.add(ImageList.java:66)
at org.eclipse.swt.widgets.Tree.imageIndex(Tree.java:3607)
at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7019)
at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4713)
at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:17 56)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4343)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3836 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4500 )
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:226 0)
at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1521)
at org.eclipse.swt.widgets.Tree.WM_PAINT(Tree.java:6673)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3837 )
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5703)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4487 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:23 46)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3379)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2394)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2358)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 10)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:494)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:489)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:112)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Re: Weird SWTException [message #327955 is a reply to message #327929] Fri, 09 May 2008 13:30 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Brian,

It looks like an Image has been dispose()d while it's still set as a
TreeItem's image in a non-disposed Tree. If you put a breakpoint where the
exception occurs then you can see in the stack's
org.eclipse.swt.widgets.Tree.wmNotifyChild(...) method which item has the
disposed image, and hopefully from there figure out how this image got
disposed too early.

Grant


"Brian Fitzpatrick" <brianf@sybase.com> wrote in message
news:fvv748$urp$1@build.eclipse.org...
> Hi all...
>
> I'm working with the 3.4 M7 platform build and we're getting this strange
> error from DTP when we delete a profile that's connected. What's weird is
> that this code hasn't changed and it works just fine on 3.3.2.
>
> There's absolutely no additional information I can provide, otherwise I'd
be
> debugging this one further myself.
>
> Has anyone else seen this bizarro behavior anywhere else with the 3.4 M7
> milestone? I'm plum out of ideas.
>
> It's BZ231008 if anyone is interested.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=231008
>
> Thanks in advance
> --Fitz (aka Brian Fitzpatrick)
> Data Tools Project PMC Lead
> Data Tools Project Connectivity Sub-project Lead
> Sr. Software Engineer
> Sybase, Inc.
>
> !ENTRY org.eclipse.ui 4 0 2008-05-08 09:15:55.915
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Graphic is disposed
> at org.eclipse.swt.SWT.error(SWT.java:3773)
> at org.eclipse.swt.SWT.error(SWT.java:3691)
> at org.eclipse.swt.SWT.error(SWT.java:3662)
> at org.eclipse.swt.graphics.Image.getImageData(Image.java:1190)
> at org.eclipse.swt.internal.ImageList.set(ImageList.java:401)
> at org.eclipse.swt.internal.ImageList.add(ImageList.java:66)
> at org.eclipse.swt.widgets.Tree.imageIndex(Tree.java:3607)
> at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7019)
> at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4713)
> at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:17 56)
> at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4343)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3836 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4500 )
> at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:226 0)
> at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1521)
> at org.eclipse.swt.widgets.Tree.WM_PAINT(Tree.java:6673)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3837 )
> at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5703)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4487 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:23 46)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3379)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2394)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2358)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 10)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:494)
> at
>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:489)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
>
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.
java:112)
> at
>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:
193)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
EclipseAppLauncher.java:110)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAp
pLauncher.java:79)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>
>
Re: Weird SWTException [message #327959 is a reply to message #327955] Fri, 09 May 2008 14:05 Go to previous message
Eclipse UserFriend
Originally posted by: brianf.sybase.com

Thanks Grant. I appreciate the help. I'll see if that works.
--Fitz

"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:g01jlv$1ph$1@build.eclipse.org...
> Hi Brian,
>
> It looks like an Image has been dispose()d while it's still set as a
> TreeItem's image in a non-disposed Tree. If you put a breakpoint where
> the
> exception occurs then you can see in the stack's
> org.eclipse.swt.widgets.Tree.wmNotifyChild(...) method which item has the
> disposed image, and hopefully from there figure out how this image got
> disposed too early.
>
> Grant
>
>
> "Brian Fitzpatrick" <brianf@sybase.com> wrote in message
> news:fvv748$urp$1@build.eclipse.org...
>> Hi all...
>>
>> I'm working with the 3.4 M7 platform build and we're getting this strange
>> error from DTP when we delete a profile that's connected. What's weird is
>> that this code hasn't changed and it works just fine on 3.3.2.
>>
>> There's absolutely no additional information I can provide, otherwise I'd
> be
>> debugging this one further myself.
>>
>> Has anyone else seen this bizarro behavior anywhere else with the 3.4 M7
>> milestone? I'm plum out of ideas.
>>
>> It's BZ231008 if anyone is interested.
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=231008
>>
>> Thanks in advance
>> --Fitz (aka Brian Fitzpatrick)
>> Data Tools Project PMC Lead
>> Data Tools Project Connectivity Sub-project Lead
>> Sr. Software Engineer
>> Sybase, Inc.
>>
>> !ENTRY org.eclipse.ui 4 0 2008-05-08 09:15:55.915
>> !MESSAGE Unhandled event loop exception
>> !STACK 0
>> org.eclipse.swt.SWTException: Graphic is disposed
>> at org.eclipse.swt.SWT.error(SWT.java:3773)
>> at org.eclipse.swt.SWT.error(SWT.java:3691)
>> at org.eclipse.swt.SWT.error(SWT.java:3662)
>> at org.eclipse.swt.graphics.Image.getImageData(Image.java:1190)
>> at org.eclipse.swt.internal.ImageList.set(ImageList.java:401)
>> at org.eclipse.swt.internal.ImageList.add(ImageList.java:66)
>> at org.eclipse.swt.widgets.Tree.imageIndex(Tree.java:3607)
>> at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7019)
>> at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4713)
>> at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:17 56)
>> at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4343)
>> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3836 )
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4500 )
>> at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
>> at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:226 0)
>> at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1521)
>> at org.eclipse.swt.widgets.Tree.WM_PAINT(Tree.java:6673)
>> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3837 )
>> at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5703)
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4487 )
>> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:23 46)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3379)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2394)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2358)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 10)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:494)
>> at
>>
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>> at
>>
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:489)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>>
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.
> java:112)
>> at
>>
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:
> 193)
>> at
>>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
> EclipseAppLauncher.java:110)
>> at
>>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAp
> pLauncher.java:79)
>> at
>>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
>> at
>>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>
>>
>
>
Previous Topic:how to be notified of Select All action selection in Variables View
Next Topic:Ganymede: Platform Plugin Developer Guide?
Goto Forum:
  


Current Time: Wed Dec 18 19:15:31 GMT 2024

Powered by FUDForum. Page generated in 0.02959 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top