Widget is disposed - SWT-Designer under Linux

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Widget is disposed - SWT-Designer under Linux

Postby SzymonDrejewicz » Thu Oct 02, 2003 9:53 am

When I choose "Design" tab my application's window shows in top-left corner of the screen, and when I want to move it I get "Widget is disposed" message. And I can't use SWT -Designer "Design" ability. Under WinXP everythink works fine but under Linux.
(I have Linux Debian Woody)

How to repeair that?
SzymonDrejewicz
 
Posts: 1
Joined: Thu Oct 02, 2003 9:44 am

Any solution ?

Postby kevinmcb » Sun Oct 19, 2003 10:52 am

Did you ever figure this out ? I have exactly the same problem (Suse 8.0, Eclipse 2.1.1) using the free version. I hesitate to buy the Pro version unless I can get this to work.
kevinmcb
 
Posts: 8
Joined: Sun Oct 19, 2003 10:49 am

Postby Bill Rogers » Sun Oct 19, 2003 7:00 pm

Same for me. I use Mandrake 9.1
Bill Rogers
 
Posts: 1
Joined: Sun Oct 19, 2003 6:55 pm

Postby Eric Clayberg » Mon Oct 20, 2003 3:54 am

According to the "Support Versions" list for Eclipse 2.1.1, the two platforms that Eclipse 2.1.1 has been tested with are RedHat 8.0 and SuSE 8.1 (or higher). Eclipse 3.0 has been tested with RedHat 9.0 and SuSE 8.2. Does anyone have a problem with any of those combinations? I have tested it with RedHat 9.0 myself, and have not encountered this problem. Does anything appear in the Eclipse .log file?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby kevinmcb » Mon Oct 20, 2003 4:19 pm

Hi Eric,

Below is the relevant part of my /workspace/.metadata/.log file. I haven't noticed any other problems running Eclipse 2.1.1 under Suse 8.0; I don't have a later distro to try yet.

-------------------
!SESSION Oct 19, 2003 14:35:49.366 ---------------------------------------------
java.version=1.3.1_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=motif, NL=en_US
Command-line arguments: -os linux -ws motif -arch x86 -install file:/home/kevin/eclipse/
!ENTRY com.swtdesigner 4 4 Oct 19, 2003 14:35:49.368
!MESSAGE Designer internal error: Widget is disposed
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:2332)
at org.eclipse.swt.SWT.error(SWT.java:2262)
at org.eclipse.swt.widgets.Widget.error(Widget.java:338)
at org.eclipse.swt.widgets.Shell.getDisplay(Shell.java:776)
at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java:499)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:276)
at org.eclipse.swt.widgets.Shell.isVisible(Shell.java:906)
at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1216)
at com.swtdesigner.model.jface.f.c(SourceFile:539)
at com.swtdesigner.model.widgets.controls.j.af(SourceFile:126)
at com.swtdesigner.model.widgets.composites.d.af(SourceFile:130)
at com.swtdesigner.model.q.a(SourceFile:1887)
at com.swtdesigner.model.q.ad(SourceFile:1864)
at com.swtdesigner.model.widgets.controls.j.p(SourceFile:231)
at com.swtdesigner.gef.edit.E.refreshVisuals(SourceFile:47)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:693)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:534)
at com.swtdesigner.gef.edit.o.refresh(SourceFile:28)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:221)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:196)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:184)
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:742)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:694)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:534)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:221)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:196)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:184)
at org.eclipse.gef.editparts.FreeformGraphicalRootEditPart.setContents(FreeformGraphicalRootEditPart.java:234)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:485)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:494)
at com.swtdesigner.gef.B.a(SourceFile:746)
at com.swtdesigner.gef.o.a(SourceFile:577)
at com.swtdesigner.gef.s.selectionChanged(SourceFile:228)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1290)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1020)
at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:362)
at com.swtdesigner.gef.o.a(SourceFile:691)
at com.swtdesigner.gef.B.a(SourceFile:309)
at com.swtdesigner.editors.MultiPageEditor.d(SourceFile:82)
at com.swtdesigner.editors.MultiPageEditor$1.widgetSelected(SourceFile:30)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:810)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:832)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:817)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:542)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:1744)
at org.eclipse.swt.custom.CTabFolder.onMouseDown(CTabFolder.java:1912)
at org.eclipse.swt.custom.CTabFolder.access$4(CTabFolder.java:1904)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:201)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:810)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1958)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1724)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
kevinmcb
 
Posts: 8
Joined: Sun Oct 19, 2003 10:49 am

Postby Eric Clayberg » Mon Oct 20, 2003 7:38 pm

Below is the relevant part of my /workspace/.metadata/.log file. I haven't noticed any other problems running Eclipse 2.1.1 under Suse 8.0; I don't have a later distro to try yet.

Can you try it under Eclipse 3.0 M3 or M4 (make sure to download the Eclipse 3.0 version of the Designer)? That might help us narrow down what is going on.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby Reto » Mon Oct 20, 2003 11:04 pm

Can you try it under Eclipse 3.0 M3 or M4 (make sure to download the Eclipse 3.0 version of the Designer)? That might help us narrow down what is going on.


Hi. Just as an information.
I have the same Error with Eclipse 3.0 M4, using Solaris 5.9. I'm using the professional version which works fine in Windows.
Reto
 
Posts: 6
Joined: Mon Oct 20, 2003 10:51 pm
Location: Switzerland

Postby kevinmcb » Wed Oct 22, 2003 11:24 am

Eric,

I installed Java 1.4.1 and Eclipse 3M4 on another Suse 8.0 machine, downloaded and installed the Eclipse 3 version of the SWT Designer and I get exactly the same error. Log contents below:

