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

Bug 312545

Summary: [RSE and PDT] create remote project hangs, which causes remote server to keep writing log entries
Product: [Tools] Target Management Reporter: van Tol <vantol>
Component: RSEAssignee: dsdp.tm.rse-inbox <tm.rse-inbox>
Status: REOPENED --- QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: major    
Priority: P3 CC: dmcknigh, loganathan001, recoskie
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description van Tol CLA 2010-05-12 04:33:42 EDT
Build Identifier: 20100218-1602

In RSE (using PDT), when rightclicking a folder and choosing 'create remote project', after a while - maybe because it's a large project - the build and validate dialog hangs, eclipse hangs also.

During the freeze, on the remote server log files are written, like:
-May 11 16:48:39 remoteserver sshd[8581]: [ID 800047 auth.error] error: select: Invalid argument
-May 11 16:49:30 remoteserver last message repeated 468227 times

Then i have to kill eclipse because it won't respond anymore


Reproducible: Always

Steps to Reproduce:
1.using a ssh connection 
2.create remote project (probably large)
3.wait... during build and validate dialog (php project) it freezes (every time)
Comment 1 van Tol CLA 2010-05-12 04:37:16 EDT
I am using the TM 3.1.2 version
Comment 2 Martin Oberhuber CLA 2010-05-19 23:27:15 EDT
I assume that it hangs during the EFS deep project refresh -- EFS and large remote file trees have been known for a long time to cause issues:
http://wiki.eclipse.org/DSDP/TM/3.2_Known_Issues_and_Workarounds

Dave, Chris - how are you handling large remote projects in RDT? 

Do you think that this is specific to the apparent problem with SSH (which might have run out of file descriptors; in this case bug 256581 would be a proper fix); or do we need something generic, e.g. a progress bar + cancel button for the EFS deep refresh? Or an improvement on Eclipse Core/Resources side, such as discussed on bug 244979 and bug 246565 which also came up in the context of 
   http://wiki.eclipse.org/E4/Resources/Work_Areas

BTW, combining RSE remote filtering with EFS might also have a chance of improving the situation, related to the e4 semantic file system:
   http://wiki.eclipse.org/E4/Resources/Semantic_File_System
Comment 3 Martin Oberhuber CLA 2010-05-27 08:06:10 EDT
I'm decreasing severity since (a) this is a known issue with workaround and (b) the submitter didn't care answering with a week so I assume it's not that severe after all.

Let us know if you have good arguments why this is severe for you.
Comment 4 van Tol CLA 2010-05-27 08:52:58 EDT
(In reply to comment #3)
> I'm decreasing severity since (a) this is a known issue with workaround and (b)
> the submitter didn't care answering with a week so I assume it's not that
> severe after all.
> 
> Let us know if you have good arguments why this is severe for you.

Sorry for not responding earlier. 

I think it is a severe bug because it makes eclipse freeze. Even the cancel button does nothing.
however I didn't know that this issue was listed at known issues, so sorry for raising this bug.

Personally RSE works fine for me, i just don't get the nice codecompletion i wanted which you get with 'create remote project' and that is only annoying for me at one project of mine.

Anyway, thanks for the response
Comment 5 Martin Oberhuber CLA 2010-05-27 08:59:23 EDT
Well, the "create remote project" _should_ work when the remote file tree is small. So perhaps an acceptable workaround is creating a symlink on the remote which points to only those subset(s) of files that you need.

Also, the performance issue you raise is valid, and I agree that cancel should be possible. While it's not critical, it is a major usability problem, so I'm re-opening it.
Comment 6 Chris Recoskie CLA 2010-05-31 09:41:29 EDT
(In reply to comment #2)
> Dave, Chris - how are you handling large remote projects in RDT? 
> Do you think that this is specific to the apparent problem with SSH (which
> might have run out of file descriptors; in this case bug 256581 would be a
> proper fix); or do we need something generic, e.g. a progress bar + cancel
> button for the EFS deep refresh? Or an improvement on Eclipse Core/Resources
> side, such as discussed on bug 244979 and bug 246565 which also came up in the
> context of 
>    http://wiki.eclipse.org/E4/Resources/Work_Areas

There is nothing special we do in RDT to avoid the refresh when creating the project.  We did however ask the platform team to make progress reporting for the refresh more verbose, so that when the New Remote C/C++ Project Wizard is running, it gives a better indication that something is still going on, and that it's not stuck.  See Bug 298197.

I have not played much with the "Create Remote Project" action, but if it still suffers from a lack of verbosity in its progress reporting, maybe it could be improved to take advantage of the changes done for Bug 298197.  I would think that this action ought to be doing its work in a Job, whose progress monitor would be passed into the refresh.