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 64498 - Deadlock when opening XML file
Summary: Deadlock when opening XML file
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-15 20:50 UTC by Petr Jiricka
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
console output + thread dump of the deadlock (25.92 KB, text/plain)
2005-09-15 20:52 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2005-09-15 20:50:20 UTC
This deadlock happened to me when opening a XML file. See the attachment.
Comment 1 Petr Jiricka 2005-09-15 20:52:35 UTC
Created attachment 24862 [details]
console output + thread dump of the deadlock
Comment 2 Martin Roskanin 2005-09-16 07:27:58 UTC
it seems that some thread forgot to unlock PriorityMutex...
Comment 3 Miloslav Metelka 2005-09-16 17:12:12 UTC
It's AnnotationView against folds and views (they use the same lock). I'm
wondering whether AnnotationView can use some more internal locking so that it
would not be locked when entering modelToView(). The document model should be
read-locked anyway.
 Added Honza L. to cc if he knows how to resolve.
Comment 4 Jan Lahoda 2005-09-16 17:18:24 UTC
Hm, I have probably introduced this by fix for issue #63402. I will look at it.
Comment 5 Jan Lahoda 2005-09-16 17:33:19 UTC
I will defer clearing the modelToView cache so it is not done under the fold lock.
Comment 6 Jan Lahoda 2005-09-16 17:46:17 UTC
Done in trunk:

Checking in AnnotationView.java;
/cvs/editor/errorstripe/src/org/netbeans/modules/editor/errorstripe/AnnotationView.java,v
 <--  AnnotationView.java
new revision: 1.21; previous revision: 1.20
done