This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 145899 - Large C++ project causes netbeans to take 15 mins to open.
Summary: Large C++ project causes netbeans to take 15 mins to open.
Status: RESOLVED DUPLICATE of bug 146696
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords: PERFORMANCE
Depends on: 146696 146477
Blocks:
  Show dependency tree
 
Reported: 2008-09-02 12:16 UTC by neilwightman
Modified: 2008-09-11 11:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack 1 of opening project (not at startup) (59.10 KB, text/plain)
2008-09-08 08:29 UTC, neilwightman
Details
Stack 2 of opening project (not at startup) (61.03 KB, text/plain)
2008-09-08 08:30 UTC, neilwightman
Details
Stack 3 of opening project (not at startup) (59.09 KB, text/plain)
2008-09-08 08:30 UTC, neilwightman
Details
stack trace of pause after netbeans appears but no projects are visible (48.81 KB, text/plain)
2008-09-08 08:35 UTC, neilwightman
Details
once the projects appeared I then expanded the project with 41k files. I then hung for minutes doing this (48.99 KB, text/plain)
2008-09-08 08:36 UTC, neilwightman
Details
1 other stack I took while the expand project was processing (46.57 KB, text/plain)
2008-09-08 08:37 UTC, neilwightman
Details
dev build hang on startup. (49.48 KB, text/plain)
2008-09-09 13:59 UTC, neilwightman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neilwightman 2008-09-02 12:16:47 UTC
I have a large c++ project I tried to edit with Netbeans.

I had to set the heap to 1Gb.  

Whenever I start netbeans now it takes 5 to 15 minutes to open the IDE.

The project has 41,013 source/header files.

Should I simply give up trying to load large projects or should this work?
Comment 1 Leonid Lenyashin 2008-09-02 12:45:10 UTC
Till this moment the largest project we tested was Fedora. It has 20K+ files and 2M+ lines of code. It worked ok,
although initial parsing took around 7 min on our test machine. Note that parsing does not block user activities.
However it is not clear from your description what happened to your NB. Is it literally coming up (showing logo screen)
for 5-15 minutes? Is it an opensource project? Can we take a look? How did you configure your project? 
We definitely consider anything that blocks large project development in CND to be a high priority bug. So please do not
give up, but provide us with more details!

Thank you, Leonid.
Comment 2 Vladimir Voskresensky 2008-09-05 12:16:27 UTC
Could you, please, provide thread dumps during opening. We need to see what is done in threads.

Btw, your problem may be related with just fixed:
http://www.netbeans.org/issues/show_bug.cgi?id=146155
Comment 3 neilwightman 2008-09-08 08:28:27 UTC
When I open netbeans the splash screen appears but it stops repainting and goes white.
Comment 4 neilwightman 2008-09-08 08:29:46 UTC
Created attachment 69280 [details]
Stack 1 of opening project (not at startup)
Comment 5 neilwightman 2008-09-08 08:30:05 UTC
Created attachment 69281 [details]
Stack 2 of opening project (not at startup)
Comment 6 neilwightman 2008-09-08 08:30:44 UTC
Created attachment 69282 [details]
Stack 3 of opening project (not at startup)
Comment 7 neilwightman 2008-09-08 08:34:30 UTC
I'm not sure that the performance issue always occurs at the same place though.

I opened netbeans a second time and now the UI fully appears but no projects appear in the project tab.

Then it appears but as soon as I expand the project it pauses for ages.

Attached are two extra stack traces of where the hangs occur.
Comment 8 neilwightman 2008-09-08 08:35:41 UTC
Created attachment 69283 [details]
stack trace of pause after netbeans appears but no projects are visible
Comment 9 neilwightman 2008-09-08 08:36:42 UTC
Created attachment 69284 [details]
once the projects appeared I then expanded the project with 41k files.  I then hung for minutes doing this
Comment 10 neilwightman 2008-09-08 08:37:26 UTC
Created attachment 69285 [details]
1 other stack I took while the expand project was processing
Comment 11 Alexander Simon 2008-09-08 13:25:52 UTC
Could you provide thread dump on current development build?
It seems a part of problem was fixed. See IZ#146477.
Comment 12 neilwightman 2008-09-09 13:58:46 UTC
dev build (200809081401)

This is very strange, some times netbeans opens very fast then I have to wait when I expand the project in the projects
windows.  Other times netbeans hangs with the splash screen shown.

Attached is a new stacktrace from when netbeans hung on startup.

FYI : I opened the whole project in Visual Studio 2005 and it opened it in 21 seconds.

Comment 13 neilwightman 2008-09-09 13:59:27 UTC
Created attachment 69403 [details]
dev build hang on startup.
Comment 14 Vladimir Voskresensky 2008-09-09 14:46:21 UTC
Now I see the reason of blocked AWT thread.
Thank you!
Comment 15 Vladimir Voskresensky 2008-09-09 17:45:45 UTC
removed blocking AWT thread on startup
http://hg.netbeans.org/main?cmd=changeset;node=6fec6735b1ec
Comment 16 Quality Engineering 2008-09-10 06:01:40 UTC
Integrated into 'main-golden', will be available in build *200809100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6fec6735b1ec
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing IZ#145899: Do not ever block EDT with hacks like Task.waitFinished()
Comment 17 Vladimir Voskresensky 2008-09-10 17:44:41 UTC
after previous fix + fixes in system file system of netbeans core the only one problem remains. described in 146726

*** This issue has been marked as a duplicate of 146726 ***
Comment 18 Vladimir Voskresensky 2008-09-11 11:03:01 UTC
the correct dup is http://www.netbeans.org/issues/show_bug.cgi?id=146696
Comment 19 Vladimir Voskresensky 2008-09-11 11:04:02 UTC

*** This issue has been marked as a duplicate of 146696 ***