Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363213

Summary: [GEF] After flyout palette resizing whole RAP workbench hang
Product: [RT] RAP Reporter: Arnaud MERGEY <a_mergey>
Component: IncubatorAssignee: Arnaud MERGEY <a_mergey>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 2.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
screenshot of the issue
none
snippet allowing to reproduce the bug
none
Temporary patch to workaround the issue none

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