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 130233

Summary: Visual Designer causes 100% CPU usage
Product: platform Reporter: einself <einself>
Component: GraphAssignee: issues@platform <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: dkaspar, kharezlak
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description einself 2008-03-16 01:13:26 UTC
A Project with about 7 lists, 15 forms and some call points (it's a MIDP Midlet) causes 100% cpu usage (respectively 
50% on dual core) when I try to click around in the visual designer and Netbeans is freezed for 10-15 seconds.

A thread dump (using NB 6.1; 100% cpu usage) is available at:

www.ja-nee.net/files/td.txt


Netbeans 6.1 is affected as well.

PS: Using nb.exe instead of netbeans.exe seems to be smoother, but I've got no proof for that.
Comment 1 Karol Harezlak 2008-03-16 08:34:58 UTC
I believe this is a problem:

"AWT-EventQueue-1" prio=6 tid=0x03bd2400 nid=0x9e8 runnable [0x0770e000..0x0770fc14]
   java.lang.Thread.State: RUNNABLE
	at java.util.ArrayList.get(ArrayList.java:322)
	at java.util.AbstractList$Itr.next(AbstractList.java:345)
	at org.netbeans.modules.visual.router.OrthogonalSearchRouterRegion.parseSubRegions(OrthogonalSearchRouterRegion.java:235)
	at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.search(OrthogonalSearchRouterCore.java:176)
	at org.netbeans.modules.visual.router.OrthogonalSearchRouterCore.search(OrthogonalSearchRouterCore.java:217)
...

I think recalculation of transition between components may cause overloading of the CPU. Transition routing algorithm is
a part of Visual Libraries so I'm reassigning this issue to th VL module.


Comment 2 David Kaspar 2008-03-16 16:43:58 UTC
This is a duplicate of issue #119999.

*** This issue has been marked as a duplicate of 119999 ***