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 20080319 entering a name longer than one line across the invocation element will hang IDE. - create an activity diagram - drop an Invocation element to the diagram - press Enter to edit - type in a name long enough so that it goes to the 2nd line - press Enter key Result: the Invocation element now is not displayed with a name and the cursor turns into a resizing mode (an arrow pointing to all 4 directions), and IDE hangs. After about a minute w/o killing the ide, the exception pops up showing the following exceptions and the IDE still hangs. java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2760) at java.util.Arrays.copyOf(Arrays.java:2734) at java.util.ArrayList.ensureCapacity(ArrayList.java:167) at java.util.ArrayList.add(ArrayList.java:351) at org.netbeans.modules.uml.widgets.MultilineLabelWidget$LineDetails.addLine(MultilineLabelWidget.java:334) at org.netbeans.modules.uml.widgets.MultilineLabelWidget.breakupLines(MultilineLabelWidget.java:231) at org.netbeans.modules.uml.widgets.MultilineLabelWidget.paintWidget(MultilineLabelWidget.java:161) at org.netbeans.api.visual.widget.Widget.paint(Widget.java:1278) at org.netbeans.api.visual.widget.Widget.paintChildren(Widget.java:1331) at org.netbeans.api.visual.widget.Widget.paint(Widget.java:1279) at org.netbeans.api.visual.widget.Widget.paintChildren(Widget.java:1331) at org.netbeans.api.visual.widget.Widget.paint(Widget.java:1279) at org.netbeans.api.visual.widget.Widget.paintChildren(Widget.java:1331) at org.netbeans.api.visual.widget.Widget.paint(Widget.java:1279) at org.netbeans.api.visual.widget.SceneComponent.paint(SceneComponent.java:129) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JLayeredPane.paint(JLayeredPane.java:564) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JViewport.paint(JViewport.java:747) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1036) at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:952)
Created attachment 58809 [details] ide logfile
Fixed. diff -r 0acde60ae458 -r b43c72723674 uml.codegen/src/org/netbeans/modules/uml/codegen/dataaccess/xmlbeans/TemplateFamiliesHandler.java --- a/uml.codegen/src/org/netbeans/modules/uml/codegen/dataaccess/xmlbeans/TemplateFamiliesHandler.java Fri Mar 28 21:24:41 2008 +0300 +++ b/uml.codegen/src/org/netbeans/modules/uml/codegen/dataaccess/xmlbeans/TemplateFamiliesHandler.java Mon Mar 31 17:56:22 2008 +0400
Please ignore the changeset above. I cut and pasted the wrong changeset. Here's the right one for this issue. changeset adf4f6c70f20 in uml-meteora details: http://hg.netbeans.org/uml-meteora?cmd=changeset;node=adf4f6c70f20 description: Refactored the code to do the followings: - fixed issues 131247, 130735: OutOfMemoryError when typing long text in multiline Editable Compartment (i.e CommentWidget & InvocationWidget) - fixed 130822 : invocation element name is no longer editable - Integrated UMLMultilineLableWidget, MultilineEditableCompartmentWidget.java and CommnetEWidget with Font & Color resources. - Removed unused imports
I selected "Verified Fixed" by mistake; hence I reopen the issue.
Fixed the issue as stated above.
verified in build 20080411.