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.
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.
Created attachment 59185 [details] Thread dump attached
Created attachment 59186 [details] OutOfMemoryError attached
Created attachment 59187 [details] Screenshot of Comments element with 45 chars of text
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
Fix verified in build 080406