the app in itself seems to work (but the Quit button that does not do anything) but when i launch it from the console, i got : Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Warning: XawPrintShell: initialize: XpQueryExtension() failed. BAD. i see those first 2 lines also for xedit, xcalc, xclipboard, xditview, xfontsel and xman the third line is unique to this tool
Which Linux distribution do you use ?
gentoo x86, dlloader disabled
Lets try to track down the XawPrintShell issue first: 1. What does $ echo ${XPSERVERLIST} # say ? 2. What's the output of % ls -lad /usr/X11*/lib/libXp.* # ? 3. What's the output of % xplsprinters # ?
echo ${XPSERVERLIST} => this ENV var is empty (for both root & unpriv. user) ============= ls -lad /usr/X11*/lib/libXp.* -rw-r--r-- 1 root root 41568 sep 10 18:53 /usr/X11R6/lib/libXp.a lrwxrwxrwx 1 root root 12 sep 10 18:53 /usr/X11R6/lib/libXp.so -> libXp.so.6.2 lrwxrwxrwx 1 root root 12 sep 10 18:53 /usr/X11R6/lib/libXp.so.6 -> libXp.so.6.2 -rwxr-xr-x 1 root root 34466 sep 10 18:53 /usr/X11R6/lib/libXp.so.6.2 ============= /usr/X11R6/bin/xplsprinters /usr/X11R6/bin/xplsprinters: no printers found for printer spec "". ============= various gentoo specific triggers used to compile it : +xprint +cjk +bitmap-fonts +nls +doc +pam +3dnow +mmx +sse -dlloader (nvidia binary driver won't work if enabled because of unresolved symbols)
Stephane LOEUILLET wrote: > echo ${XPSERVERLIST} => this ENV var is empty (for both root & unpriv. user) OK, so it seems no Xprint server is running (or it is not being annouced to the application - % ps -ef | fgrep Xprt # can be used whether there is really a Xprint server instance running) ... > ls -lad /usr/X11*/lib/libXp.* > -rw-r--r-- 1 root root 41568 sep 10 18:53 /usr/X11R6/lib/libXp.a > lrwxrwxrwx 1 root root 12 sep 10 18:53 /usr/X11R6/lib/libXp.so -> > libXp.so.6.2 > lrwxrwxrwx 1 root root 12 sep 10 18:53 /usr/X11R6/lib/libXp.so.6 -> > libXp.so.6.2 > -rwxr-xr-x 1 root root 34466 sep 10 18:53 /usr/X11R6/lib/libXp.so.6.2 OK, libXp.so is there... :) > ============= > > /usr/X11R6/bin/xplsprinters > /usr/X11R6/bin/xplsprinters: no printers found for printer spec "". ... not surprising since $XPSERVERLIST is empty. The part which confuses me is that "Warning: XawPrintShell: initialize: XpQueryExtension() failed. BAD." should ONLY occur when you try to print on a Xserver which doesn't implement the print extension. In the case of "Xedit" you should even never see this message since there is code in the print dialog which should catch this problem earlier so no XawPrintShell object is instantiated at all. Something weired is going on... ... is Gentoo using any additional patches for the X11R6.8 release ? And: When does the message ""Warning: XawPrintShell: initialize: ..." occur ? At startup or when you hit the "Print" button in Xedit ?
ps -ef | fgrep Xprt root 15472 14491 0 00:06 pts/1 00:00:00 fgrep Xprt so,no Xprt process is running ======= "Warning: XawPrintShell: initialize: XpQueryExtension() failed. BAD." is displayed at start-up. there is no PRINT button displayed (only QUIT/VIEW/SELECT, with QUIT that does nothing) ======= ... is Gentoo using any additional patches for the X11R6.8 release ? yes, it seems there is a quite large patch set applied after decompressing. so it is possible that this is a gentoo specific issue. (65 patches in the 6.8.0 patches tarball) none of those have "print" or "view" or "xp" in their name but we never know
i just did the following a few minutes ago, so xprint service would run at start-up from next reboot rc-update add xprint default /etc/init.d/xprint start and now, it runs : root 16150 16149 0 00:27 pts/0 00:00:00 /usr/X11R6/bin/Xprt -ac -pn -nolisten tcp -audit 4 -fp /usr/share/fonts/default/Type1,/usr/share/fonts/Type1,/usr/share/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Type1,/usr/share/fonts/TTF,/usr/share/fonts/TTF/,/usr/X11R6/lib/X11/fonts/TTF,/usr/share/fonts/100dpi,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi,/usr/share/fonts/75dpi/,/usr/share/fonts/afms,/usr/share/fonts/cyrillic,/usr/share/fonts/default,/usr/share/fonts/ghostscript,/usr/share/fonts/local,/usr/share/fonts/misc,/usr/share/fonts/misc/,/usr/share/fonts/ttf-bitstream-vera,/usr/share/fonts/ukr,/usr/share/fonts/util,/usr/X11R6/lib/X11/fonts/100dpi,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/cyrillic,/usr/X11R6/lib/X11/fonts/local,/usr/X11R6/lib/X11/fonts/ukr,/usr/X11R6/lib/X11/fonts/util,/usr/X11R6/lib/X11/fonts/xawtv :33 but even when xprint is running, viewres would still display the same 3 lines (including the XpQueryExtension() line)
Stephane LOEUILLET wrote: > but even when xprint is running, viewres would still display the same 3 lines > (including the XpQueryExtension() line) BING! I really need more coffee. It's "viewres" ... I was always testing with "xedit" ... my fault... I am seeing the message now, too. I'll take the bug. Right now it seems the message isn't dangerous in this case (but only in this special case...). I have to play around with the Motif print shell class and see how this message can be avoided...
BTW: The messages -- snip -- Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset -- snip -- Simply indicate that one or more fonts in the required encoding cannot be loaded (this is independent from the XmPrintShell issue; likely you are simply missing one or more font dirs in your font path).
Any progress on this ? Got exactly the same problem of Stephane on a Gentoo dist Xorg 6.8.2-r6. viewres, xedit, xcalc, xclipboard, xditview, xfontsel and xman and I think Stephane forgot to try xterm; I got it there, too. See bug 106460 on http://bugs.gentoo.org/show_bug.cgi?id=106460 El Fabre
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
I decided to retest this old bug Seems all problems are gone on current version Well, at least on Ubuntu Gutsy X Window System Version 1.3.0 Release Date: 19 April 2007 X Protocol Version 11, Revision 0, Release 1.3 Build Operating System: Linux Ubuntu (xorg-server 2:1.3.0.0.dfsg-12ubuntu8) Feel free to close
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.