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.
Summary: | IDE hangs after adding source to the project | ||
---|---|---|---|
Product: | cnd | Reporter: | julieg <julieg> |
Component: | Project | Assignee: | Vladimir Kvashin <vkvashin> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
julieg
2006-10-28 00:40:07 UTC
Forgot to include this info: -J-Xms128m -J-Xmx1024m 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. 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 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) 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 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 |