Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 142798 - Deadlock when changing size of editor font
Deadlock when changing size of editor font
Product: editor
Classification: Unclassified
Component: Settings
All All
: P2 (vote)
: 6.x
Assigned To: issues@editor
Depends on:
  Show dependency treegraph
Reported: 2008-08-04 13:49 UTC by Marian Petras
Modified: 2008-08-23 05:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT

full thread-dump (21.39 KB, text/plain)
2008-08-04 13:50 UTC, Marian Petras

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2008-08-04 13:49:45 UTC
I wanted to change the editor font's size so I did the following:

1) Opened the Options dialogue.
2) Selected category "Fonts & Colors".
3) In the row labelled "Font:", I clicked on the button with ellipsis ([...]).

Immediately after that, the IDE hang.

JStack detected two threads involved in the deadlock - see below.
I will attach a full thread dump (produced with "jstack").

	- waiting to lock <0x8bfb6e48> (a java.util.WeakHashMap)
	at org.netbeans.modules.editor.mimelookup.MimePathLookup.rebuild(
	at org.netbeans.modules.editor.mimelookup.MimePathLookup.beforeLookup(
	- locked <0x892dc390> (a org.netbeans.modules.editor.mimelookup.MimePathLookup)
	at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(
	at org.openide.util.lookup.ProxyLookup$R.computeResult(
	at org.openide.util.lookup.ProxyLookup$R.allInstances(
	at org.openide.util.Lookup.lookupAll(
	at org.netbeans.modules.editor.bracesmatching.MasterMatcher.findFactories(
	at org.netbeans.modules.editor.mimelookup.MimePathLookup.beforeLookup(
	- waiting to lock <0x892dc390> (a org.netbeans.modules.editor.mimelookup.MimePathLookup)
	at org.openide.util.lookup.ProxyLookup.lookup(
	at org.netbeans.modules.editor.deprecated.pre61settings.KeybindingsInjector.afterLoad(
	- locked <0x8c008ef8> (a java.lang.String)

NetBeans 6.5 dev. build 080804, JDK 1.6.0_10-rc-b28, Linux (Ubuntu 8.04) 32-bit, Intel PC, quad-core
Comment 1 Marian Petras 2008-08-04 13:50:23 UTC
Created attachment 66486 [details]
full thread-dump
Comment 2 Vitezslav Stejskal 2008-08-04 14:51:32 UTC
It looks like a problem in KeybindingsInjector. I could not reproduce it though.

Product Version: NetBeans IDE Dev (Build 080804)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/vita/devel/netbeans/main2/nbbuild/testuserdir
Comment 3 Vitezslav Stejskal 2008-08-22 18:04:50 UTC
Should be better now.
Comment 4 Quality Engineering 2008-08-23 05:22:06 UTC
Integrated into 'main-golden', available in build *200808230201* on
User: Vita Stejskal <>
Log: #142798 (fixed): using KitsTracker instead of MimeLookup in KeybindingsInjector

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