Summary: | Various x apps (xterm, xfontsel) don't start due to missing fonts | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Shiva Persaud <shivapd> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | bugs.gentoo.org.list, dickey, shivapd, vsync |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://forums.gentoo.org/viewtopic-t-869181.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | strace output for editres |
Description
Shiva Persaud
2011-03-20 23:48:47 UTC
Thought I would mention that I don't see any relevant warnings or errors in Xorg.0.log: # egrep "EE|WW" Xorg.0.log (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 28.440] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) [ 28.473] (II) Loading extension MIT-SCREEN-SAVER [ 29.999] (WW) Warning, couldn't open module xtrap [ 29.999] (EE) Failed to load module "xtrap" (module does not exist, 0) [ 29.999] (WW) Warning, couldn't open module dri [ 29.999] (EE) Failed to load module "dri" (module does not exist, 0) [ 29.999] (WW) Warning, couldn't open module dri2 [ 29.999] (EE) Failed to load module "dri2" (module does not exist, 0) [ 31.852] (WW) Warning, couldn't open module dri2 [ 31.852] (EE) NVIDIA: Failed to load module "dri2" (module does not exist, 0) [ 33.066] (WW) Option "Protocol" requires an string value # And I wanted to mention that Xorg.0.log shows FontPath being set as follows: [ 28.439] (**) FontPath set to: /usr/share/fonts/misc/:unscaled, /usr/share/fonts/75dpi/:unscaled, /usr/share/fonts/100dpi/:unscaled, /usr/share/fonts/100dpi, /usr/share/fonts/75dpi, /usr/share/fonts/cyrillic, /usr/share/fonts/default, /usr/share/fonts/encodings, /usr/share/fonts/misc, /usr/share/fonts/ttf-bitstream-vera, /usr/share/fonts/Type1, /usr/share/fonts/util, /usr/share/fonts/TTF, /usr/share/fonts/corefonts, /usr/share/fonts/freefonts, /usr/share/fonts/inconsolata, /usr/share/fonts/inconsolata-dz, /usr/share/fonts/OTF, /usr/share/fonts/Speedo, /usr/share/fonts/stix-fonts, /usr/share/fonts/terminus, /usr/share/fonts/texcm-ttf, /usr/share/fonts/unifont, /usr/share/fonts/urw-fonts, /usr/share/fonts/misc/, /usr/share/fonts/TTF/, /usr/share/fonts/OTF/, /usr/share/fonts/Type1/, /usr/share/fonts/100dpi/, /usr/share/fonts/75dpi/ [ 28.439] (==) ModulePath set to "/usr/lib/xorg/modules" Also created a new user, logged in as that user and saw the same behavior. I did this to eliminate the possibility that something specific to my account (a config file I modified, etc) was causing this. Thought I should also post relevant packages: $ equery l media-fonts/ [ Searching for all packages in 'media-fonts' among: ] * installed packages [I--] [ ] media-fonts/corefonts-1-r4 (0) [I--] [ ] media-fonts/encodings-1.0.4 (0) [I--] [ ] media-fonts/font-adobe-100dpi-1.0.3 (0) [I--] [ ] media-fonts/font-adobe-75dpi-1.0.3 (0) [I--] [ ] media-fonts/font-adobe-utopia-100dpi-1.0.4 (0) [I--] [ ] media-fonts/font-adobe-utopia-75dpi-1.0.4 (0) [I--] [ ] media-fonts/font-adobe-utopia-type1-1.0.4 (0) [I--] [ ] media-fonts/font-alias-1.0.3 (0) [I--] [ ] media-fonts/font-arabic-misc-1.0.3 (0) [I--] [ ] media-fonts/font-bh-100dpi-1.0.3 (0) [I--] [ ] media-fonts/font-bh-75dpi-1.0.3 (0) [I--] [ ] media-fonts/font-bh-lucidatypewriter-100dpi-1.0.3 (0) [I--] [ ] media-fonts/font-bh-lucidatypewriter-75dpi-1.0.3 (0) [I--] [ ] media-fonts/font-bh-ttf-1.0.3 (0) [I--] [ ] media-fonts/font-bh-type1-1.0.3 (0) [I--] [ ] media-fonts/font-bitstream-100dpi-1.0.3 (0) [I--] [ ] media-fonts/font-bitstream-75dpi-1.0.3 (0) [I--] [ ] media-fonts/font-bitstream-speedo-1.0.2 (0) [I--] [ ] media-fonts/font-bitstream-type1-1.0.3 (0) [I--] [ ] media-fonts/font-cronyx-cyrillic-1.0.3 (0) [I--] [ ] media-fonts/font-cursor-misc-1.0.3 (0) [I--] [ ] media-fonts/font-daewoo-misc-1.0.3 (0) [I--] [ ] media-fonts/font-dec-misc-1.0.3 (0) [I--] [ ] media-fonts/font-ibm-type1-1.0.3 (0) [I--] [ ] media-fonts/font-isas-misc-1.0.3 (0) [I--] [ ] media-fonts/font-jis-misc-1.0.3 (0) [I--] [ ] media-fonts/font-micro-misc-1.0.3 (0) [I--] [ ] media-fonts/font-misc-cyrillic-1.0.3 (0) [I--] [ ] media-fonts/font-misc-ethiopic-1.0.3 (0) [I--] [ ] media-fonts/font-misc-meltho-1.0.3 (0) [I--] [ ] media-fonts/font-misc-misc-1.1.2 (0) [I--] [ ] media-fonts/font-mutt-misc-1.0.3 (0) [I--] [ ] media-fonts/font-schumacher-misc-1.1.2 (0) [I--] [ ] media-fonts/font-screen-cyrillic-1.0.4 (0) [I--] [ ] media-fonts/font-sony-misc-1.0.3 (0) [I--] [ ] media-fonts/font-sun-misc-1.0.3 (0) [I--] [ ] media-fonts/font-util-1.2.0 (0) [I--] [ ] media-fonts/font-winitzki-cyrillic-1.0.3 (0) [I--] [ ] media-fonts/font-xfree86-type1-1.0.4 (0) [I--] [ ] media-fonts/freefonts-0.10-r3 (0) [I--] [ ] media-fonts/inconsolata-20090222 (0) [I--] [ ] media-fonts/stix-fonts-1.0.0-r1 (0) [I--] [ ] media-fonts/terminus-font-4.30 (0) [I--] [ ] media-fonts/texcm-ttf-1.0 (0) [I--] [ ] media-fonts/ttf-bitstream-vera-1.10-r3 (0) [I--] [ ] media-fonts/unifont-1.0-r4 (0) [I--] [ ] media-fonts/urw-fonts-2.4.9 (0) $ equery l x11-base/ [ Searching for all packages in 'x11-base' among: ] * installed packages [I--] [ ] x11-base/xorg-drivers-1.9 (0) [I--] [ ] x11-base/xorg-server-1.9.4 (0) [I--] [ ] x11-base/xorg-x11-7.4-r1 (0) $ equery l x11-apps/ [ Searching for all packages in 'x11-apps' among: ] * installed packages [I--] [ ] x11-apps/appres-1.0.3 (0) [I--] [ ] x11-apps/bdftopcf-1.0.3 (0) [I--] [ ] x11-apps/bitmap-1.0.5 (0) [I--] [ ] x11-apps/editres-1.0.5 (0) [I--] [ ] x11-apps/iceauth-1.0.4 (0) [I--] [ ] x11-apps/listres-1.0.2 (0) [I--] [ ] x11-apps/luit-1.1.0 (0) [I--] [M ] x11-apps/mesa-progs-7.3 (0) [I--] [ ] x11-apps/mkfontdir-1.0.6 (0) [I--] [ ] x11-apps/mkfontscale-1.0.8 (0) [I--] [ ] x11-apps/rgb-1.0.4 (0) [I--] [ ] x11-apps/scripts-1.0.1 (0) [I--] [ ] x11-apps/sessreg-1.0.6 (0) [I--] [ ] x11-apps/setxkbmap-1.2.0 (0) [I--] [ ] x11-apps/showfont-1.0.3 (0) [I--] [ ] x11-apps/smproxy-1.0.4 (0) [I--] [ ] x11-apps/x11perf-1.5.3 (0) [I--] [ ] x11-apps/xauth-1.0.5 (0) [I--] [ ] x11-apps/xbacklight-1.1.2 (0) [I--] [M ] x11-apps/xclock-1.0.3-r1 (0) [I--] [ ] x11-apps/xcmsdb-1.0.3 (0) [I--] [ ] x11-apps/xcursorgen-1.0.4 (0) [I--] [ ] x11-apps/xdpyinfo-1.1.0 (0) [I--] [ ] x11-apps/xdriinfo-1.0.4 (0) [I--] [ ] x11-apps/xev-1.1.0 (0) [I--] [ ] x11-apps/xf86dga-1.0.3 (0) [I--] [ ] x11-apps/xfontsel-1.0.3 (0) [I--] [ ] x11-apps/xgamma-1.0.4 (0) [I--] [ ] x11-apps/xhost-1.0.4 (0) [I--] [ ] x11-apps/xinit-1.3.0-r2 (0) [I--] [ ] x11-apps/xinput-1.5.3 (0) [I--] [ ] x11-apps/xkbcomp-1.2.0 (0) [I--] [ ] x11-apps/xkbevd-1.1.2 (0) [I--] [ ] x11-apps/xkbutils-1.0.3 (0) [I--] [ ] x11-apps/xkill-1.0.3 (0) [I--] [ ] x11-apps/xlsatoms-1.1.0 (0) [I--] [ ] x11-apps/xlsclients-1.1.1 (0) [I--] [ ] x11-apps/xlsfonts-1.0.3 (0) [I--] [ ] x11-apps/xmessage-1.0.3 (0) [I--] [ ] x11-apps/xmodmap-1.0.5 (0) [I--] [ ] x11-apps/xpr-1.0.3 (0) [I--] [ ] x11-apps/xprop-1.2.0 (0) [I--] [ ] x11-apps/xrandr-1.3.4 (0) [I--] [ ] x11-apps/xrdb-1.0.8 (0) [I--] [ ] x11-apps/xrefresh-1.0.4 (0) [I--] [ ] x11-apps/xset-1.2.1 (0) [I--] [ ] x11-apps/xsetmode-1.0.0 (0) [I--] [ ] x11-apps/xsetroot-1.1.0 (0) [I--] [M ] x11-apps/xsm-1.0.1-r1 (0) [I--] [ ] x11-apps/xvinfo-1.1.0 (0) [I--] [ ] x11-apps/xwd-1.0.4 (0) [I--] [ ] x11-apps/xwininfo-1.1.1 (0) [I--] [ ] x11-apps/xwud-1.0.3 (0) $ equery l x11-terms/ [ Searching for all packages in 'x11-terms' among: ] * installed packages [I--] [ ] x11-terms/rxvt-2.7.10-r4 (0) [I--] [ ] x11-terms/xterm-267 (0) $ euses -s fontconfig fontconfig - Support for configuring and customizing font access via media-libs/fontconfig Have you tried anything in that direction? Also, you probably don't need to set font paths in xorg.conf nowadays. Also, you have upgraded gcc to 4.4.5 but not switched to it yet - do it and you will feel better. Run eselect fontconfig list and your days might get even brighter. I've switching to 4.4.5. emerge -ev system and emerge -ev world should be done in a couple hours. Been meaning to do that. I'm not sure which eselect fontconfig option would give me the necessary font. This is what I've got now: $ eselect fontconfig list Available fontconfig .conf files ( * is enabled ): [1] 10-autohint.conf * [2] 10-no-sub-pixel.conf * [3] 10-sub-pixel-bgr.conf [4] 10-sub-pixel-rgb.conf [5] 10-sub-pixel-vbgr.conf [6] 10-sub-pixel-vrgb.conf [7] 10-unhinted.conf [8] 20-fix-globaladvance.conf * [9] 20-unhint-small-dejavu-sans-mono.conf * [10] 20-unhint-small-dejavu-sans.conf * [11] 20-unhint-small-dejavu-serif.conf * [12] 20-unhint-small-vera.conf * [13] 25-unhint-nonlatin.conf [14] 30-metric-aliases.conf * [15] 30-urw-aliases.conf * [16] 40-nonlatin.conf * [17] 42-luxi-mono.conf * [18] 45-latin.conf * [19] 49-sansserif.conf * [20] 50-user.conf * [21] 51-local.conf * [22] 57-dejavu-sans-mono.conf * [23] 57-dejavu-sans.conf * [24] 57-dejavu-serif.conf * [25] 60-latin.conf * [26] 61-stix.conf [27] 65-fonts-persian.conf * [28] 65-khmer.conf [29] 65-nonlatin.conf * [30] 69-unifont.conf * [31] 70-no-bitmaps.conf [32] 70-yes-bitmaps.conf [33] 80-delicious.conf * [34] 90-synthetic.conf * I've got almost every option enabled. Thanks for the help. I'll report back when the gcc upgrade completes but I'm not terribly hopeful there. Created attachment 266879 [details]
strace output for editres
I've attached strace output for editres in case that's helpful in anyway. A couple other datapoints (which may or may not be related to the ultimate solution to this issue) 1. Someone pointed out that the strace output shows that the process attempt to read from /usr/lib/X11/XtErrorDB. That file doesn't exist on my system. 2. http://osdir.com/ml/scm-fedora-commits/2010-12/msg00146.html discusses a patch where libXaw was modified so that attempts to find a given font don't result in the app existing. (In reply to comment #5) > I've switching to 4.4.5. emerge -ev system and emerge -ev world should be done > in a couple hours. Been meaning to do that. <snip> > > Thanks for the help. I'll report back when the gcc upgrade completes but I'm > not terribly hopeful there. I finished migrating to gcc 4.4.5. This issue persists. I noticed that when I start xclock, the same message gets printed but xclock actually starts. xfontsel on the other hand does not: <begin> $ xclock Warning: Unable to load any usable ISO8859 font ^C $ xfontsel Warning: Unable to load any usable ISO8859 font Error: Aborting: no font found $ </begin> Thought I'd share that bit of info as well. I've had the same problem appear for me today on my x86 laptop. I didn't change any USE flags but I am doing an emerge -avuDN world after a few months of stagnancy. Interestingly my home system (amd64 if it matters) did not have this problem, but I may have changed my X.Org setup prior to this. Will compare my xorg.conf files to see if anything sticks out. In the meantime a fix or workaround would be most welcome. Okay, working system at home has a bunch of these files: -rw-r--r-- 1 root root 4364 Dec 26 02:38 timB08-ISO8859-1.pcf.gz -rw-r--r-- 1 root root 14292 Dec 26 02:38 timB08.pcf.gz Leading to the following in fonts.dir: helvB08-ISO8859-1.pcf.gz -adobe-helvetica-bold-r-normal--11-80-100-100-p-60-iso8859-1 helvB08.pcf.gz -adobe-helvetica-bold-r-normal--11-80-100-100-p-60-iso10646-1 Which makes xlsfonts happy (not sure why each shows up twice): -adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso10646-1 -adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso10646-1 -adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso8859-1 -adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso8859-1 On the laptop having the problem, all the ISO8859-1 files are missing, which I guess is the root of the problem and mkfontdir and the X server are behaving properly. Anyone know where those ISO8859-1 files come from? They're not in the distfile and both systems (working and not) are using 1.0.3. (In reply to comment #11) > I've had the same problem appear for me today on my x86 laptop. I didn't > change any USE flags but I am doing an emerge -avuDN world after a few months > of stagnancy. It also appeared for me after an upgrade. I combined my upgrade with a locale change. Just curious: did you modify your locale at all? > Interestingly my home system (amd64 if it matters) did not have > this problem Did you upgrade your amd64 system as well? (In reply to comment #12) > Okay, working system at home has a bunch of these files: > > -rw-r--r-- 1 root root 4364 Dec 26 02:38 timB08-ISO8859-1.pcf.gz > -rw-r--r-- 1 root root 14292 Dec 26 02:38 timB08.pcf.gz Do you know if you had these on our laptop prior to upgrading? > On the laptop having the problem, all the ISO8859-1 files are missing, which I > guess is the root of the problem and mkfontdir and the X server are behaving > properly. I also don't have any files in "/usr/share/fonts/" with "ISO8859-1.pcf.gz" in the file name: $ find . -name \*ISO8859-1.pcf.gz $ (In reply to comment #12) > Okay, working system at home has a bunch of these files: > > -rw-r--r-- 1 root root 4364 Dec 26 02:38 timB08-ISO8859-1.pcf.gz > -rw-r--r-- 1 root root 14292 Dec 26 02:38 timB08.pcf.gz > > Leading to the following in fonts.dir: If you move those missing files to your laptop and run mkfontdir, does the problem go away? Also, can you post the version of the ebuild which provides those files that you have installed in your working system at home? > If you move those missing files to your laptop and run mkfontdir, does the > problem go away? Also, can you post the version of the ebuild which provides > those files that you have installed in your working system at home? Shiva, by finding this post http://www.gossamer-threads.com/lists/gentoo/dev/227658 and with the help of #gentoo I was able to track it down to the font package getting built without any encodings. iamben suggested the nls USE flag, which was disabled on both systems, but the laptop may have a slightly newer underlying package with that behavior. I haven't yet finished rebuilding all the packages nor restart my X11 server but I did rebuild the Adobe ones and smash it on the front of the font path and XEmacs is now happy to start. iamben suggests this to force all fonts packages to use "nls" if you don't want to enable globally (I didn't): cd /usr/portage && for i in media-fonts/*; do echo $i nls >> fonts-nls.use; done I used this approach to only mess with the ones I actually use: ( cd /var/db/pkg && ( for pkg in media-fonts/*{75,100}dpi*; do echo "${pkg}\tnls" | sed -r 's/dpi-[[:graph:]]+/dpi/'; done ) > /tmp/fonts.use ) Either way those should go in your package.use. The best approach is media-fonts/* nls but I'm told that requires Portage 2.2. I can confirm switching on USE=nls for media-fonts/font-adobe-100dpi media-fonts/font-misc-misc works around this problem. Accordingly, this should be a dup of https://bugs.gentoo.org/show_bug.cgi?id=357331 (In reply to comment #16) > iamben suggested the nls USE flag, which > was disabled on both systems That worked for me as well. /etc/make.conf had "-nls -unicode". I removed those and did an "emerge -DNu world" and xterm, xfontsel, editres, etc now work. Thanks for posting that tip; I appreciate it. *** This bug has been marked as a duplicate of bug 357331 *** |