Bug 1325 - viewres : XawPrintShell init problem
Summary: viewres : XawPrintShell init problem
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: 6.8.0
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Roland Mainz
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-10 11:59 UTC by Stéphane Loeuillet
Modified: 2009-09-01 05:55 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Stéphane Loeuillet 2004-09-10 11:59:22 UTC
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
Comment 1 Roland Mainz 2004-09-10 13:04:43 UTC
Which Linux distribution do you use ?
Comment 2 Stéphane Loeuillet 2004-09-10 13:47:41 UTC
gentoo x86, dlloader disabled
Comment 3 Roland Mainz 2004-09-10 13:59:30 UTC
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 # ?
Comment 4 Stéphane Loeuillet 2004-09-10 14:42:36 UTC
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)
Comment 5 Roland Mainz 2004-09-10 14:57:39 UTC
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 ?
Comment 6 Stéphane Loeuillet 2004-09-10 15:15:49 UTC
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
Comment 7 Stéphane Loeuillet 2004-09-10 15:29:00 UTC
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)
Comment 8 Roland Mainz 2004-09-10 16:07:49 UTC
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...
Comment 9 Roland Mainz 2004-09-10 16:09:30 UTC
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).
Comment 10 El Fabre 2005-10-06 17:32:42 UTC
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

Comment 11 Daniel Stone 2007-02-27 01:24:06 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 12 Stéphane Loeuillet 2007-10-20 01:47:32 UTC
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.