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.
Summary: | EDT waiting for RU worker for 824ms after project open | ||
---|---|---|---|
Product: | editor | Reporter: | Michel Graciano <hmichel> |
Component: | Parsing & Indexing | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PERFORMANCE, RANDOM |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 190731 |
Attachments: | nps snapshot |
Description
Michel Graciano
2012-07-13 15:05:39 UTC
Created attachment 122015 [details]
nps snapshot
*** Bug 215524 has been marked as a duplicate of this bug. *** 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. Performance team please evaluate, I am not sure what is causing the delay. 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... >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.
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. Fixed jet-main f0261d7e0bee CPS.<clinit>() does not call PR.<clinit>() anymore. 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 |