Skip to main content



      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 00:40 Go to next message
Eclipse UserFriend
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)

[Updated on: Thu, 16 June 2016 00:43] by Moderator

Re: Exception: org.eclipse.swt.SWTException: Widget is disposed [message #1735561 is a reply to message #1735167] Tue, 21 June 2016 03:45 Go to previous messageGo to next message
Eclipse UserFriend
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 09:26 Go to previous message
Eclipse UserFriend
Probably depend from your context file.
Try to re-create it.

Previous Topic:AUT from sources
Next Topic:Runner.cmd
Goto Forum:
  


Current Time: Mon Sep 22 19:22:32 EDT 2025

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

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

Back to the top