Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330345 - Eclipse hangs when selecting a workspace
Summary: Eclipse hangs when selecting a workspace
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Scott Kovatch CLA
QA Contact: Silenio Quarti CLA
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-16 08:23 EST by Thomas Watson CLA
Modified: 2018-12-21 01:46 EST (History)
2 users (show)

See Also:


Attachments
sample dump (31.57 KB, text/plain)
2010-11-16 11:40 EST, Thomas Watson CLA
no flags Details
sample dump 2 (25.56 KB, text/plain)
2010-11-16 11:43 EST, Thomas Watson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Watson CLA 2010-11-16 08:23:45 EST
I20101109-0800

Cocoa 32-bit build.

Steps to reproduce:
1) start eclipse without specifying -data <workspace>
2) the workspace chooser dialog is shown.
3) click on browse button to bring up finder.
4) click around in finder a bit and notice the UI hangs

On my system the UI thread is spinning the CPU and stuck in org.eclipse.swt.internal.cocoa.OS.objc_msgSend



Daemon Thread [Thread-0] (Suspended)	
	org.eclipse.swt.internal.cocoa.OS.objc_msgSend(int, int, int, int) line: not available [native method]	
	org.eclipse.swt.internal.cocoa.NSOpenPanel(org.eclipse.swt.internal.cocoa.NSSavePanel).runModalForDirectory(org.eclipse.swt.internal.cocoa.NSString, org.eclipse.swt.internal.cocoa.NSString) line: 37	
	org.eclipse.swt.widgets.DirectoryDialog.open() line: 146	
	org.eclipse.ui.internal.ide.ChooseWorkspaceDialog$3.widgetSelected(org.eclipse.swt.events.SelectionEvent) line: 285	
	org.eclipse.swt.widgets.TypedListener.handleEvent(org.eclipse.swt.widgets.Event) line: 234	
	org.eclipse.swt.widgets.EventTable.sendEvent(org.eclipse.swt.widgets.Event) line: 84	
	org.eclipse.swt.widgets.Display.sendEvent(org.eclipse.swt.widgets.EventTable, org.eclipse.swt.widgets.Event) line: 3963	
	org.eclipse.swt.widgets.Button(org.eclipse.swt.widgets.Widget).sendEvent(org.eclipse.swt.widgets.Event) line: 1431	
	org.eclipse.swt.widgets.Button(org.eclipse.swt.widgets.Widget).sendEvent(int, org.eclipse.swt.widgets.Event, boolean) line: 1454	
	org.eclipse.swt.widgets.Button(org.eclipse.swt.widgets.Widget).sendEvent(int, org.eclipse.swt.widgets.Event) line: 1439	
	org.eclipse.swt.widgets.Button(org.eclipse.swt.widgets.Widget).notifyListeners(int, org.eclipse.swt.widgets.Event) line: 1251	
	org.eclipse.swt.widgets.Display.runDeferredEvents() line: 3809	
	org.eclipse.swt.widgets.Display.readAndDispatch() line: 3462	
	org.eclipse.ui.internal.ide.ChooseWorkspaceDialog(org.eclipse.jface.window.Window).runEventLoop(org.eclipse.swt.widgets.Shell) line: 825	
	org.eclipse.ui.internal.ide.ChooseWorkspaceDialog(org.eclipse.jface.window.Window).open() line: 801	
	org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(boolean) line: 91	
	org.eclipse.ui.internal.ide.application.IDEApplication.promptForWorkspace(org.eclipse.swt.widgets.Shell, org.eclipse.ui.internal.ide.ChooseWorkspaceData, boolean) line: 277	
	org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(org.eclipse.swt.widgets.Shell) line: 225	
	org.eclipse.ui.internal.ide.application.IDEApplication.start(org.eclipse.equinox.app.IApplicationContext) line: 105	
	org.eclipse.equinox.internal.app.EclipseAppHandle.run(java.lang.Object) line: 196	
	org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(java.lang.Object) line: 110	
	org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(java.lang.Object) line: 79	
	org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.Object) line: 369	
	org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.String[], java.lang.Runnable) line: 179	
	sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) line: not available [native method]	
	sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 39	
	sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 25	
	java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object...) line: 592	
	org.eclipse.equinox.launcher.Main.invokeFramework(java.lang.String[], java.net.URL[]) line: 621	
	org.eclipse.equinox.launcher.Main.basicRun(java.lang.String[]) line: 576	
	org.eclipse.equinox.launcher.Main.run(java.lang.String[]) line: 1409	
	org.eclipse.equinox.launcher.Main.main(java.lang.String[]) line: 1385
Comment 1 Scott Kovatch CLA 2010-11-16 11:27:26 EST
If you can reproduce this, open up a Terminal window and run sample on the process:

%  sample <PID of hung process> 2 20

Then, attach the dump to the bug. This is almost always a bad remote mount point.
Comment 2 Thomas Watson CLA 2010-11-16 11:40:03 EST
Created attachment 183240 [details]
sample dump
Comment 3 Thomas Watson CLA 2010-11-16 11:43:47 EST
Created attachment 183241 [details]
sample dump 2
Comment 4 Thomas Watson CLA 2010-11-16 11:45:10 EST
The first dump I caused by click the drop down in the workspace chooser instead of using the Browse button.

The second dump I caused by clicking the Browse button and navigating the finder a bit.
Comment 5 Thomas Watson CLA 2010-11-16 11:54:15 EST
I have tried to reproduce this on 3.6 with the same machine but have not been successful.
Comment 6 Scott Kovatch CLA 2010-11-16 12:19:30 EST
I'll see what I can do to reproduce it. Both sample traces show we're stuck inside AppKit and not the SWT.
Comment 7 Thomas Watson CLA 2010-11-17 13:35:37 EST
I should have mentioned this before.  I am using 10.5.8 Mac OS X.  I am mentioning this because I saw you post a note about some conditional check for 10.5 vs 10.6 to the releng list.
Comment 8 Eclipse Genie CLA 2018-11-30 13:24:50 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 9 Lakshmi P Shanmugam CLA 2018-12-21 01:46:46 EST
This was reported on Mac 10.5 and Eclipse 3.7. 
Closing it as I'm unable to reproduce this with Eclipse 4.10 and macOS 10.14. Also, there are no reports of Directory Dialog hang for a long time.