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 130735 - naming Invocation element with long name hangs IDE
Summary: naming Invocation element with long name hangs IDE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Activity (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-21 01:44 UTC by Peter Lam
Modified: 2008-04-12 00:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide logfile (28.83 KB, text/plain)
2008-03-21 01:44 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-03-21 01:44:05 UTC
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)
Comment 1 Peter Lam 2008-03-21 01:44:55 UTC
Created attachment 58809 [details]
ide logfile
Comment 2 Thuy.d Nguyen 2008-03-31 17:25:58 UTC
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
Comment 3 Thuy.d Nguyen 2008-03-31 17:36:37 UTC
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
Comment 4 Thuy.d Nguyen 2008-03-31 17:42:26 UTC
I selected "Verified Fixed" by mistake; hence I reopen the issue.
Comment 5 Thuy.d Nguyen 2008-03-31 17:45:41 UTC
Fixed the issue as stated above.
Comment 6 Peter Lam 2008-04-12 00:03:46 UTC
verified in build 20080411.