Bug 208504 - [Launcher] Extreme long delay (3-4 minutes) opening switch workspace dialog on Linux only
Summary: [Launcher] Extreme long delay (3-4 minutes) opening switch workspace dialog o...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 3.5   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-11-01 23:41 EDT by wu@us.ibm.com CLA
Modified: 2009-04-30 15:12 EDT (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wu@us.ibm.com CLA 2007-11-01 23:41:16 EDT
Build ID: M20070212-1330

Steps To Reproduce:
1.Create a workspace on Linux (64-bit OS and 32-bit JDK) with multi-level directory path and each directory path may contains hundreds of files
2.Click on File -> Switch Workspace -> Browse
3.It will take 3-4 minutes for the browse to come up


More information:
With the same Eclipse level on Windows XP, the switch workspace problem does not occur.
Comment 1 sholars CLA 2007-12-08 22:41:05 EST
Hi.  Any possibility of this being fixed? 
Comment 2 DJ Houghton CLA 2007-12-10 09:46:04 EST
Do you still get the same delay when you do a File -> Open File... ?
Comment 3 wu@us.ibm.com CLA 2007-12-12 17:04:17 EST
There is an IBM RATLC defect 394671 opened to track this issue.
Comment 4 DJ Houghton CLA 2007-12-12 19:49:18 EST
Are you saying that this bug report can be closed because this has been identified as an IBM product issue?
Comment 5 wu@us.ibm.com CLA 2007-12-20 01:47:33 EST
Sorry for the confusion. This problem report should remain open because this problem is not an IBM product issue.  Thanks.
Comment 6 John Arthorne CLA 2008-01-04 09:55:53 EST
Since the delay occurs in opening the directory selection dialog, this doesn't seem to have anything to do with runtime. Moving back to UI.
Comment 7 John Arthorne CLA 2008-01-04 11:01:26 EST
It would be very useful to have an idea what is going on during those 3-4 minutes. A few stack dumps taken during that delay would likely pinpoint the problem. See this wiki page for info on how to generate stack dumps:

http://wiki.eclipse.org/index.php/How_to_report_a_deadlock
Comment 8 Kim Horne CLA 2008-01-07 10:56:13 EST
Your instructions are somewhat ambiguous as well.  There is no File-Switch Workspace-Browse option, but there is a File-Switch Worspace-Other option that opens a dialog containing a Browse button which does open a dialog as well.  Which of these dialogs is taking a long time?
Comment 9 wu@us.ibm.com CLA 2008-01-08 19:12:15 EST
Hundreds of the following messages were returned when user waiting for eclipse workspace to switch on Linux 64-bit.  There is no exceptions returned.  

stat64(0x7ca964d0, 0x7cacca88) = 0
stat64(0x7ca964d0, 0x7cb20e98) = 0
stat64(0x7ca964d0, 0x7cb110f8) = 0
stat64(0x7ca964d0, 0x7ca8d6a8) = 0
stat64(0x7ca964d0, 0x7cb2a368) = 0
stat64(0x7cae9c38, 0x7caa9e08) = 0
stat64(0x7ca964d0, 0x7cb29068) = 0
stat64(0x7ca964d0, 0x7caf3e68) = 0
stat64(0x7ca964d0, 0x7caf4ce8) = 0


The wait appears when the file browse action button is pressed.
Comment 10 Kim Horne CLA 2008-01-14 09:52:40 EST
Does this delay also happen on startup if you choose the browse option from the workbench chooser dialog?


Comment 11 Grant Gayed CLA 2008-01-14 10:02:06 EST
You specify that you're using a 32-bit jdk, so presumably a 32-bit eclipse as well.  Do you see the same problem if you run with 64-bit eclipse and 64-bit jre?  And does it only happen if you have a "multi-level directory path and each directory path may contains hundreds of files"?
Comment 12 Kim Horne CLA 2008-04-01 12:55:36 EDT
Pinging those who reported the bug for more input.
Comment 13 Kim Horne CLA 2008-05-02 15:54:21 EDT
Wu: please reopen if you can provide the requested information.
Comment 14 wu@us.ibm.com CLA 2008-05-02 16:04:00 EDT
Sorry for not responding sooner.  This problem occurs on Linux 64-bit system where there are hundreds of entries in each directory with typically 5-10 level deep directory hierachy.  These directories reside on AFS or network shared drive, which are not local to where the eclipse workspace is.
Comment 15 John Arthorne CLA 2008-05-02 16:15:35 EDT
Wu, please see comment #7. If you could give one or two stack dumps during that 3-4 minute delay, it would greatly help tracking down what is happening and where the time is going.
Comment 16 Kim Horne CLA 2008-05-05 09:17:20 EDT
(In reply to comment #14)
> Sorry for not responding sooner.  This problem occurs on Linux 64-bit system
> where there are hundreds of entries in each directory with typically 5-10 level
> deep directory hierachy.  These directories reside on AFS or network shared
> drive, which are not local to where the eclipse workspace is.
> 

Also, answering Grants question about the 64 bit eclipse/vm would be helpful as well.
Comment 17 Nagapriya Tiruthani CLA 2008-05-07 16:54:42 EDT
The application that Wu is talking about can only run on eclipse 3.2.2. and 32 bit. So, will not be able to test with 64bit JDK.
Comment 18 Oleg Besedin CLA 2009-03-23 16:54:43 EDT
The "Browse" button on the File -> Switch Workspace... -> Other dialog opens org.eclipse.swt.widgets.DirectoryDialog.

Assuming that this is the dialog Wu is referring to, reassigning to SWT.

Wu, it would help if you could provide more information as asked in:

comment 8 - is this the dialog you having the problem with?
comment 7, comment 15 - can you provide some stack traces to see what happens in the 3-4 minutes of waiting?
comment 2 - do you see a similar slowdown in the File -> Open File on the same directory?
Comment 19 Felipe Heidrich CLA 2009-04-07 10:51:25 EDT
What Linux are you running ?
Is the path on a network drive ?
Have you tried with a new version of Eclipse (ie. Eclipse 3.5 M6) ?
Comment 20 Steve Northover CLA 2009-04-30 14:57:12 EDT
This looks like a bug in GTK.  The GTK file dialog seems to be doing a hundreds of stat64()'s in an attempt to fill the dialog.  This is not SWT.
Comment 21 John Arthorne CLA 2009-04-30 15:12:12 EDT
Changed to NOT_ECLIPSE, since it's not an Eclipse bug.