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 215525 - EDT waiting for RU worker for 824ms after project open
Summary: EDT waiting for RU worker for 824ms after project open
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE, RANDOM
: 215524 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-13 15:05 UTC by Michel Graciano
Modified: 2013-01-10 03:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 190731


Attachments
nps snapshot (71.54 KB, application/nps)
2012-07-13 15:05 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-07-13 15:05:39 UTC
This issue was reported manually by hmichel.
It already has 1 duplicates 


Build: NetBeans IDE 7.2 (Build 201207101812)
VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Linux
Maximum slowness yet reported was 3402 ms, average is 3402
Comment 1 Michel Graciano 2012-07-13 15:05:43 UTC
Created attachment 122015 [details]
nps snapshot
Comment 2 Michel Graciano 2012-07-13 15:06:22 UTC
*** Bug 215524 has been marked as a duplicate of this bug. ***
Comment 3 Michel Graciano 2012-07-13 15:07:51 UTC
I filed it because m y report was marked as dup of http://statistics.netbeans.org/exceptions/detail.do?id=159707 which has nothing to do with my environment. My guess is that a lot of other reports was incorrectly duplicated as well.
Comment 4 David Strupl 2012-11-09 15:45:23 UTC
Performance team please evaluate, I am not sure what is causing the delay.
Comment 5 Petr Cyhelsky 2012-11-09 17:34:18 UTC
for 970 ms AWT is blocked in:
 org.netbeans.api.lexer.TokenHierarchy.isActive() which waits for classloading in "EditorBracesMatching" thread (org.netbeans.modules.db.sql.lexer.SQLTokenId$1.createLexer() )

for 824 ms AWT is blocked in: org.netbeans.modules.db.sql.editor.ui.actions.SQLExecutionBaseAction$ContextAwareDelegate.getToolbarPresenter() which is waiting for "Repository updater worker" to init a project:

at sun.java2d.loops.Blit.Blit(Native Method)
	at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:560)
	at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:541)
	at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:189)
	at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
	at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:956)
	at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:578)
	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:71)
	at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1011)
	at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:186)
	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3084)
	at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3069)
	at org.openide.util.ImageUtilities$ToolTipImage.createNew(ImageUtilities.java:761)
	at org.openide.util.ImageUtilities.getIcon(ImageUtilities.java:534)
	at org.openide.util.ImageUtilities.getIcon(ImageUtilities.java:420)
	at org.openide.util.ImageUtilities.loadImageIcon(ImageUtilities.java:164)
	at org.netbeans.modules.java.api.common.project.ProjectProperties.<clinit>(ProjectProperties.java:121)
	at org.netbeans.modules.java.api.common.classpath.ClassPathSupport.<clinit>(ClassPathSupport.java:103)
	at org.netbeans.modules.java.api.common.classpath.ClassPathModifier.<init>(ClassPathModifier.java:100)
	at org.netbeans.modules.java.j2seproject.J2SEProject.<init>(J2SEProject.java:237)

Reassigning to Java/Project to evaluate the second case...
Comment 6 Tomas Zezula 2012-11-26 14:59:58 UTC
>for 824 ms AWT is blocked in:
>org.netbeans.modules.db.sql.editor.ui.actions.SQLExecutionBaseAction$ContextAwareDelegate.getToolbarPresenter()
>which is waiting for "Repository updater worker" to init a project:
The evaluation is wrong.

1st) RU.worker does not initialise projects, the projects are initialised on demand by ProjectManager.
2nd) The EDT does not wait on RU.worker.
Comment 7 Petr Cyhelsky 2013-01-09 14:02:15 UTC
the EDT is waiting for RU - see the interval in snapshot. It seems the Project manager is creating the project because of repository updater, which needs some resource (icon) which is belonging to some project which needs to be created. Although this happened after user opening project, I am unable to reproduce this behaviour after opening project.
Comment 8 Tomas Zezula 2013-01-09 14:53:31 UTC
Fixed jet-main f0261d7e0bee
CPS.<clinit>() does not call PR.<clinit>() anymore.
Comment 9 Quality Engineering 2013-01-10 03:34:27 UTC
Integrated into 'main-golden', will be available in build *201301100107* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f0261d7e0bee
User: Tomas Zezula <tzezula@netbeans.org>
Log: #215525:EDT waiting for RU worker for 824ms after project open