Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369521 - [Examples Demo] Exception when navigating through the browser history
Summary: [Examples Demo] Exception when navigating through the browser history
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 372960
Blocks:
  Show dependency tree
 
Reported: 2012-01-24 09:13 EST by Ivan Furnadjiev CLA
Modified: 2012-03-02 01:36 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Furnadjiev CLA 2012-01-24 09:13:33 EST
Steps to reproduce it:
1. Start Examples Demo
2. Click with mouse sequentially "Dialogs", "Drag & Drop", "TreeViewer"
3. Click browser "Back" button to navigate back to the "Drag & Drop" page. The following exception is thrown:
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3531)
	at org.eclipse.swt.SWT.error(SWT.java:3454)
	at org.eclipse.swt.SWT.error(SWT.java:3425)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:951)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:894)
	at org.eclipse.swt.widgets.Widget.removeListener(Widget.java:537)
	at org.eclipse.swt.dnd.DragSource.onDispose(DragSource.java:302)
	at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:299)
	at org.eclipse.swt.dnd.DragSource$2.handleEvent(DragSource.java:170)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:646)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.widgetDisposed(UntypedEventAdapter.java:78)
	at org.eclipse.swt.events.DisposeEvent.dispatchToObserver(DisposeEvent.java:63)
	at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:46)
	at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:166)
	at org.eclipse.swt.widgets.Widget.dispose(Widget.java:774)
	at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:155)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:646)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.widgetDisposed(UntypedEventAdapter.java:78)
	at org.eclipse.swt.events.DisposeEvent.dispatchToObserver(DisposeEvent.java:63)
	at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:46)
	at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:166)
	at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:188)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1134)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1124)
	at org.eclipse.rap.examples.internal.MainUi.createUI(MainUi.java:56)
	at org.eclipse.rap.examples.internal.Application.createUI(Application.java:19)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:90)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:172)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:280)
	at java.lang.Thread.run(Thread.java:722)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:101)
Comment 1 Ivan Furnadjiev CLA 2012-01-24 10:38:53 EST
Similar situation but with Canvas page:
1. Start Examples Demo
2. Click with mouse sequentially "TableViewer", "Canvas", "RowLayout"
3. Click browser "Back" button to navigate back to the "Canvas" page. The following exception is thrown:
org.eclipse.swt.SWTException: Graphic is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3531)
	at org.eclipse.swt.SWT.error(SWT.java:3454)
	at org.eclipse.swt.SWT.error(SWT.java:3425)
	at org.eclipse.swt.graphics.GC.checkDisposed(GC.java:1487)
	at org.eclipse.swt.graphics.GC.setLineWidth(GC.java:423)
	at org.eclipse.rap.examples.pages.CanvasExamplePage$DrawingAreaPaintListener.paintControl(CanvasExamplePage.java:232)
	at org.eclipse.swt.events.PaintEvent.dispatchToObserver(PaintEvent.java:102)
	at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:46)
	at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:166)
	at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:188)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1134)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1124)
	at org.eclipse.rap.examples.internal.MainUi.createUI(MainUi.java:56)
	at org.eclipse.rap.examples.internal.Application.createUI(Application.java:19)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:90)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:172)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:280)
	at java.lang.Thread.run(Thread.java:722)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:101)
Comment 2 Ivan Furnadjiev CLA 2012-01-24 12:08:57 EST
Strange enough, two hours ago (when I opened this bug) I could reproduce these exceptions all the time.... but now I can't.
Comment 3 Ivan Furnadjiev CLA 2012-03-02 01:36:18 EST
Fix together with bug 372960.