!SESSION Oct 22, 2003 15:16:20.189 ---------------------------------------------
java.version=1.4.1_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=motif, NL=en_US
Command-line arguments: -os linux -ws motif -arch x86 -install file:/home/kevin/eclipse30/eclipse/
!ENTRY com.swtdesigner 4 4 Oct 22, 2003 15:16:20.190
!MESSAGE Designer internal error: Widget is disposed
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:2369)
at org.eclipse.swt.SWT.error(SWT.java:2299)
at org.eclipse.swt.widgets.Widget.error(Widget.java:345)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:282)
at org.eclipse.swt.widgets.Shell.isVisible(Shell.java:944)
at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1304)
at com.swtdesigner.model.widgets.composites.d.c(SourceFile:79)
at com.swtdesigner.model.widgets.controls.j.af(SourceFile:126)
at com.swtdesigner.model.widgets.composites.d.af(SourceFile:130)
at com.swtdesigner.model.q.a(SourceFile:1887)
at com.swtdesigner.model.q.ad(SourceFile:1864)
at com.swtdesigner.model.widgets.controls.j.p(SourceFile:231)
at com.swtdesigner.gef.edit.E.refreshVisuals(SourceFile:47)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:693)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:534)
at com.swtdesigner.gef.edit.o.refresh(SourceFile:28)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:221)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:196)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:184)
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:742)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:694)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:534)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:221)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:196)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:184)
at org.eclipse.gef.editparts.FreeformGraphicalRootEditPart.setContents(FreeformGraphicalRootEditPart.java:234)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:485)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:494)
at com.swtdesigner.gef.B.a(SourceFile:746)
at com.swtdesigner.gef.o.a(SourceFile:577)
at com.swtdesigner.gef.s.selectionChanged(SourceFile:228)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1018)
at org.eclipse.core.runtime.Platform.run(Platform.java:461)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1282)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1012)
at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:362)
at com.swtdesigner.gef.o.a(SourceFile:691)
at com.swtdesigner.gef.B.a(SourceFile:309)
at com.swtdesigner.editors.MultiPageEditor.c(SourceFile:82)
at com.swtdesigner.editors.MultiPageEditor$1.widgetSelected(SourceFile:30)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:821)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:828)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:552)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:1739)
at org.eclipse.swt.custom.CTabFolder.onMouseDown(CTabFolder.java:1927)
at org.eclipse.swt.custom.CTabFolder.access$4(CTabFolder.java:1919)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:201)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:821)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2234)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1991)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
at org.eclipse.core.launcher.Main.run(Main.java:765)
at org.eclipse.core.launcher.Main.main(Main.java:599)
kevinmcb
 
Posts: 8
Joined: Sun Oct 19, 2003 10:49 am

Postby Eric Clayberg » Wed Oct 22, 2003 11:55 am

kevinmcb wrote:I installed Java 1.4.1 and Eclipse 3M4 on another Suse 8.0 machine, downloaded and installed the Eclipse 3 version of the SWT Designer and I get exactly the same error.

Are there a specific set of steps I would need to follow to reproduce the problem, or does it happen right away with a new window? Is there a certain widget type I need to add or delete?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby kevinmcb » Wed Oct 22, 2003 12:10 pm

It's really easy:

-File | New | Project | Java | etc...
- Select project in Navigator
- New | Other | SWT | JFaceApplication Window | etc...
- when the new class opens in the editor, click on the Design tab and bingo ..."Widget is Disposed"

There is no frame on to which to add widgets, the right side of the design view is empty.

I think I tried the same thing with JFace Dialog and Wizard with the same result.
kevinmcb
 
Posts: 8
Joined: Sun Oct 19, 2003 10:49 am

Postby Eric Clayberg » Wed Oct 22, 2003 12:51 pm

kevinmcb wrote:-File | New | Project | Java | etc...
- Select project in Navigator
- New | Other | SWT | JFaceApplication Window | etc...
- when the new class opens in the editor, click on the Design tab and bingo ..."Widget is Disposed"

There is no frame on to which to add widgets, the right side of the design view is empty.

I think I tried the same thing with JFace Dialog and Wizard with the same result.

Does the same thing happen when you select the "SWT Application" window option? JFace Applications and Wizards aren't supported in the free version which might account for the problem. I will try the free version under RedHat to see what happens on my end with the other options (I had only ever tried the SWT Application option in the free version under Linux).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby rimmeraj » Wed Oct 22, 2003 12:55 pm

I am getting the same thing with SWT Application under Redhat 9.0/Eclipse 3.0M4.
rimmeraj
 
Posts: 11
Joined: Wed Oct 22, 2003 12:52 pm

Postby kevinmcb » Wed Oct 22, 2003 1:52 pm

Same result with SWTApplication.
kevinmcb
 
Posts: 8
Joined: Sun Oct 19, 2003 10:49 am

Postby Eric Clayberg » Wed Oct 22, 2003 2:26 pm

rimmeraj wrote:I am getting the same thing with SWT Application under Redhat 9.0/Eclipse 3.0M4.

Wow. That is exactly the same combination I am using and am not encountering any problem. Maybe I should ask the reverse question...is anyone else using the Designer under Linux without encountering this problem? At the moment, we are a bit stumped. If we could reproduce it, or isolate some unique configuration issue, we could probably fix the problem or come up with a work around. We can certainly add some guard code to avoid the specific exception that has been recorded, but it looks like it is probably a side effect of something else, so I don't know whether that would do any good.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby kevinmcb » Wed Oct 22, 2003 5:03 pm

I'm running KDE. Could it be a KDE vs. Gnome thing ?
kevinmcb
 
Posts: 8
Joined: Sun Oct 19, 2003 10:49 am

Next

Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot] and 1 guest