GNOME Bugzilla – Bug 98672
Make pango-fontset.cI print a warning when no fonts are present
Last modified: 2004-12-22 21:47:04 UTC
I just downloaded and compiled GARNOME 0.18.3. The compilation process went fine, but GNOME fails to start. It's worth noting that GARNOME 0.13.0 is also installed on this machine (as a different user), and it's working fine. I believe that Pango is the culprit, due to what appears on standard error when I "startx": ** (gnome-session:4190): CRITICAL **: file pango-fontset.c: line 84 (pango_fontset_get_font): assertion `fontset != NULL' failed I'll attach the complete error log shortly.
Created attachment 12334 [details] The file generated by "startx 2> X_ERR"
I've found the solution to the problem [1]. There wasn't a valid font cache file. I simply ran fc-cache (as root), and GNOME started up normally. Shouldn't Pango at least generate a more informative error message? In retrospect, it sounds reasonable that fontset == NULL, as it couldn't find the cache. Why not simply generate the cache if it cannot be found? Note, though, that I know next to nothing about fontconfig; thus, take everything I say with a grain of salt. :-) I'm leaving this bug open for now. Please close it if you feel that the error messages being printed to the console are sufficient. [1] http://mail.gnome.org/archives/garnome-list/2002-October/msg00280.html
Note that the fc-cache problem is probably indicative of a bug in your fontconfig; there is a fairly serious bug in fontconfig-2.0 in this area. But you probably could also reproduce this by other misconfiguration.
*** Bug 100509 has been marked as a duplicate of this bug. ***
Sat Dec 7 01:05:25 2002 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.cI (pango_fc_font_map_get_patterns): Print out an informative error message and exit(1) if no fonts are found. (#98672) With the error message being: g_printerr ("No fonts found; this probably means that the fontconfig\n" "library is not correctly configured. You may need to\n" "edit the fonts.conf configuration file. More information\n" "about fontconfig can be found in the fontconfig(3) manual\n" "page and on http://fontconfig.org\n");
*** Bug 100801 has been marked as a duplicate of this bug. ***