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 97173

Summary: OutOfMemoryError exception occurs, when user is editing empty source file
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2007-03-04 14:34:42 UTC
I found very strange problem on my Windows XP machine. When I am editing
 empty source file, then OutOfMemoryError exception occurs.

Steps:
- Run Netbeans with '-J-Xmx512m' option
- Create C/C++ Application project
- Add empty C file into project
- Open file in built-in editor
- Type in editor:
-------------------------------------

  #include <string.h>

-------------------------------------
- Wait about 30 seconds
==>OutOfMemoryError exception

*********** Exception occurred ************ at 4:32 PM on Mar 4, 2007
java.lang.OutOfMemoryError: Java heap space
Comment 1 soldatov 2007-03-05 10:54:25 UTC
Upgrade to P1 because I have same problem with memory on other platforms
Comment 2 Vladimir Voskresensky 2007-03-05 12:47:38 UTC
fixed 

cvs log:
Checking in aptlexer.g;
/shared/data/ccvs/repository/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/aptlexer.g,v
 <--  aptlexer.g
new revision: 1.1.2.8; previous revision: 1.1.2.7
done
Comment 3 Maria Tishkova 2007-08-06 17:45:00 UTC
verified 5.5.1u1