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 233363 - org.netbeans.modules.form.layoutdesign.LayoutPainter.paintGapsInContainer: LowPerformance took 43208 ms.
Summary: org.netbeans.modules.form.layoutdesign.LayoutPainter.paintGapsInContainer: Lo...
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-07-25 05:19 UTC by Exceptions Reporter
Modified: 2013-08-09 10:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 202086


Attachments
nps snapshot (302.44 KB, application/nps)
2013-07-25 05:19 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-07-25 05:19:01 UTC
Build: NetBeans IDE 7.3.1 (Build 201306052037)
VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 7

User Comments:
GUEST: Changing textfields

GUEST: Netbeans IDE stopped working completely.



Maximum slowness yet reported was 43208 ms, average is 34402
Comment 1 Exceptions Reporter 2013-07-25 05:19:07 UTC
Created attachment 137752 [details]
nps snapshot
Comment 2 Tomas Pavek 2013-08-07 12:12:48 UTC
The snapshots show long painting of the layout gaps, looks like painting some huge single gap (not many gaps). I was not able to reproduce that, even the biggest gap I was able to set was painted quite fast (area of about Short.MAX_VALUE  x  Integer.MAX_VALUE size). Added one more check for hypothetical case of int overflow, also added code that always sets the expected basic stroke (the slowness might also be caused by a complicated paint stroke that got into the layout painting somehow). All that is a guess - would need to have steps to reproduce to be sure.

http://hg.netbeans.org/jet-main/rev/20b7dfb8c737
Comment 3 Quality Engineering 2013-08-09 10:50:52 UTC
Integrated into 'main-silver', will be available in build *201308090746* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/20b7dfb8c737
User: Tomas Pavek <tpavek@netbeans.org>
Log: #233363: making sure the right paint stroke used in layout painting is always set and unset; additional check for hypothetic paint overflow