12 Replies Last post: Nov 13, 2006 8:54 AM by Marcus Herou  
Andy DePue Newbie 54 posts since
Jul 23, 2004
Currently Being Moderated

Jan 18, 2006 7:56 PM

IDEA crashes when trying to change font in Ubuntu

I should note that this actually worked at one point, then I did an update to my Ubuntu system and now things just aren't jiving.  IDEA runs pretty well for the most part, except when I go to Settings -> Colors & Fonts.  The "Colors & Fonts" dialog comes up just fine.  I then attempt to click the "..." button in the "Editor Font" section (this button is what pulls up a dialog allowing you to select the editor font), and IDEA crashes out with this:

 

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x9bc4e25b, pid=5811, tid=2612104112
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C  [libfontmanager.so+0x3325b]
#
# An error report file with more information is saved as hs_err_pid5811.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

 

Let me note a few things:

1. The "Appearance" dialog comes up fine!

2. I have seen this issue: http://support.jetbrains.com/kb/entry.jspa?externalID=172&categoryID=4

3. I ran the FontTest program attached to the above issue, and it did not crash and did not have any problems!

 

I also saw another forum thread where someone was having an issue bringing up the "Appearance" dialog - however, again, my appearance dialog comes up fine.

Does anyone have any tips on getting this working in Ubuntu (I updated to Dapper Drake Flight 2)?

 

Thanks,

  Andy

 

Guest
Currently Being Moderated
Jan 18, 2006 8:03 PM in response to: Andy DePue
Re: IDEA crashes when trying to change font in Ubuntu

Hello Andy,

 

AD> I should note that this actually worked at one point, then I did an

AD> update to my Ubuntu system and now things just aren't jiving.  IDEA

AD> runs pretty well for the most part, except when I go to Settings ->

AD> Colors & Fonts.  The "Colors & Fonts" dialog comes up just fine.  I

AD> then attempt to click the "..." button in the "Editor Font" section

AD> (this button is what pulls up a dialog allowing you to select the

AD> editor font), and IDEA crashes out with this:

AD>

AD> #

AD> # An unexpected error has been detected by HotSpot Virtual Machine:

AD> #

AD> #  SIGSEGV (0xb) at pc=0x9bc4e25b, pid=5811, tid=2612104112

AD> #

AD> # Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)

AD> # Problematic frame:

AD> # C  libfontmanager.so+0x3325b

 

One critical detail is missing from your report: Which exactly version of

IDEA are you using? Some fixes relevant to this problem are included in version

5.0.2.

 

--

Dmitry Jemerov

Software Developer

JetBrains, Inc.

http://www.jetbrains.com

"Develop with pleasure!"

 

 

 

Eric Burke Newbie 5 posts since
Aug 20, 2002
Currently Being Moderated
Sep 4, 2006 8:11 PM in response to: Andy DePue
Re: IDEA crashes when trying to change font in Ubuntu

The SwingUtilities.invokeAndWait() is masking a threading bug in your example. The problem is your main() method should not be creating and using Swing components. The simple fix is:

 

public static void main(String[] args) {

    SwingUtilities.invokeLater(new Runnable() {

        public void run() {

            swingSafeMain();

        }

    }

}

 

private static void swingSafeMain() {

  // now you are on the event dispatch thread; ALL swing apps should start this way

}

Guest
Currently Being Moderated
Jan 18, 2006 10:35 PM in response to: Andy DePue
Re: IDEA crashes when trying to change font in Ubuntu

Andy DePue wrote on 19/01/06 05:56:

 

I also saw another forum thread where someone was having an issue bringing up the "Appearance" dialog - however, again, my appearance dialog comes up fine.

Does anyone have any tips on getting this working in Ubuntu (I updated to Dapper Drake Flight 2)?

 

Currently I'd be inclined to say "dapper? good luck"...  dapper is the

EAP of Ubuntu operating systems.

 

I think it'd be better reporting the problem to Ubuntu - find out what

changed in libfontmanager...

 

Guest
Currently Being Moderated
Jan 18, 2006 11:13 PM in response to: Andy DePue
Re: IDEA crashes when trying to change font in Ubuntu

Andy DePue wrote on 19/01/06 08:47:

 

(especially EAP ones) including fonts that the JDK isn't very happy

with.  I should note that libfontmanager is distributed with and

specific to the JDK (see java/jre/lib/i386/libfontmanager.so), so it

is the exact same version that is shipped by Sun and in use by the

 

Ah ok - my bad.  I currently have no problems on Breezy, thou I am

running Mustang as my JDK.  And I don't recall seeing a font called Saab.

 

JDK on all Linux variants. Fortunately for me, I was able to write a

more thorough FontTest which helped me to identify the offensive

fonts on my system.  By removing them, my problem is now solved.

 

Cool..

 

Brett Sealey Newbie 19 posts since
Mar 14, 2003
Currently Being Moderated
Jul 27, 2006 2:33 PM in response to: Andy DePue
Re: IDEA crashes when trying to change font in Ubuntu

For the reference of others who run into this problem.

 

On Dapper the toxic fonts are Rekha-normal and aakar-MagNet these are in the ttf-gujarati-fonts package.

 

To workaround this use:

  sudo apt-get remove ttf-gujarati-fonts

 

Note: that this will harmlessly remove the meta-packages ubuntu-desktop and indic-fontsm.

 

This information should be added to a FAQ somewhere.

 

btw: the JVM failure apparently happens on the next font after the toxic ones. Hence the confusion about which font(s) was causing the failures in the earlier posts. Something to keep in mind if you need to track down other toxic fonts.

Marcus Herou Newbie 1 posts since
Nov 13, 2006
Currently Being Moderated
Nov 13, 2006 8:54 AM in response to: Brett Sealey
Re: IDEA crashes when trying to change font in Ubuntu

Yes!

 

Thanks you guys! I have ripping my hair off (even though I'm bald) for weeks now.

 

I use jcaptcha which randomly changes fonts and eventually then uses a font which the JVM cannot handle and crashes, not good in a production environment.

 

After removing the fonts suggested at least the fonttest finishes without crash.

 

Regards

 

//Marcus Herou

More Like This

  • Retrieving data ...