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

Bug 330748

Summary: GUI of project manager gets stuck every time i try to create a new project
Product: [Tools] CDT Reporter: Vladimir Shulman <shulmanv>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: ASSIGNED --- QA Contact: Jonah Graham <jonah>
Severity: major    
Priority: P3 CC: cdtdoug, malaperle, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Vladimir Shulman CLA 2010-11-21 01:44:24 EST
Build Identifier: 20100917-0705

I have win7 64 bit, with latest jre6, latest CDT 32bit version (the 64 bit couldn't load some dll).

It starts ok, but when i try to create new project, no matter which type it gets stuck once i click on "finish" button.

I've tried empty project, c project, make project, make project with existing code... Doesn't matter.

There's "Unhandled event loop exception" every time i try to create a new project.

Please find trace below.

JRE details:
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)


java.lang.IllegalArgumentException: Path for project must have only one segment.
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:183)
at org.eclipse.cdt.managedbuilder.ui.wizards.NewMakeProjFromExistingPage.validateProjectName(NewMakeProjFromExistingPage.java:95)
at org.eclipse.cdt.managedbuilder.ui.wizards.NewMakeProjFromExistingPage$1.modifyText(NewMakeProjFromExistingPage.java:88)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:173)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2526)
at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4297)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4163)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2362)
at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:255)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4251)
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2170)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method)
at org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3318)
at org.eclipse.swt.widgets.Text.setText(Text.java:1961)
at org.eclipse.cdt.managedbuilder.ui.wizards.NewMakeProjFromExistingPage.validateSource(NewMakeProjFromExistingPage.java:140)
at org.eclipse.cdt.managedbuilder.ui.wizards.NewMakeProjFromExistingPage$2.modifyText(NewMakeProjFromExistingPage.java:114)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:173)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2526)
at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4297)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4163)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2362)
at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:255)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4251)
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2170)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:135)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)


Reproducible: Always

Steps to Reproduce:
1. Start Eclipse

2. Go to file -> new, and choose any of the top 4 options (makefile, c++, c, project)
 
3. Fill the path and click on finish button
Comment 1 Marc-André Laperle CLA 2010-11-21 02:17:41 EST
(In reply to comment #0)
> java.lang.IllegalArgumentException: Path for project must have only one
> segment.

What does the path look like? And the project name? Do you get java.lang.IllegalArgumentException for every cases(empty project, c project, make project)? When you say the GUI gets stuck, do you mean you get a busy icon and can't do anything in the UI? Or do you mean you can still click on the Finish button but it doesn't do anything? If it's the first case, I think it would be useful to get a stack trace while the UI is frozen. (http://wiki.eclipse.org/How_to_report_a_deadlock)
Comment 2 Vladimir Shulman CLA 2010-11-21 08:20:56 EST
1. the path looks like that: 
          C:\localSVN\DEV_trunk\uCode

2. Let me rephrase the "freeze" part:
   I get always busy icon with both buttons (finish & canceled) grey,
   but help option does work.

3. I get java.lang.IllegalArgumentException for every cases(empty project, c project, make project with existing files)
Comment 3 Andrew Gvozdev CLA 2010-11-22 11:29:44 EST
"Makefile Project with Existing Code" does not work if directory is in workspace, that is true. See bug 326105. As a workaround you can create a project from directory outside of workspace and - if really desired to have it in workspace folder - copy to workspace and import the project.