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 169806 - 21s in csl.navigation.OpenAction
Summary: 21s in csl.navigation.OpenAction
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: mslama
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-04 11:48 UTC by dynamite
Modified: 2009-08-25 02:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 154839


Attachments
nps snapshot (61.04 KB, bin/nps)
2009-08-04 11:48 UTC, dynamite
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2009-08-04 11:48:13 UTC
Build: NetBeans IDE Dev (Build 090803)
VM: OpenJDK Client VM, 14.0-b08, OpenJDK Runtime Environment, 1.6.0_0-b14
OS: Linux, 2.6.28-14-generic, i386

User Comments:
dynamite: I was trying to scroll up through a Groovy file in NetBeans running on Ubuntu 9.04.


Maximum slowness yet reported was 21607 ms, average is 21607
Comment 1 dynamite 2009-08-04 11:48:48 UTC
Created attachment 85757 [details]
nps snapshot
Comment 2 mslama 2009-08-04 15:22:04 UTC
Parsing groovy file.
Comment 3 Petr Hejl 2009-08-05 15:36:09 UTC
Real issue is with EDT waiting for parser. Groovy parser is slow, but that is not an excuse for wait in EDT.
Comment 4 mslama 2009-08-07 13:15:58 UTC
Popup menu was invoked. Profiler does not show time spend in AWT by waiting on lock. I am afraid in such case only
solution is to show wait cursor when someone wants synchronously some result from parser but parsing is not yet done.
Comment 5 mslama 2009-08-20 17:08:43 UTC
I have fix when parser is blocked open action is not blocked and location is set to -1. If it happens that OpenAction is
invoked on opened file cursor position does not change. If file is not yet opened file is opened at beginning. It is
because element location is not available when parser is running. It is current design.
Comment 6 mslama 2009-08-20 17:11:04 UTC
jet-main #7f6b67556470
Comment 7 Quality Engineering 2009-08-25 02:43:07 UTC
Integrated into 'main-golden', will be available in build *200908242212* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7f6b67556470
User: Marek Slama <mslama@netbeans.org>
Log: #169806: Do not block AWT by OpenAction when parsing is in progress.