Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 237464

Summary: X font server does not work well with xorg-server 1.5.0
Product: Gentoo Linux Reporter: Michele Alzetta <michele>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexxy, cfalonso, haavardw, jesse, neurolabs.de, oldium.pro
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michele Alzetta 2008-09-12 11:41:05 UTC
Upgrading to xorg-server 1.5.0 caused me a variety of problems in kde, gnome and other apps: kwin not starting in kde; gnome-console crashing, xemacs not starting because it did not find any usable font, etc.

I was using xfs to serve my fonts; if font-alias, font-misc-misc and font-cursor-misc were installed things starting working again IF AND ONLY IF xfs configuration file /etc/X11/fs/config had the paths of all fonts in it EXCEPT /usr/share/fonts/misc.

This fixed the kwin in kde problem, but not the xemacs one, for instance.

SOLUTION:
I then changed my xorg.conf file by adding the font paths in the files section (all of them, INCLUDING /usr/share/fonts/misc) and eliminated my X font server. 

This has fixed all problems. I conclude that the culprit is x11-apps/xfs which does not work well with the new version of xorg-server. This is no longer a problem for me as I don't need xfs, but if xfs exists I imagine that somebody actually does need it for some reason.

Reproducible: Always

Steps to Reproduce:
1.Install xorg-server 1.5.0
2. install x11-apps/xfs
3. configure xorg.conf to use xfs to serve files
4. install all necessary fonts on your system, including font-alias, font-misc-misc and font-cursor-misc
5. install kde-3.5.9
6. add all the necessary paths to /etc/X11/fs/config including /usr/share/fonts/misc
7. /etc/init.d/xfs start
8. startkde
Actual Results:  
kde starts without kwin
xemacs not starting because it finds no usable font
etc. etc.

Expected Results:  
kde starting normally

May I suggest that a warning as to this problem could be added to the relevant ebuilds ?
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-13 15:44:44 UTC
Please post your `emerge --info' too.
Comment 2 Michele Alzetta 2008-09-13 16:02:46 UTC
(In reply to comment #1)
> Please post your `emerge --info' too.
> 

 emerge --info
Portage 2.2_rc8 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1N x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1N-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-glibc2.2.5
Timestamp of tree: Sat, 13 Sep 2008 06:45:05 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="IT_it@euro"
LC_ALL="IT_it@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/jokey /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 amrnb amrwb apache2 arts atlas berkdb blas bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl dbus dga directfb divx divx4linux dovecot-sasl dri dts dv dvb dvd dvdr dvdread eds emboss encode esd evo f77 fam fbcon fetchmail firefox flac font-server fortran gb gcj gdbm gif gimp gimpprint gnome gpm gs gstreamer gtk gtk2 hal http humanities iconv imap innodb ipv6 isdnlog java javascript joystick jpeg jpeg2k kde kerberos lapack ldap leim lesstif libcaca libgda libnotify libwww mad maildir mbox mgetty midi mikmod mmx mmxext mp3 mpeg mudflap multilib music mysql ncurses network nls nptl nptlonly nsplugin nvidia obex ogg opengl openmp oss pam pcre pda pdf perl pic png pop3d portaudio postgres ppds pppd prelude pstricks publishers python qt3 qt3support qt4 quicktime readline realmedia reflection sasl science sdl session slang spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs tcpd tiff timidity tk truetype unicode usb uudeview v4l vcd vim-with-x vorbis xemacs xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev nv vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Ole Langbehn 2008-09-14 11:05:03 UTC
I can't say for sure if this bug bit me, but I had the same problem with kwin not starting after upgrading to xorg-xserver-1.5.0. I'm using xfs.

I already downgraded to 1.4.2 again. If I find the time, I'll try the solution proposed by michele to see if it resolves my problems.
Comment 4 Ole Langbehn 2008-09-14 16:57:14 UTC
I tried the reproduction steps. Removing "misc" font path from the catalogue in xfs didn't help in my case. I even tried to only include 100dpi and 75dpi paths in the catalogue, still kwin did not start.

Removing xfs in xorg.conf and configuring the xfs catalogue as font paths in X solved the problem. I now have the exact same entries in xfs and xorg.conf. With xfs enabled, kwin does not start.

My xorg.conf files section:

