>>>> "P" == P E Jareth Hein
<jareth(a)camelot.co.jp> writes:
P> I (the obtensible author of that mess) have no problems with
P> any PNG images whatsoever... Could you check out the PngSuite
P> images at
http://schaik.com/pngsuite/pngsuite_body.html and
P> tell me which of 'em fails for you?
They all work fine on this CRT display, at 16bpp (so I can get
1024x768; I have an old monitor), but using the same binary of XEmacs
with the display directed to the laptop's LCD over a ssh link, or in
the XEmacs compiled on the laptop displayed locally on its own
display, it crashes.
The first try, using the XEmacs on the laptop, it crashed as soon as
I tried to display the first graphic.
The second try, I decided to use the same binary I tested on the
workstation. I used `slogin' to log in from the laptop, with X
forwarding. When it starts up, the background is striped as I show
in the picture I sent before, and when I used dired to open the
directory where the graphics are stored, it filled the window with
gunk, like before when I was using customize. I noticed that it's in
an itimer for the modeline, I think... Do you see any commonalities?
(In the attached typescript)
P> Could either (or both) of you please send me the output of 'ldd
P> xeamcs' and 'xdpyinfo' please?
P> Also, Karl, didn't you say that it works fine on your desktop
P> machine, but not on your laptop? Could you please list the
P> differences between them for me?
I don't know if this is really any help... the soname of libpng did
not get changed between version 1.0.1 and 1.0.3. Other libs may have
similars... so this listing is of limited value.
I can let you log in to debug, if it will do any good.
#!/bin/sh
for f in $(ldd $1 | awk '{print $3}')
do
ls -l $f*
done
On the desktop box:
lrwxrwxrwx 1 root root 19 Jul 22 06:21 /usr/X11R6/lib/neXtaw/libXaw.so.6
-> ../libneXtaw.so.6.1
lrwxrwxrwx 1 root root 20 Jul 22 05:50 /usr/lib/libcompface.so.1 ->
libcompface.so.1.0.0
-rw-r--r-- 1 root root 16992 Mar 16 13:45 /usr/lib/libcompface.so.1.0.0
lrwxrwxrwx 1 root root 18 Jul 22 05:50 /usr/lib/libtiff.so.3 ->
libtiff.so.3.4.037
-rw-r--r-- 1 root root 218200 Jan 11 1998 /usr/lib/libtiff.so.3.4.037
lrwxrwxrwx 1 root root 15 Aug 5 01:28 /usr/lib/libpng.so.2 ->
libpng.so.2.1.0
-rw-r--r-- 1 root root 171456 Aug 5 01:19 /usr/lib/libpng.so.2.1.0
lrwxrwxrwx 1 root root 17 Jul 22 05:49 /usr/lib/libjpeg.so.6a ->
libjpeg.so.6a.0.0
-rw-r--r-- 1 root root 120928 Jul 7 07:35 /usr/lib/libjpeg.so.6a.0.0
lrwxrwxrwx 1 root root 21 Jul 22 06:02 /usr/local/lib/libgifreader.so.0
-> libgifreader.so.0.0.0
-rw-r--r-- 1 root root 39870 Jul 11 03:16
/usr/local/lib/libgifreader.so.0.0.0
lrwxrwxrwx 1 root root 13 Aug 5 00:42 /usr/lib/libz.so.1 ->
libz.so.1.1.3
-rw-r--r-- 1 root root 55132 Aug 5 00:39 /usr/lib/libz.so.1.1.3
lrwxrwxrwx 1 root root 14 Jul 22 06:21 /usr/X11R6/lib/libXpm.so.4 ->
libXpm.so.4.10
-rw-r--r-- 1 root root 53408 Jan 25 1998 /usr/X11R6/lib/libXpm.so.4.10
lrwxrwxrwx 1 root root 13 Jul 22 06:21 /usr/X11R6/lib/libXmu.so.6 ->
libXmu.so.6.0
-rw-r--r-- 1 root root 70232 Jul 14 01:35 /usr/X11R6/lib/libXmu.so.6.0
lrwxrwxrwx 1 root root 12 Jul 22 06:21 /usr/X11R6/lib/libXt.so.6 ->
libXt.so.6.0
-rw-r--r-- 1 root root 290520 Jul 14 01:35 /usr/X11R6/lib/libXt.so.6.0
lrwxrwxrwx 1 root root 14 Jul 22 06:20 /usr/X11R6/lib/libXext.so.6 ->
libXext.so.6.3
-rw-r--r-- 1 root root 42756 Jul 14 01:35 /usr/X11R6/lib/libXext.so.6.3
lrwxrwxrwx 1 root root 13 Jul 22 06:21 /usr/X11R6/lib/libX11.so.6 ->
libX11.so.6.1
-rw-r--r-- 1 root root 679268 Jul 14 01:35 /usr/X11R6/lib/libX11.so.6.1
lrwxrwxrwx 1 root root 12 Jul 22 06:21 /usr/X11R6/lib/libSM.so.6 ->
libSM.so.6.0
-rw-r--r-- 1 root root 30904 Jul 14 01:35 /usr/X11R6/lib/libSM.so.6.0
lrwxrwxrwx 1 root root 13 Jul 22 06:21 /usr/X11R6/lib/libICE.so.6 ->
libICE.so.6.3
-rw-r--r-- 1 root root 75064 Jul 14 01:35 /usr/X11R6/lib/libICE.so.6.3
lrwxrwxrwx 1 root root 14 Jul 22 05:21 /lib/libdl.so.2 ->
libdl-2.0.7.so
lrwxrwxrwx 1 root root 14 Jul 22 05:21 /lib/libdb.so.2 ->
libdb-2.0.7.so
lrwxrwxrwx 1 root root 16 Jul 22 05:51 /usr/lib/libgdbm.so.1 ->
libgdbm.so.1.7.3
-rw-r--r-- 1 root root 21160 May 22 07:23 /usr/lib/libgdbm.so.1.7.3
-rw-r--r-- 1 root root 242244 Jul 17 07:02 /lib/libncurses.so.3.4
lrwxrwxrwx 1 root root 13 Jul 22 05:21 /lib/libm.so.6 -> libm-2.0.7.so
lrwxrwxrwx 1 root root 13 Jul 22 05:21 /lib/libc.so.6 -> libc-2.0.7.so
lrwxrwxrwx 1 root root 11 Jul 22 05:21 /lib/ld-linux.so.2 ->
ld-2.0.7.so
On the laptop:
lrwxrwxrwx 1 root root 18 Aug 3 08:27 /usr/X11R6/lib/Xaw3d/libXaw.so.6
-> ../libXaw3d.so.6.1
lrwxrwxrwx 1 root root 20 Aug 3 07:49 /usr/lib/libcompface.so.1 ->
libcompface.so.1.0.0
-rw-r--r-- 1 root root 16992 Mar 16 13:45 /usr/lib/libcompface.so.1.0.0
lrwxrwxrwx 1 root root 18 Aug 3 07:49 /usr/lib/libtiff.so.3 ->
libtiff.so.3.4.037
-rw-r--r-- 1 root root 218200 Jan 11 1998 /usr/lib/libtiff.so.3.4.037
lrwxrwxrwx 1 root root 15 Aug 5 01:35 /usr/lib/libpng.so.2 ->
libpng.so.2.1.0
-rw-r--r-- 1 root root 171456 Aug 5 01:19 /usr/lib/libpng.so.2.1.0
lrwxrwxrwx 1 root root 17 Aug 3 07:49 /usr/lib/libjpeg.so.6a ->
libjpeg.so.6a.0.0
-rw-r--r-- 1 root root 120928 Jul 7 07:35 /usr/lib/libjpeg.so.6a.0.0
lrwxrwxrwx 1 root root 21 Aug 3 08:29 /usr/local/lib/libgifreader.so.0
-> libgifreader.so.0.0.0
-rw-r--r-- 1 root root 39878 Jul 31 20:51
/usr/local/lib/libgifreader.so.0.0.0
lrwxrwxrwx 1 root root 13 Aug 5 01:35 /usr/lib/libz.so.1 ->
libz.so.1.1.3
-rw-r--r-- 1 root root 55132 Aug 5 00:39 /usr/lib/libz.so.1.1.3
lrwxrwxrwx 1 root root 14 Aug 3 08:27 /usr/X11R6/lib/libXpm.so.4 ->
libXpm.so.4.10
-rw-r--r-- 1 root root 53408 Jan 25 1998 /usr/X11R6/lib/libXpm.so.4.10
lrwxrwxrwx 1 root root 13 Aug 3 08:27 /usr/X11R6/lib/libXmu.so.6 ->
libXmu.so.6.0
-rw-r--r-- 1 root root 70232 Jul 22 00:33 /usr/X11R6/lib/libXmu.so.6.0
lrwxrwxrwx 1 root root 12 Aug 3 08:27 /usr/X11R6/lib/libXt.so.6 ->
libXt.so.6.0
-rw-r--r-- 1 root root 290520 Jul 22 00:33 /usr/X11R6/lib/libXt.so.6.0
lrwxrwxrwx 1 root root 14 Aug 3 08:27 /usr/X11R6/lib/libXext.so.6 ->
libXext.so.6.3
-rw-r--r-- 1 root root 42756 Jul 22 00:33 /usr/X11R6/lib/libXext.so.6.3
lrwxrwxrwx 1 root root 13 Aug 3 08:27 /usr/X11R6/lib/libX11.so.6 ->
libX11.so.6.1
-rw-r--r-- 1 root root 679268 Jul 22 00:33 /usr/X11R6/lib/libX11.so.6.1
lrwxrwxrwx 1 root root 12 Aug 3 08:27 /usr/X11R6/lib/libSM.so.6 ->
libSM.so.6.0
-rw-r--r-- 1 root root 30904 Jul 22 00:33 /usr/X11R6/lib/libSM.so.6.0
lrwxrwxrwx 1 root root 13 Aug 3 08:27 /usr/X11R6/lib/libICE.so.6 ->
libICE.so.6.3
-rw-r--r-- 1 root root 75064 Jul 22 00:33 /usr/X11R6/lib/libICE.so.6.3
lrwxrwxrwx 1 root root 14 Aug 3 07:01 /lib/libdl.so.2 ->
libdl-2.0.7.so
lrwxrwxrwx 1 root root 14 Aug 3 07:01 /lib/libdb.so.2 ->
libdb-2.0.7.so
lrwxrwxrwx 1 root root 16 Aug 3 07:01 /usr/lib/libgdbm.so.1 ->
libgdbm.so.1.7.3
-rw-r--r-- 1 root root 21160 May 22 07:23 /usr/lib/libgdbm.so.1.7.3
-rw-r--r-- 1 root root 242244 Jul 17 07:02 /lib/libncurses.so.3.4
lrwxrwxrwx 1 root root 13 Aug 3 07:01 /lib/libm.so.6 -> libm-2.0.7.so
lrwxrwxrwx 1 root root 13 Aug 3 07:01 /lib/libc.so.6 -> libc-2.0.7.so
lrwxrwxrwx 1 root root 11 Aug 3 07:01 /lib/ld-linux.so.2 ->
ld-2.0.7.so
`xdpyinfo' on the workstation is:
name of display: :0.0
version number: 11.0
vendor string: The XFree86 Project, Inc
vendor release number: 3320
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 2
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
keycode range: minimum 8, maximum 134
focus: window 0x100010b, revert to Parent
number of extensions: 19
BIG-REQUESTS
DOUBLE-BUFFER
DPMS
LBX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
RECORD
SECURITY
SHAPE
SYNC
XC-APPGROUP
XC-MISC
XFree86-DGA
XFree86-Misc
XFree86-VidModeExtension
XInputExtension
XKEYBOARD
XTEST
default screen number: 0
number of screens: 1
screen #0:
dimensions: 1024x768 pixels (347x260 millimeters)
resolution: 75x75 dots per inch
depths (1): 16
root window id: 0x25
depth of root window: 16 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x21
default number of colormap cells: 64
preallocated pixels: black 0, white 65535
options: backing-store YES, save-unders YES
largest cursor: 64x64
current input event mask: 0x58003d
KeyPressMask ButtonPressMask ButtonReleaseMask
EnterWindowMask LeaveWindowMask SubstructureNotifyMask
SubstructureRedirectMask PropertyChangeMask
number of visuals: 1
default visual id: 0x20
visual:
visual id: 0x20
class: TrueColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 6 bits
... and on the laptop is:
name of display: :0.0
version number: 11.0
vendor string: The XFree86 Project, Inc
vendor release number: 3320
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 2
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 24, bits_per_pixel 24, scanline_pad 32
keycode range: minimum 8, maximum 134
focus: window 0x1400014, revert to Parent
number of extensions: 19
BIG-REQUESTS
DOUBLE-BUFFER
DPMS
LBX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
RECORD
SECURITY
SHAPE
SYNC
XC-APPGROUP
XC-MISC
XFree86-DGA
XFree86-Misc
XFree86-VidModeExtension
XInputExtension
XKEYBOARD
XTEST
default screen number: 0
number of screens: 1
screen #0:
dimensions: 800x600 pixels (271x203 millimeters)
resolution: 75x75 dots per inch
depths (1): 24
root window id: 0x26
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x23
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store YES, save-unders YES
largest cursor: 800x600
current input event mask: 0x58003d
KeyPressMask ButtonPressMask ButtonReleaseMask
EnterWindowMask LeaveWindowMask SubstructureNotifyMask
SubstructureRedirectMask PropertyChangeMask
number of visuals: 1
default visual id: 0x22
visual:
visual id: 0x22
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
P> The problem you mention sounds much like the library bug in
P> libpng1.0.1 which doesn't show up in xv or gimp because they
P> handle conversions between colorspaces and depths internally,
P> instead of using the library's functions.
Upgrading to libpng-1.0.3 fixed the display of the sample png file in
the libpng sources, on the desktop box.