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 88519

Summary: Hang or unstable work after addition of combined fragment within another one
Product: uml Reporter: Sergey Petrov <sj-nb>
Component: Diagram SequenceAssignee: Kris Richards <krichard>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Test java class
StackOverflowError in IDE log file

Description Sergey Petrov 2006-11-02 15:05:41 UTC
reproducible with coke, coco 061101_7
unable to reproduce in jse8

Hang or unstable work after addition of combined fragment within another one or
within shown interaction boundary.

steps to reproduce:
1. create package with scoped sequence diagram
2. add two lifelines
3. invoke 'Show Interaction Boundary' from diagram context menu
4. place combined fragment within the boundary
ide hangs (sometimes may response to some actions and hangs again)
java cpu useage goes to 90-99% for a long time (entire system became slow)

in steps with two combined fragments I was able to invoke context menu twice
after step 4 and to drop one more lifeline, and all hangs completely
Comment 1 Alexandr Scherbatiy 2006-11-16 15:04:34 UTC
The issues affects Reverse Engineer Operation area.

Steps to reproduce:
- Reverse Engineer the attached java class
- Reverse Engineer 'test' operation from the class
IDE hangs.
Comment 2 Alexandr Scherbatiy 2006-11-16 15:06:21 UTC
Created attachment 36097 [details]
Test java class
Comment 3 Alexandr Scherbatiy 2006-11-21 13:44:35 UTC
Created attachment 36170 [details]
StackOverflowError in IDE log file
Comment 4 Kris Richards 2006-11-21 21:34:11 UTC
removed super.doDraw for the InteractionFragmentDrawEngine.doDraw method. This takes care of the 
first noted StackOverflow.
Comment 5 Kris Richards 2006-11-21 21:37:22 UTC
both issues fixed.
Comment 6 Sergey Petrov 2006-11-22 11:35:50 UTC
which two issues?
initially:
-about combined fragment within interaction boundary - fixed
-combined fragment within combined fragment - still reproducible
Comment 7 Sergey Petrov 2006-11-22 11:37:25 UTC
(tried with 061121_17)
Comment 8 Sergey Petrov 2006-11-22 12:16:15 UTC
even with boundary+fragment there is issue: StackOverflow on fragment resize (I
can file as separate issue)
Comment 9 Kris Richards 2006-11-22 17:42:34 UTC
removed super.doDraw for the CombinedFragmentDrawEngine.doDraw method.
Comment 10 Kris Richards 2006-11-22 17:58:47 UTC
can you please file a separate bug concerning the fragment resize; including a "how to reproduce".
Comment 11 Sergey Petrov 2006-11-23 13:40:46 UTC
can't reproduce resize issue with 061123_1
verified