Section "Files"
        #FontPath       "unix/:-1"                      # local font server
        FontPath        "/usr/share/fonts/100dpi:unscaled"
        FontPath        "/usr/share/fonts/75dpi:unscaled"
        FontPath        "/usr/share/fonts/misc:unscaled"
        FontPath        "/usr/share/fonts/lfpfonts-fix:unscaled"
        FontPath        "/usr/share/fonts/ttf-bitstream-vera"
        FontPath        "/usr/share/fonts/corefonts"
        FontPath        "/usr/share/fonts/TTF"
        FontPath        "/usr/share/fonts/default"
        FontPath        "/usr/share/fonts/default/ghostscript"
        FontPath        "/usr/share/fonts/terminus"
        FontPath        "/usr/share/fonts/artwiz"
        FontPath        "/usr/share/fonts/Speedo"
        FontPath        "/usr/share/fonts/afms/adobe"
        FontPath        "/usr/share/fonts/arkpandora"
        FontPath        "/usr/share/fonts/arphicfonts"
        FontPath        "/usr/share/fonts/baekmuk-fonts"
        FontPath        "/usr/share/fonts/cheapskatefonts"
        FontPath        "/usr/share/fonts/essays1743"
        FontPath        "/usr/share/fonts/intlfonts"
        FontPath        "/usr/share/fonts/kochi-substitute"
        FontPath        "/usr/share/fonts/lfpfonts-var"
        FontPath        "/usr/share/fonts/sgi-fonts"
        FontPath        "/usr/share/fonts/afms"
        FontPath        "/usr/share/fonts/sharefonts"
        FontPath        "/usr/share/fonts/freefonts"
        FontPath        "/usr/share/fonts/sil-gentium"
        FontPath        "/usr/share/fonts/cyrillic"
        FontPath        "/usr/share/fonts/OTF"
        FontPath        "/usr/share/fonts/ttf-gentium"
        FontPath        "/usr/share/fonts/unifont"
        FontPath        "/usr/share/fonts/urw-fonts"
        FontPath        "/usr/share/fonts/urwvn-fonts"
        FontPath        "/usr/share/fonts/100dpi"
        FontPath        "/usr/share/fonts/75dpi"
        FontPath        "/usr/share/fonts/misc"
        FontPath        "/usr/share/fonts/custom"
        FontPath        "/usr/share/fonts/Type1"
EndSection


My emerge --info:

Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-glibc2.0
Timestamp of tree: Sat, 13 Sep 2008 23:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl acpi alsa apache2 audiofile bash-completion berkdb bluetooth branding bzip2 cairo cddb cdparanoia cdr cjk cli cracklib crypt css cups curl dbus directfb dri dts dv dvd dvdr dvdread eds emboss encode esd evo expat fam fbcon ffmpeg firefox flac fortran ftp gd gdbm geoip gif gimp glut gnome gnuplot gphoto2 gpm gstreamer gtk gtkhtml hal iconv icq idn imagemagick imlib innodb ipod ipv6 isdnlog jabber java java6 javascript jingle jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos latex lcms ldap libcaca libnotify lm_sensors lua lzo mad matroska mhash midi mikmod mime mmx mng mono motif mozilla mp3 mpeg mplayer mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin ocaml ogg opengl openmp pam pcmcia pcre pdf perl pic png posix postgres ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline recode reflection rss ruby samba scanner sdl session sharedmem shorten slang sockets spell spl sqlite sse sse2 ssl startup-notification subversion svg svga sysfs tcl tcpd tetex theora threads tidy tiff truetype unicode usb vcd vhosts vim-syntax vnc vorbis wifi win32codecs wmf wxwindows x86 xcomposite xine xml xorg xosd xpm xprint xsl xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard ps2mouse mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon fbdev vesa fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2008-09-15 17:23:30 UTC
I know there have been some issues where you had to restart xfs, but it looks like you tried that.
Comment 6 Ole Langbehn 2008-09-16 13:18:03 UTC
didn't restart, but rebooted after upgrade to xorg-xserver-1.5.0. I can definitely say that the problem is not fixed by a restart/reboot.
Comment 7 Alexey Shvetsov archtester gentoo-dev 2008-09-16 13:25:33 UTC
(In reply to comment #6)
> didn't restart, but rebooted after upgrade to xorg-xserver-1.5.0. I can
> definitely say that the problem is not fixed by a restart/reboot.
> 
This problem can be *temporaly* resolved by restarting xfs from *running* X session
Comment 8 Alexey Shvetsov archtester gentoo-dev 2008-09-23 19:45:02 UTC
btw it seems that problem is in libFS 
since downgrading it solves that issue
Comment 9 Alexey Shvetsov archtester gentoo-dev 2008-09-29 20:37:15 UTC
In xorg-server-1.5.1 problem still exist
Comment 10 César Fernández 2008-10-15 19:17:51 UTC
Same with xorg-server-1.5.2

Restarting xfs as explained by #7 is the only trick I've found.
Comment 11 Oldrich Jedlicka 2008-10-31 10:10:03 UTC
I've just faced the same problem with xfs (xorg-server 1.5.2), so I've stopped using xfs for now.
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-03-17 13:09:58 UTC
Hrm, I let this one slip through. I think this bug is a dupe of bug 236847 which we fixed a couple weeks ago in xorg-server-1.5.3-r4.

If this is not the case, don't hesitate to reopen this bug or to open a new one.

Thanks

*** This bug has been marked as a duplicate of bug 236847 ***