Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 201412 - Deadlock adding hints
Deadlock adding hints
Product: editor
Classification: Unclassified
Component: Painting & Printing
PC Linux
: P2 (vote)
: 7.1
Assigned To: Miloslav Metelka
Depends on:
  Show dependency treegraph
Reported: 2011-08-29 18:53 UTC by Jesse Glick
Modified: 2011-11-12 16:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

Thread dumps (46.25 KB, text/plain)
2011-08-29 18:53 UTC, Jesse Glick

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-08-29 18:53:24 UTC
Created attachment 110270 [details]
Thread dumps

While testing changes to a UpToDateStatusProviderFactory, I suddenly encountered a deadlock not apparently involving my own code.
Comment 1 Jesse Glick 2011-08-29 19:07:48 UTC
Just happened to me again, apparently at random. I think calling QuietEditorPane.setFont from off EQ is at least part of the problem.
Comment 2 Jesse Glick 2011-08-29 19:26:58 UTC
I tried to put in a hotfix: core-main #401db37afd23; please review.
Comment 3 Quality Engineering 2011-08-30 14:21:21 UTC
Integrated into 'main-golden'
User: Jesse Glick <>
Log: Attempted hotfix for deadlock #201412.
Comment 4 Jan Lahoda 2011-10-10 16:41:15 UTC
Mila, any idea?
Comment 5 Miloslav Metelka 2011-10-18 13:28:58 UTC
It's mine - accessing AWT treelock oustide EDT:

"HintsController worker" daemon prio=10 tid=0x6763ac00 nid=0x115e waiting for monitor entry [0x666f9000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.awt.Component.setFont(
	- waiting to lock <0x7c91cb10> (a java.awt.Component$AWTTreeLock)
	at java.awt.Container.setFont(
	at javax.swing.JComponent.setFont(
	at org.openide.text.QuietEditorPane.setFont(
	at org.netbeans.modules.editor.lib2.view.DocumentViewOp.updateDefaultFontAndColors(
	at org.netbeans.modules.editor.lib2.view.DocumentViewOp.checkSettingsInfo(
	at org.netbeans.modules.editor.lib2.view.DocumentViewOp.checkViewsInited(

I'll fix it.
Comment 6 Miloslav Metelka 2011-11-11 14:22:13 UTC
Comment 7 Quality Engineering 2011-11-12 16:30:08 UTC
Integrated into 'main-golden'
User: Miloslav Metelka <>
Log: #201412 - Deadlock adding hints.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo