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 131247

Summary: OutOfMemoryError when typing long text in Comments element and freezes the IDE
Product: uml Reporter: Joanne Lau <j_lau>
Component: GeneralAssignee: Thuy.d Nguyen <thuydn>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump attached
OutOfMemoryError attached
Screenshot of Comments element with 45 chars of text

Description Joanne Lau 2008-03-26 23:38:20 UTC
Build: 080325

Attempt to enter a long text

- DnD a class element
- Add a comment element to the class
  and begin to enter text (about 45 chars) 
- Click <Return>

 This causes the entire IDE to freeze.

 Please see attached thread dump and outOfMemoryError.
Comment 1 Joanne Lau 2008-03-26 23:39:33 UTC
Created attachment 59185 [details]
Thread dump attached
Comment 2 Joanne Lau 2008-03-26 23:40:07 UTC
Created attachment 59186 [details]
OutOfMemoryError attached
Comment 3 Joanne Lau 2008-03-26 23:42:50 UTC
Created attachment 59187 [details]
Screenshot of Comments element with 45 chars of text
Comment 4 Thuy.d Nguyen 2008-04-01 19:19:50 UTC
The breakUpLines method missed handling the situation where the width of a single word is longer than the widget's
width. The loop condition was not properly set which made the loop being executed indefinitely and the array of lines
growing until out of memory.

Fixed.

changeset 9a989f434f79 in uml-meteora
details: http://hg.netbeans.org/uml-meteora?cmd=changeset;node=9a989f434f79
description:
	Fixed 131247 and 130735: OutOfMemoryError when typing long text in Comments (and Invocation) element and freezes the IDE

Comment 5 Joanne Lau 2008-04-07 20:02:11 UTC
Fix verified in build 080406