X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 3552
Current serial number in output stream: 3570
J'ai vérifier le fichier de configuration /usr/X11R6/lib/X11/app-defaults/XnView et toutes les fonts indiquées sont bien présentes sur ma machine.
J'ai donc mené mon investigation (détournement de xfs et écoute par tcpdump).
J'ai découvert qu'il demande la police:
Not sure if I can be of any help, but trying to be:
I installed all versions of XnView for *nix (1.68.1 static, 1.68.1 openmotif, 1.5 lesstif), all installed fine and started fine as well. When opening any dialog, all of them exit with the same error message Remi mentioned above. Modifying or even deleting /usr/X11R6/lib/X11/app-defaults/XnView did not help or change anything.
My system configuration (Fedora CORE 3):
uname -a
Linux localhost 2.6.9-1.678_FC3 #1 Mon Nov 15 18:28:07 EST 2004 i686 athlon i386 GNU/Linux
Here is a solution which work fine for me on Fedora Core 3 and xorg-6.8.1
1/ download old fonts packages from xorg-6.7.0 used on Fedora Core 2
2/ extract lucidatypewriter (lutRS12-ISO8859-1.pcf.gz)
3/ install it
4/ run XnView and enjoy it.
5/ wait for next Un*x release of XnView
Thank you very much Remi. I did as you said, it didn't work immediately, but after a reboot all worked like a charm. Now I am at 5/
And @ Pierre: Thank you very much for this great program. I am not too long with Linux yet (less than a year), but I did try several picture viewers already. I cannot say all are "bad", but XnView seems to have a lot more features than most. I really like it a lot.
So once more thanks, and I am stuck at 5/ for now.
Since I noticed some Gentoo users having the same issue, here's the Gentoo-ish way of doing it. :) Should apply for anyone else with a non-RPM based distro, just substitute the mkfontdir step from Remi's and paths from your distro.
Download said font package. I found it off Google. Specifically, here.
(I use sudo, which is why I chown it.. you'll still want to chmod, though!)
Now restart X. You won't have to reboot, but can if it just makes you happy. XFS normally re-scans on setup, so reboot if you want to skip the mkfontsdir step.
And there you have it. With any luck, you'll be back to running XnView like before. :)
If you don't run XFS.. good luck, you're on your own. ^^;
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
EndSection
Thats it, now xnview 1.50 works fine on my System.
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
EndSection
did you just add the last two lines? i just downloaded the linux version and got the same error. my xorg.conf looks similar though except for the last two lines...
maybe it's useful to post the complete message i get, when it crashes - for example if when converting a picture. i hope somebody can help, because xnview is probably the best viewer. i had a copy on my windows machine and was so happy, when i read it's also available for unix systems!
** XnView v1.68.1 Copyright 1991-2004 Pierre-E Gougelet (Feb 17 2004/13:52:01) *
*
Version for Linux x86/Motif (All rights reserved)
** This is freeware software (for non commercial use)
Type xnview -help, for more information
Warning: locale not supported by C library, locale unchanged
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 4706
Current serial number in output stream: 4769
Remi wrote:Here is a solution which work fine for me on Fedora Core 3 and xorg-6.8.1
1/ download old fonts packages from xorg-6.7.0 used on Fedora Core 2
2/ extract lucidatypewriter (lutRS12-ISO8859-1.pcf.gz)
3/ install it
4/ run XnView and enjoy it.
5/ wait for next Un*x release of XnView
which copy the missing font in the X font repository and update the
directory files.
4. Delete your temporary directory.
5. Restart your X server, which typically means ending the current session
(logging out) and starting a new one (logging in), without rebooting the
machine necessarily.
Many thanks to all the guys who did the hard work of figuring out what was wrong.
SuSE 9.2 users, do a YaST Online Update and select the updates for the packages "xorg-x11-fonts-75dpi" and "xorg-x11-fonts-100dpi". I don't know if both are necessary, but it does no harm. The missing fonts are in these packages. All future versions from SuSE 9.3 on should include them by default again.