I believe this is the same as http://bugs.sun.com/view_bug.do?bug_id=6892485
"Deadlock in SunGraphicsEnvironment / FontManager"

-phil.

Janda Martin wrote:
Today I discovered deadlock on linux when initializing fonts. I tried to run 
World Wind for Java demo applet.

I reported bug to bugs.sun.com. I don't think there will be fast response/fix.

JConsole dealock stacktraces are in attachment. There are several problems.

*) synchronization in 
"sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:425)- locked 
java.lang.str...@39ea58"  against String that can be "intern"

*) several lines above "loadFonts" is simple getter with description that same 
variable used for synchronization can be <null>  -  !!! synchronization can't be with 
null monitor !!!

*) SunGraphicsEnvironment.loadFonts in synchonized block calls native 
sun.font.FontManager.getFontPath - that can lead to deadlock according to "Sun" 
information

*) there is waiting awtLock on javawsApplicationMain and AWT-EventQueue-0 is 
trying to SunGraphicsEnvironment.loadFonts

I hope that this help you fix this problem.

  Martin


Reply via email to