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 143022 - Deadlock when editing html
Summary: Deadlock when editing html
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on: 131284
Blocks:
  Show dependency tree
 
Reported: 2008-08-06 10:32 UTC by Marek Fukala
Modified: 2009-05-18 10:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The threaddump (17.00 KB, text/plain)
2008-08-06 10:32 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2008-08-06 10:32:00 UTC
When trying to reproduce issue 142910 I run into a deadlock. Threaddump is attached. 

This is a problem of the editor braces matching infrastructure always calling BracesMatcher.findMatch() under document
readlock. I need to access the parser via Source.runUserActionTask() which is however forbidden under document readlock. 

There are duplicate issues #134046 (P2), #137343 (P1) and #131060 (P1). They were mostly closed as duplicates of issue
#131284. The last one was partially fixed and closed.

Now it seems that even after fix of issue #131060 the probability of the problem to happen is not insignificant.
Comment 1 Marek Fukala 2008-08-06 10:32:24 UTC
Created attachment 66652 [details]
The threaddump
Comment 2 Vitezslav Stejskal 2008-08-29 13:15:42 UTC
Marku, could you please review my changes in HTMLBracesMatcher in http://hg.netbeans.org/main/rev/4f9dc43334c1. They
should fix this problem. Thanks
Comment 3 Marek Fukala 2008-09-01 15:38:10 UTC
The changes seems to be ok to me, thanks!

Fixed by the fix of the blocking issue.