Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363213 - [GEF] After flyout palette resizing whole RAP workbench hang
Summary: [GEF] After flyout palette resizing whole RAP workbench hang
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Incubator (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 2.2   Edit
Assignee: Arnaud MERGEY CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 13:11 EST by Arnaud MERGEY CLA
Modified: 2013-12-05 14:06 EST (History)
0 users

See Also:


Attachments
screenshot of the issue (8.10 KB, image/png)
2011-11-08 13:12 EST, Arnaud MERGEY CLA
no flags Details
snippet allowing to reproduce the bug (47.71 KB, application/octet-stream)
2011-11-08 13:12 EST, Arnaud MERGEY CLA
no flags Details
Temporary patch to workaround the issue (844 bytes, patch)
2011-11-08 13:13 EST, Arnaud MERGEY CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud MERGEY CLA 2011-11-08 13:11:14 EST
Resizing the flyout palette does not work, that is not the real issue, but doing that has some bad effects in RAP, because editors does not close properly, and then the whole workbench is broken

see screenshot, even the editor is closed, the editor content remains in the area

I attach a snippet to reproduce it, launch it double-click on item one, try to resize palette, and try close the editor.

I managed to have the issue gone by updating GEF code (see attached patch)
Comment 1 Arnaud MERGEY CLA 2011-11-08 13:12:02 EST
Created attachment 206618 [details]
screenshot of the issue
Comment 2 Arnaud MERGEY CLA 2011-11-08 13:12:39 EST
Created attachment 206619 [details]
snippet allowing to reproduce the bug
Comment 3 Arnaud MERGEY CLA 2011-11-08 13:13:13 EST
Created attachment 206620 [details]
Temporary patch to workaround the issue
Comment 4 Arnaud MERGEY CLA 2012-02-23 06:24:38 EST
I Do not know if it can help to investigate this issue, but I wanted to try with last GEF port code taken from HEAD and RAP 1.5 M5, so the issue is still here but now I can see following stack trace, and it seems to be related:

java.lang.IllegalAccessError: tried to access method org.eclipse.swt.widgets.Widget.<init>()V from class org.eclipse.swt.widgets.Tracker
	at org.eclipse.swt.widgets.Tracker.<init>(Tracker.java:136)
	at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$TitleDragManager.handleEvent(FlyoutPaletteComposite.java:954)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:646)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dragDetected(UntypedEventAdapter.java:237)
	at org.eclipse.swt.events.DragDetectEvent.dispatchToObserver(DragDetectEvent.java:53)
	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.internal.widgets.displaykit.DNDSupport.processDragStart(DNDSupport.java:123)
	at org.eclipse.swt.internal.widgets.displaykit.DNDSupport.access$0(DNDSupport.java:116)
	at org.eclipse.swt.internal.widgets.displaykit.DNDSupport$1.run(DNDSupport.java:99)
	at org.eclipse.rwt.lifecycle.ProcessActionRunner.executeNext(ProcessActionRunner.java:53)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1132)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1124)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2733)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at snippet.gef.sample2.Application.start(Application.java:18)
	at org.eclipse.rap.ui.internal.application.EntrypointApplicationWrapper.createUI(EntrypointApplicationWrapper.java:25)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:174)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:283)
	at java.lang.Thread.run(Thread.java:662)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:101)
Comment 5 Arnaud MERGEY CLA 2013-12-05 14:06:27 EST
Fixed in master with commit b9663e9a88351debf0b4653e71194a3192b7e798