Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Exception: org.eclipse.swt.SWTException: Widget is disposed
icon5.gif  Exception: org.eclipse.swt.SWTException: Widget is disposed [message #1735167] Thu, 16 June 2016 04:40 Go to next message
Minnie P is currently offline Minnie PFriend
Messages: 15
Registered: January 2013
Junior Member
Hi,
Im trying to run my test suite and I get an exception after the 1st test is run.
I tested on RCPTT 2.0.2, 2.1.0 p2 install/2.0.2, 2.1.0 RCP Testing Tool IDE and see the same exception consistently.

Has anyone seen this error/issue before? I think this is a serious bug.

Any help is appreciated guys! Thanks in advance!

Exception happened:
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4441)
at org.eclipse.swt.SWT.error(SWT.java:4356)
at org.eclipse.swt.SWT.error(SWT.java:4327)
at org.eclipse.swt.widgets.Widget.error(Widget.java:476)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:348)
at org.eclipse.swt.widgets.Menu.setLocation(Menu.java:1458)
at org.eclipse.rcptt.tesla.internal.ui.player.ChildrenCollectingSession.collectMenuItems(ChildrenCollectingSession.java:343)
at org.eclipse.rcptt.tesla.internal.ui.player.ChildrenCollectingSession.collect(ChildrenCollectingSession.java:224)
at org.eclipse.rcptt.tesla.internal.ui.player.ChildrenCollector.collectFor(ChildrenCollector.java:73)
at org.eclipse.rcptt.tesla.internal.ui.player.ChildrenCollector.collectFor(ChildrenCollector.java:64)
at org.eclipse.rcptt.tesla.internal.ui.player.ChildrenCollector.collectFor(ChildrenCollector.java:44)
at org.eclipse.rcptt.tesla.internal.ui.player.SWTUIPlayer.selectMenu(SWTUIPlayer.java:1429)
at org.eclipse.rcptt.tesla.internal.ui.player.SWTUIPlayer.select(SWTUIPlayer.java:317)
at org.eclipse.rcptt.tesla.internal.ui.processors.SWTUIProcessor.select(SWTUIProcessor.java:2133)
at org.eclipse.rcptt.tesla.internal.core.TeslaProcessorManager.select(TeslaProcessorManager.java:87)
at org.eclipse.rcptt.tesla.internal.core.AbstractTeslaClient.handleSelect(AbstractTeslaClient.java:110)
at org.eclipse.rcptt.tesla.internal.core.AbstractTeslaClient.execute(AbstractTeslaClient.java:287)
at org.eclipse.rcptt.tesla.internal.core.AbstractTeslaClient.doOneCommand(AbstractTeslaClient.java:233)
at org.eclipse.rcptt.tesla.internal.core.AbstractTeslaClient.processNext(AbstractTeslaClient.java:130)
at org.eclipse.rcptt.tesla.ecl.impl.TeslaBridge$2.doProcessing(TeslaBridge.java:101)
at org.eclipse.rcptt.tesla.swt.events.TeslaEventManager.doProcessing(TeslaEventManager.java:109)
at org.eclipse.rcptt.tesla.swt.aspects.DisplayAspect.ajc$around$org_eclipse_rcptt_tesla_swt_aspects_DisplayAspect$1$e269b158(DisplayAspect.aj:87)
at org.eclipse.swt.widgets.Display.sleep(Display.java:4693)
at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:368)
at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.eventLoopIdle(IDEWorkbenchAdvisor.java:918)
at org.eclipse.ui.internal.Workbench$3.eventLoopIdle(Workbench.java:502)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:677)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)


Thanks,
Minnie

[Updated on: Thu, 16 June 2016 04:43]

Report message to a moderator

Re: Exception: org.eclipse.swt.SWTException: Widget is disposed [message #1735561 is a reply to message #1735167] Tue, 21 June 2016 07:45 Go to previous messageGo to next message
Dave Monahan is currently offline Dave MonahanFriend
Messages: 1
Registered: June 2016
Junior Member
I have come across this once before, it seems that sometimes previous tests that executed a call on a particular widget can leave that call stuck in RAM. The easiest way to solve this is to restart your AUT at the start of your test. To do so add the following code to the beginning of your ecl script:
restart-aut
wait-until-eclipse-is-ready

This should fix the problem.
Note. If you are relying on contexts to skip things like welcome pages it might be more prudent to put it at the end of the previous test instead.
Hope this helps.
Re: Exception: org.eclipse.swt.SWTException: Widget is disposed [message #1735626 is a reply to message #1735561] Tue, 21 June 2016 13:26 Go to previous message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

Probably depend from your context file.
Try to re-create it.



"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Previous Topic:AUT from sources
Next Topic:Runner.cmd
Goto Forum:
  


Current Time: Thu Mar 28 17:17:12 GMT 2024

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

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

Back to the top