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 172057 - AWT thread blocked for 23711 ms.
Summary: AWT thread blocked for 23711 ms.
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
: 172677 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-11 17:10 UTC by abien
Modified: 2009-10-07 16:32 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 157877


Attachments
nps snapshot (36.96 KB, bin/nps)
2009-09-11 17:10 UTC, abien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abien 2009-09-11 17:10:23 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219
OS: Mac OS X, 10.6, x86_64

User Comments:
GUEST: Using the HTML editor in a Java Web JSF project (Facelets).


Maximum slowness yet reported was 23711 ms, average is 14320
Comment 1 abien 2009-09-11 17:10:28 UTC
Created attachment 87513 [details]
nps snapshot
Comment 2 Stanislav Aubrecht 2009-09-14 08:53:00 UTC
two snapshots are from older builds, one is from 090908 which just shows a lot of native painting - closing
please reopen if consistently reproducible in recent builds, thanks
Comment 3 jpleed3 2009-09-14 21:19:38 UTC
I'm experiencing a similar issue: http://statistics.netbeans.org/analytics/exception.do?id=261391

Netbeans blocks frequently when working on a Facelets file, seemingly every time it reexamines the code for 
autocomplete or error checking. It is extremely irritating; the editor is practically useless.

I am using latest nightly build (200909132344) with a fresh user folder.
Comment 4 jpleed3 2009-09-14 21:27:34 UTC
Just for giggles, I tried renaming the file from a .xhtml to a .jspx. Same problem with deadlocking:
http://statistics.netbeans.org/analytics/exception.do?id=261398

Looks like .txt works okay though.
Comment 5 Max Sauer 2009-09-15 09:23:02 UTC
Looks like csl/gsf hints wait for javac in awt. Marku, could you please have a look? Thanks.
Comment 6 Max Sauer 2009-09-15 14:48:20 UTC
Inside org.netbeans.modules.web.jsf.editor.hints.ElChecker.compute(), there is an unneccessary write lock on document, which result in above mentioned 
AWT freeze (see http://statistics.netbeans.org/analytics/exception.do?id=261391 from above).

Please use read lock.
Comment 7 Marek Fukala 2009-09-15 14:59:23 UTC
fixed in web-main#7ae412eebcd4, thanks for the analysis.
Comment 8 Quality Engineering 2009-09-18 22:49:37 UTC
Integrated into 'main-golden', will be available in build *200909181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7ae412eebcd4
User: Marek Fukala <mfukala@netbeans.org>
Log: #172057 - AWT thread blocked for 23711 ms.
Comment 9 Marek Fukala 2009-09-21 12:44:32 UTC
*** Issue 172677 has been marked as a duplicate of this issue. ***