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 - Visual Designer causes 100% CPU usage
Summary: Visual Designer causes 100% CPU usage
Status: RESOLVED DUPLICATE of bug 119999
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-16 01:13 UTC by einself
Modified: 2008-03-16 16:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***