Red Hat Bugzilla – Bug 242350
Nautilus crashes when application font size set to 7
Last modified: 2007-11-30 17:12:06 EST
Description of problem:
When Application Font size is set to 7 (via ), Nautilus crashes. Chosen font is
DejaVu Sans Book, but crashes with any other.
Also, when font size is set to 7.3 and font is DejaVu Sans Book, visible font
size is still 8. It used to work properly in FC6. Work ok with different fonts.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open System -> Preferences -> Look & feel -> Font
2. Select Application Font
3. Set font size to 7 and confirm
Font size set properly.
After crash, I have found some debug output in my ~ (attached).
Created attachment 156024 [details]
Nautilus debug output
I could reproduce the bug using: Gnome 2.18.2, Nautilus 2.18.1-2.fc7 and Pango
I think the same bug is reported at gnome:
*** Bug 243943 has been marked as a duplicate of this bug. ***
Confirmed on Gnome 2.18.3, Nautilus 2.18.3-1.fc7
The error is being generated from eel's
eel_pango_font_description_get_largest_fitting_font_size function. The function
is passed a minimum font size and a maximum, but it will return an error if the
maximum is smaller than the minimum. Since the minimum font size appears to be
8, a size of 7 will cause the function to return an error. Then, when Nautilus
calls Pango to set the font size, it crashes, because Nautilus is passing Pango
an error value as the arguments.
The call to the function can be found at line 371 of
src/nautilus-sidebar-title.c, from Nautilus SVN.
Thanks for tracking this down.
Fixed in 2.20.0-3.fc8