Eclipse plugin 15.1 - Widget is disposed

Having trouble installing Oxygen? Got a bug to report? Post it all here.
temp44
Posts: 9
Joined: Thu Feb 23, 2012 11:26 am

Eclipse plugin 15.1 - Widget is disposed

Post by temp44 »

Hello,
editing an XSD schema I got the following error (and it keeps repeating once in a while now, probably won't stop until I restart eclipse).
Don't know the exact steps to reproduce it, I was using the visual editor, Attributes and Facets views and Edit attributes context menu.

Code: Select all


org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4397)
at org.eclipse.swt.SWT.error(SWT.java:4312)
at org.eclipse.swt.SWT.error(SWT.java:4283)
at org.eclipse.swt.widgets.Widget.error(Widget.java:481)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:418)
at org.eclipse.swt.widgets.Control.setRedraw(Control.java:4596)
at com.oxygenxml.editor.editors.h.b.kwc(Unknown Source)
at com.oxygenxml.editor.editors.h.c.kwc(Unknown Source)
at com.oxygenxml.editor.editors.xml.tb$1.yuc(Unknown Source)
at ro.sync.exml.editor.s.ab.cvc(Unknown Source)
at ro.sync.exml.editor.s.ab.gvc(Unknown Source)
at ro.sync.exml.editor.s.ab$_b.actionPerformed(Unknown Source)
at com.oxygenxml.editor.k.kc$1.c(Unknown Source)
at com.oxygenxml.editor.k.kc$_b.run(Unknown Source)
at org.eclipse.swt.widgets.Display.timerProc(Display.java:4318)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2288)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3361)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Details of the environment:

Code: Select all

eclipse.buildId=4.3.0.M20130911-1000
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:
Command-line arguments: -os linux -ws gtk -arch x86
Thanks for looking into this.
<temp44>
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Eclipse plugin 15.1 - Widget is disposed

Post by adrian »

Hi,

How did you install the Oxygen Eclipse plugin (update site or zip distribution)?

Can you please check if you are indeed running v15.1 (Help > About Eclipse, click on the Oxygen icon)?
I've checked the stack trace you reported, but it doesn't match the code in v15.1, but v15.0 instead.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
temp44
Posts: 9
Joined: Thu Feb 23, 2012 11:26 am

Re: Eclipse plugin 15.1 - Widget is disposed

Post by temp44 »

Hi,
must have pasted the wrong log entry then, sorry.
Here is the correct one I suppose:

Code: Select all


org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4397)
at org.eclipse.swt.SWT.error(SWT.java:4312)
at org.eclipse.swt.SWT.error(SWT.java:4283)
at org.eclipse.swt.widgets.Widget.error(Widget.java:481)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:418)
at org.eclipse.swt.widgets.Shell.close(Shell.java:641)
at com.oxygenxml.editor.editors.ib$1.close(Unknown Source)
at com.oxygenxml.editor.editors.ib$2.partDeactivated(Unknown Source)
at org.eclipse.ui.internal.PartService$4.run(PartService.java:109)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.PartService.partDeactivated(PartService.java:107)
at org.eclipse.ui.internal.WorkbenchPage$16.run(WorkbenchPage.java:4806)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.WorkbenchPage.firePartDeactivated(WorkbenchPage.java:4804)
at org.eclipse.ui.internal.WorkbenchPage.access$18(WorkbenchPage.java:4797)
at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partDeactivated(WorkbenchPage.java:203)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:197)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartDeactivated(PartServiceImpl.java:195)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:579)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:544)
at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:104)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$9.widgetSelected(StackRenderer.java:889)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1416)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1401)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3080)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1772)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:279)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
I noticed it happening when setting the type of an element using the context menu Edit attributes, then closing the popup window and activating the Attributes view.
Hope this helps.
<temp44>
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Eclipse plugin 15.1 - Widget is disposed

Post by adrian »

Hi,

Thank you.

We could not reproduce the problem by following the instructions you have provided. Is the problem consistent?

Can you please provide more specific details about what you changed in the 'Edit attributes' panel?
A sample (or at least a snippet) of the XML Schema from the modified region could also be useful for us in reproducing the problem.

If you want to keep this private, you can write to our support email address: support AT oxygenxml DOT com.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
temp44
Posts: 9
Joined: Thu Feb 23, 2012 11:26 am

Re: Eclipse plugin 15.1 - Widget is disposed

Post by temp44 »

Hi,
here's how I managed to reproduce it:

1. start Eclipse (4.3.1)
2. show Attributes view
3. create sample XML project
4. open up personal.xsd in Design editor
5. on /person/@note click Edit Attributes context menu item
6. change type to xs:integer
7. close Edit Attributes popup by system close button (this is important, if you use the gray X inside the window, the error does not appear)
8. click on Attributes view tab, the error appears

Regards
<temp44>
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Eclipse plugin 15.1 - Widget is disposed

Post by adrian »

temp44 wrote:7. close Edit Attributes popup by system close button (this is important, if you use the gray X inside the window, the error does not appear)
There shouldn't be a system close button for that panel (in Ubuntu there isn't one), only the gray X inside the window.
What distribution of Linux and what window manager are you using?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
temp44
Posts: 9
Joined: Thu Feb 23, 2012 11:26 am

Re: Eclipse plugin 15.1 - Widget is disposed

Post by temp44 »

Hi,
I'm using Xubuntu 12.04 LTS, with XFCE 4.8.
Regards
<temp44>
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Eclipse plugin 15.1 - Widget is disposed

Post by adrian »

Hi,

I've installed the Xubuntu desktop packages under Ubuntu and was able to reproduce the problem.
For some reason XFCE adds a title bar and system maximize/close widgets even though the Edit Attributes dialog should be undecorated (Unity). The system close is not handled correctly by the Oxygen plugin (was not anticipated) which leads to the Widget is disposed error.

I've logged this to our issue tracking tool to be resolved in the next release of Oxygen. We will notify this thread when the bugfix becomes available.
Meanwhile, please do not use the system close button from the Edit Attributes dialog, instead use the X button inside the window (or press ESC).

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ionela
Posts: 407
Joined: Mon Dec 05, 2011 6:08 pm

Re: Eclipse plugin 15.1 - Widget is disposed

Post by ionela »

Hello,

I just wanted to let you know that this problem has been resolved in the latest maintenance build of Oxygen 15.1, 2013101713 (released on October 17th):
Eclipse/Linux/XFCE: Resolved a 'Widget is disposed' error when closing the 'Edit Attributes' panel from the system close button.
You can download it from our web site:
http://www.oxygenxml.com/download.html

The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2013101713

You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml

Please let us know if you encounter any problems with this new build.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
Post Reply