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 88172 - IDE hangs after adding source to the project
Summary: IDE hangs after adding source to the project
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-28 00:40 UTC by julieg
Modified: 2006-10-31 00:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description julieg 2006-10-28 00:40:07 UTC
test machine: sqao36 (Fedora Core 3)
jdk: 1.5.0_08
Netbeans FCS + CND 061027
binary: /export/home/tester/netbeans-5.5/bin/netbeans


File | New Project | C/C++ Development | C/C++ Application
Project Name: Application1
Project Location:
/net/sqa35/export/home/isv/build/my_firefox/firefox-1.5.0.3.default/build/
Project Folder: <default>
Project makefile Name : <default>
Finish

In Project Explorer
Application1 | Source folder | Add Existing items from folders
Select Source file folder:
/net/sqa35/export/home/isv/build/my_firefox/firefox-1.5.0.3.default/build/
Select | Add | Add
==> IDE hangs
==> netbeans process can not be killed from the command line unless the
    associated java process is killed
Comment 1 julieg 2006-10-28 00:42:37 UTC
Forgot to include this info:
-J-Xms128m -J-Xmx1024m
Comment 2 _ gordonp 2006-10-28 01:20:03 UTC
Assigning to Vladimir Kvashin because its too close to code freeze to
leave unassigned P1s. Feel free to discuss with others in your group and
reassign if desired.
Comment 3 Vladimir Voskresensky 2006-10-28 10:03:03 UTC
Please, provide thread dump:
- start cnd from command line
- Ctrl+/ on Unix from command line where cnd was started

it could be project system bugs:
http://www.netbeans.org/issues/show_bug.cgi?id=88069 Don't use UI thread when
adding new files to project

Comment 4 julieg 2006-10-30 19:13:52 UTC
The IDE hang behavior is different from 10-27-06 & 10-30-06 CND. 
The control+/ has no effect, so I can not get the thread dump. 
 
On 10-27-06 CND, IDE has no response to the mouse clicking, but
I am able to exit the IDE from 10-30-06 CND.
I waited for more than 10 minutes to close the IDE and perhaps
the IDE is still parsing?


I received the followng NPE after exit the IDE, and re-enter the IDE:

java.lang.NullPointerException
        at
org.netbeans.modules.cnd.makeproject.NativeProjectProvider.getAllSourceFiles(NativeProjectProvider.java:96)
        at
org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.visitProjectFiles(ModelSupport.java:289)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.ensureFilesCreated(ProjectBase.java:244)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$2.run(ProjectBase.java:265)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.CodeModelRequestProcessor$1.run(CodeModelRequestProcessor.java:57)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 5 Vladimir Kvashin 2006-10-30 19:26:25 UTC
Parser goes into infinite loop on incomplete construct like the following:

#define MAX(x, y) ((x > y) ? (x) : (y))
MAX(x

Try processing this in command-line (tracemodel.sh), it will hang
Comment 6 Vladimir Kvashin 2006-10-31 00:09:02 UTC
Both NPE and inifinite loop are fixed.
IDE does not hang any more.

There is 2 issues that are probably related:
1) #76817 Adding many files to project is too slow
2) #79023 *Class View* reduce time spent in updating tree for large projects

But they caise slow UI, but not hanging.
Therefore I close this IZ.

You can see CVS log below.


Checking in NativeProjectProvider.java;
/shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/NativeProjectProvider.java,v
 <--  NativeProjectProvider.java
new revision: 1.2.2.5; previous revision: 1.2.2.4
done

Checking in APTExpandedStream.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/APTExpandedStream.java,v
 <--  APTExpandedStream.java
new revision: 1.2.2.7; previous revision: 1.2.2.6
done