Bug 91035 - Import Projects dialog seems to freeze Eclipse when importing large projects with CDT
Summary: Import Projects dialog seems to freeze Eclipse when importing large projects ...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-11 14:29 EDT by Devin Steffler CLA
Modified: 2020-09-04 15:22 EDT (History)
5 users (show)

See Also:


Attachments
Screenshot of the bug. (104.36 KB, image/jpeg)
2005-04-11 14:30 EDT, Devin Steffler CLA
no flags Details
zip file of 3 projects (8.81 KB, application/x-zip-compressed)
2005-04-13 12:12 EDT, James Tan CLA
no flags Details
zip file of screenshot of Importing existing project (68.48 KB, application/x-zip-compressed)
2005-04-13 12:14 EDT, James Tan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Steffler CLA 2005-04-11 14:29:26 EDT
This bug was created in response to 84606.

To reproduce the bug you will first need a CDT project with a large code base.  
I'm using Ethereal (http://www.ethereal.com/download.html) as a test project 
for this bug.  First create a project that points to the Ethereal source code 
before following these instructions to reproduce the bug.

Instructions to reproduce the bug:
1) download/extract Eclipse 3.1M6 (http://www.eclipse.org/downloads/)
2) download/extract CDT 3.0M6 candidate (in same directory as Eclipse) 
(http://fullmoon.rtp.raleigh.ibm.com/tools/cdt/builds/3.0.0/I.I200504110306/inde
x.html)
3) start Eclipse + CDT in a new workspace
4) create a new Standard Make C++ Project (don't need source files)
5) import a project with a large code base (such as the Ethereal project 
mentioned above)

A screenshot is attached.  My computer says that ~0-3% CPU is being used when 
Eclipse is frozen as shown in the screenshot.  The "Import Projects" dialog is 
still displayed and it can't be canceled/closed.

Clicking Cancel disables the cancel button.
Clicking the 'X' to close the dialog displays the error "Wizard can not be 
closed due to an active operation.  You must cancel the operation before you 
can close the wizard."

Interesting Note:  I can't seem to reproduce the bug without first creating a 
C/C++ project before importing the project with a large code base.
Comment 1 Devin Steffler CLA 2005-04-11 14:30:17 EDT
Created attachment 19777 [details]
Screenshot of the bug.
Comment 2 Devin Steffler CLA 2005-04-11 14:39:06 EDT
Please review this bug and let me know if it is the same bug that you reported 
for PR https://bugs.eclipse.org/bugs/show_bug.cgi?id=84606.  I have a feeling 
that this is a new bug.

Thanks,
Devin
Comment 3 Devin Steffler CLA 2005-04-11 15:26:54 EDT
Alain,

If you get a minute can you look into this and give your thoughts?  It seems to 
be related to auto-build and the Eclipse "Import Projects" dialog.

Thanks,
Devin
Comment 4 Devin Steffler CLA 2005-04-12 12:49:01 EDT
Update:

I can only reproduce this bug when the imported large project has auto build 
turned on.
Comment 5 Alain Magloire CLA 2005-04-12 20:23:26 EDT
(In reply to comment #3)
> Alain,
> If you get a minute can you look into this and give your thoughts?  It seems 
to 
> be related to auto-build and the Eclipse "Import Projects" dialog.

Almost missed this.

Well, there is a lot going on.
In Eclipse-3.1 now, even if the import is batch whitin a WorkspaceRunnable
From time to time during the import the ResourceDelta is trigger(this is
done by the platform to show some responsiveness) ...
which triggers:
- an auto-build
- the indexer via the CElementDelta event
- trigger the Auto-discovery 
- trigger pathEntry markers
etc ..

There are different strategies to deal with this but I agree for
scalability ... it's not good.
Comment 6 James Tan CLA 2005-04-13 12:10:07 EDT
Used CDT 3.0.0 Build I200504131010. Well, I try to import 3 existing mgd make 
cpp projects all together into my workspace, it just simple doesn't work. It 
keeps running for 10 minutes. The Import dialog is always presented and cancel 
doesn't work. You can see "Refreshing workspace" on the right corner of 
workbench. Only thing I can do is to kill the IDE.

All these project are indexer turned on. The zip file of projects and screen 
shot are attached.
Comment 7 James Tan CLA 2005-04-13 12:12:19 EDT
Created attachment 19871 [details]
zip file of 3 projects

Unzip them into your workspace and import existing project, choose all of them
and import.
Comment 8 James Tan CLA 2005-04-13 12:14:41 EDT
Created attachment 19873 [details]
zip file of screenshot of Importing existing project
Comment 9 Ed Warnicke CLA 2005-04-26 14:56:26 EDT
I have been unable to reproduce this bug with Eclipse 3.1M6 (I20050401-1645)  
and CDT 3.0M6 (200504140301).  I am still seeing  Bug 84606. 
 
Comment 10 Doug Schaefer CLA 2007-08-21 10:58:49 EDT
Future means you commit to fix it in the Future. Inboxes can't make committments. Moving to '--'.