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

Bug 352814

Summary: DND install causes an unhandled event loop exception
Product: [Technology] MPC Reporter: Peter Severin <peter>
Component: InstallAssignee: Project Inbox <mpc.install-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: b.muskalla, ian.skerrett
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Peter Severin CLA 2011-07-22 01:30:42 EDT
Build Identifier: 20110615-0604

Marketplace website advertises support for DND installs. I tried to drag the "Install" link into a fresh Eclipse Indigo for RCP developers install and I get this exception:

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.core.runtime.AssertionFailedException: assertion failed: )
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	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:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)
Caused by: org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
	at org.eclipse.ui.internal.ide.EditorAreaDropAdapter.asyncDrop(EditorAreaDropAdapter.java:131)
	at org.eclipse.ui.internal.ide.EditorAreaDropAdapter.access$0(EditorAreaDropAdapter.java:87)
	at org.eclipse.ui.internal.ide.EditorAreaDropAdapter$1.run(EditorAreaDropAdapter.java:81)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 22 more


Reproducible: Always
Comment 1 Peter Severin CLA 2011-07-22 01:32:49 EDT
Note that I am trying this under Ubuntu 10.04.
Comment 2 Peter Severin CLA 2011-07-22 02:02:26 EDT
I tested this more and I am able to trigger MPC wizard but only if I drop the link in the Outline view or in the toolbar. I was expecting this to work when dropping the link somewhere in the middle of Eclipse window.

I also tried this on Windows. When the link is dropped in the editor area it downloads and opens the PNG file for the "Install" image. Dropping in the Outline View area works however.

I am not sure what I am doing wrong but I think this is very misleading. Marketplace advertises everywhere a "just works" solution that actually rarely works.

I insist on this issue because for my plug-in (WireframeSketcher, commercial) DND it's the only way to install it. Since it's not listed in MPC client search, due to license restrictions, the DND is the only way my users can do the install. I have users come to me complaining that they cannot install my plug-in via MPC.

I know that I could pay Eclipse membership and solve at least "not in search listing" problem. But I am a 1 guy operation and $1,500 per year is just to much for me. I am sure this must work for big companies but what a small vendor like me to do? Sorry for the rant. This whole situation is very upsetting.
Comment 3 Benjamin Muskalla CLA 2011-07-22 10:27:50 EDT
I'm sorry to say but this problem is not MPC related. See duplicate bug.

*** This bug has been marked as a duplicate of bug 352690 ***