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 212153 - inifinite loop painting
Summary: inifinite loop painting
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Task Dashboard (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-07 07:30 UTC by Ondrej Vrabec
Modified: 2012-05-14 09:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (27.71 KB, application/octet-stream)
2012-05-07 07:33 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2012-05-07 07:30:47 UTC
Product Version: NetBeans IDE Dev (Build 20120427-bc9efea4cb48)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
User directory: C:\Documents and Settings\Ondra Vrabec\Data aplikací\NetBeans\cdev
Cache directory: C:\Documents and Settings\Ondra Vrabec\Local Settings\Data aplikací\NetBeans\Cache\cdev

Nazdar, when i expand a query in my Local Repository in the Dashboard, the AWT thread gets busy and repaints the dashboard on and on until i collapse the query. See the snapshot
Comment 1 Ondrej Vrabec 2012-05-07 07:33:19 UTC
Created attachment 119139 [details]
snapshot
Comment 2 Ondrej Vrabec 2012-05-07 07:37:39 UTC
If i understand it correctly then the reason is:
TreeListNode.getRenderer is called with this.renderer set to null -> this.renderer gets initialized and renderer.configure is called -> TaskNode.getComponent is called from inside the configure method -> TaskNode.fireContentChanged() which in turn sets TreeListNode.renderer to null and triggers repaint. And this goes on and on.
Comment 3 Jan Peska 2012-05-14 09:17:58 UTC
fixed as part of http://hg.netbeans.org/core-main/rev/7cdb5ea9d86a - useless fireContentChanged() call removed