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 - OutOfMemoryError exception occurs, when user is editing empty source file
Summary: OutOfMemoryError exception occurs, when user is editing empty source file
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-04 14:34 UTC by soldatov
Modified: 2007-08-06 17:45 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 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