Q7

Widget Is Disposed exception during test replay.

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.2.2
  • Fix Version/s: 1.3.x
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Manual

Description

Use iTest as an AUT. Run the attached test.

Test fails and the following exception occurs:

org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
at org.eclipse.swt.widgets.Widget.getStyle(Widget.java:665)
at com.xored.tesla.internal.ui.player.SWTUIPlayer.getText(SWTUIPlayer.java:1846)
at com.xored.tesla.internal.ui.player.SWTUIElement.getText(SWTUIElement.java:92)
at com.xored.tesla.internal.ui.processors.SWTUIProcessor.processChildren(SWTUIProcessor.java:2649)
at com.xored.tesla.internal.ui.processors.SWTUIProcessor.collectInformation(SWTUIProcessor.java:2449)
at com.xored.tesla.internal.core.AbstractTeslaClient.getAdvancedInformation(AbstractTeslaClient.java:494)
at com.xored.tesla.internal.core.AbstractTeslaClient.handleFailedResponse(AbstractTeslaClient.java:477)
at com.xored.tesla.internal.core.AbstractTeslaClient.execute(AbstractTeslaClient.java:361)
at com.xored.tesla.internal.core.AbstractTeslaClient.doOneCommand(AbstractTeslaClient.java:305)
at com.xored.tesla.internal.core.AbstractTeslaClient.processNext(AbstractTeslaClient.java:184)
at com.xored.tesla.ecl.impl.TeslaBridge$3.doProcessing(TeslaBridge.java:122)
at com.xored.tesla.swt.events.TeslaEventManager.doProcessing(TeslaEventManager.java:94)
at com.xored.tesla.swt.aspects.DisplayAspect.ajc$around$com_xored_tesla_swt_aspects_DisplayAspect$1$e269b158(DisplayAspect.aj:69)
at org.eclipse.swt.widgets.Display.sleep(Display.java:4547)
at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.eventLoopIdle(IDEWorkbenchAdvisor.java:887)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2641)
at org.eclipse.ui.internal.Workbench.runUI_aroundBody0(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench$AjcClosure1.run(Workbench.java:1)
at com.xored.tesla.recording.aspects.WorkbenchRecordingAspect.ajc$around$com_xored_tesla_recording_aspects_WorkbenchRecordingAspect$2$a7b5a621proceed(WorkbenchRecordingAspect.aj:1)
at com.xored.tesla.recording.aspects.WorkbenchRecordingAspect.ajc$around$com_xored_tesla_recording_aspects_WorkbenchRecordingAspect$2$a7b5a621(WorkbenchRecordingAspect.aj:39)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2439)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.fnfr.svt.rcp.Application.runWorkbench(Application.java:217)
at com.fnfr.svt.rcp.Application.start(Application.java:200)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

Activity

Hide
Ulyana Skorokhodova added a comment - 02/Jul/12 2:57 PM

if I comment //key-type Enter lines - test passes with no exceptions.

with [get-editbox] { set-text "note_text" //key-type Enter set-text "note_text\n" //key-type Enter }

Show
Ulyana Skorokhodova added a comment - 02/Jul/12 2:57 PM if I comment //key-type Enter lines - test passes with no exceptions. with [get-editbox] { set-text "note_text" //key-type Enter set-text "note_text\n" //key-type Enter }
Hide
Andrey Sobolev added a comment - 05/Aug/12 9:29 AM

Fixed.

Show
Andrey Sobolev added a comment - 05/Aug/12 9:29 AM Fixed.
Hide
Ulyana Skorokhodova added a comment - 09/Aug/12 3:48 PM

Test still fails with the following error:

Failed to locate shell for:The control Text is disposed.

Probably another reason for failure.

Show
Ulyana Skorokhodova added a comment - 09/Aug/12 3:48 PM Test still fails with the following error: Failed to locate shell for:The control Text is disposed. Probably another reason for failure.
Hide
komaz added a comment - 15/Aug/12 8:14 PM

is there a stack trace? Is is the same or different now?

Show
komaz added a comment - 15/Aug/12 8:14 PM is there a stack trace? Is is the same or different now?

People

Vote (0)
Watch (0)

Dates

  • Created:
    02/Jul/12 2:55 PM
    Updated:
    16/Jan/13 5:55 PM