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 268234

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: allisoncTimeless
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal Keywords: PERFORMANCE
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 212784
Attachments: stacktrace

Description allisoncTimeless 2016-09-27 12:46:25 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) Client VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
GUEST: Editing a css file and the program froze.

allisoncTimeless: Working with large file

GUEST: I used the application all day to debug javascript code.

GUEST: Developing with Chrome Developer Tools, changing several values repeatedly.

java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(
   at java.lang.AbstractStringBuilder.expandCapacity(
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(
   at java.lang.AbstractStringBuilder.append(
   at java.lang.StringBuilder.append(
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.<init>(
Comment 1 allisoncTimeless 2016-09-27 12:46:29 UTC
Created attachment 162242 [details]
Comment 2 Svata Dedic 2016-12-08 10:48:42 UTC
Report #806997 shows multiple references to ExtCaret (which was replaced in 8.2) and BaseTextUI - that part might prevail, but similar issue is not reported against later releases (all reports are against 8.0.2 or earlier).

In report #831804, multiple instances of BaseTextUI can be seen as well - and also OffsetsBag$DocL listener attached to the document - some leak in highlighting ?

Reassigning to editor / painting