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 - OutOfMemoryError when typing long text in Comments element and freezes the IDE
Summary: OutOfMemoryError when typing long text in Comments element and freezes the IDE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 23:38 UTC by Joanne Lau
Modified: 2008-04-07 20:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump attached (15.71 KB, text/plain)
2008-03-26 23:39 UTC, Joanne Lau
Details
OutOfMemoryError attached (2.45 KB, text/plain)
2008-03-26 23:40 UTC, Joanne Lau
Details
Screenshot of Comments element with 45 chars of text (12.33 KB, image/png)
2008-03-26 23:42 UTC, Joanne Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
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