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 180756

Summary: [69cat] Palette content created in AWT
Product: guibuilder Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: normal CC: janario, misterm, pbucken, romilsonpc
Priority: P3 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 162927
Attachments: nps snapshot

Description Exceptions Reporter 2010-02-15 19:42:36 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP

User Comments:
GUEST: Updating plugins from version 6.7



Maximum slowness yet reported was 25296 ms, average is 8265
Comment 1 Exceptions Reporter 2010-02-15 19:42:42 UTC
Created attachment 94179 [details]
nps snapshot
Comment 2 Tomas Pavek 2010-02-16 11:22:58 UTC
Reveals slow palette content creation (i.e. loading classes and BeanInfos for items in palette). The snapshots show various origin - (1) showing the palette, (2) expanding some category, (3) finding layouts in the palette (for Set Layout action or when a custom layout manager is used in a loaded form).

(1) and (2) could possibly be done on background, updating the palette when complete.

(3) must be done synchronously when the GUI builder needs to find out what layout managers are registered in the palette. Here some faster way of determining this would be desirable.
Comment 3 Jan Stola 2010-03-16 16:25:10 UTC
*** Bug 182132 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Pavek 2011-02-01 16:54:43 UTC
Palette loading was re-planned off AWT thread, I think for 6.9.

It became a great source of deadlocks when the bug in JDK 6 u21 and u22 appeared, see bug 187697.

Anyway, I think we can mark this as fixed.