Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2016 13:55:39 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        x11@freebsd.org
Subject:   Help diagosing problem using xv(1) to display PNG images?
Message-ID:  <20160712205539.GB1261@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--P2/AsD9qFFw+Iv3c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I use R (ports/math/R) to run analysis after some A/B testing,
generating sets of reports, as well as graphs saved as PNG files.

I then use less(1) to view the reports and xv(1) to view the graphs.
(I know that xv is ... not the newest, shiniest piece of software in the
world.  But -- until yesterday, anyway -- it has been reliable for me
since before FreeBSD existed.)

Yesterday, the first few images I viewed looked OK, but after I got to a
certain point, xv would claim that the file was "672x672 PNG 24-bit
mode.  Using TrueColor visual." -- but display it as a 1x1 blank image
(geometry confirmed by the window manager).

=46rom that point on, all images displayed as 1x1.

But if I switched the sequence around, the first few images I viewed
(which showed as 1x1 earlier) looked OK, up to a certain point,
when the images all reverted to 1x1 again.

I thought that there was a problem with my R code, or with R itself (as
it had recently been updated).... but I reverted the last couple of
changes to math/R and rebuilt it, to no avail.

Then it occcurred to me that I could subvert a Web browser to view the
images... and they were all fine.  (I subsequently verified that they
were all OK when viewed with gimp(1).)

So the problem appears to be involving something that is in or used by
xv(1) that is not in or used by firefox or gimp (at least, not in the
way that xv does).

I tried rebuilding graphics/png, also to no avail.

xv looks like:
localhost(10.3-S)[30] ldd `which xv`
/usr/local/bin/xv:
        libXext.so.6 =3D> /usr/local/lib/libXext.so.6 (0x80091d000)
        libX11.so.6 =3D> /usr/local/lib/libX11.so.6 (0x800b2e000)
        libjpeg.so.8 =3D> /usr/local/lib/libjpeg.so.8 (0x800e67000)
        libtiff.so.5 =3D> /usr/local/lib/libtiff.so.5 (0x8010c0000)
        libpng16.so.16 =3D> /usr/local/lib/libpng16.so.16 (0x801332000)
        libjasper.so.4 =3D> /usr/local/lib/libjasper.so.4 (0x801567000)
        libz.so.6 =3D> /lib/libz.so.6 (0x8017c5000)
        libm.so.5 =3D> /lib/libm.so.5 (0x8019db000)
        libc.so.7 =3D> /lib/libc.so.7 (0x801c04000)
        libxcb.so.1 =3D> /usr/local/lib/libxcb.so.1 (0x801fb1000)
        librpcsvc.so.5 =3D> /usr/lib/librpcsvc.so.5 (0x8021d0000)
        liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0x8023d9000)
        libjbig.so.2 =3D> /usr/local/lib/libjbig.so.2 (0x802602000)
        libXau.so.6 =3D> /usr/local/lib/libXau.so.6 (0x80280f000)
        libpthread-stubs.so.0 =3D> /usr/local/lib/libpthread-stubs.so.0 (0x=
802a11000)
        libXdmcp.so.6 =3D> /usr/local/lib/libXdmcp.so.6 (0x802c12000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x802e17000)
localhost(10.3-S)[31] ls -ltrT `ldd /usr/local/bin/xv | awk '$2 =3D "=3D>" =
{print $3}'`
-r--r--r--  1 root  wheel    54816 Apr  4 08:20:03 2015 /usr/local/lib/libj=
big.so.2
lrwxr-xr-x  1 root  wheel       25 Aug 31 16:59:49 2015 /usr/local/lib/libp=
thread-stubs.so.0 -> libpthread-stubs.so.0.0.0
lrwxr-xr-x  1 root  wheel       15 Aug 31 17:00:29 2015 /usr/local/lib/libX=
au.so.6 -> libXau.so.6.0.0
lrwxr-xr-x  1 root  wheel       17 Aug 31 17:00:31 2015 /usr/local/lib/libX=
dmcp.so.6 -> libXdmcp.so.6.0.0
lrwxr-xr-x  1 root  wheel       16 Aug 31 17:01:51 2015 /usr/local/lib/libX=
ext.so.6 -> libXext.so.6.4.0
lrwxr-xr-x  1 root  wheel       16 Oct 15 04:34:14 2015 /usr/local/lib/libj=
peg.so.8 -> libjpeg.so.8.0.2
lrwxr-xr-x  1 root  wheel       15 Oct 21 04:18:34 2015 /usr/local/lib/libx=
cb.so.1 -> libxcb.so.1.1.0
lrwxr-xr-x  1 root  wheel       15 Oct 21 04:18:58 2015 /usr/local/lib/libX=
11.so.6 -> libX11.so.6.3.0
lrwxr-xr-x  1 root  wheel       16 Jan  6 04:51:24 2016 /usr/local/lib/libt=
iff.so.5 -> libtiff.so.5.2.4
lrwxr-xr-x  1 root  wheel       18 Feb 21 04:36:06 2016 /usr/local/lib/libj=
asper.so.4 -> libjasper.so.4.0.0
-r--r--r--  1 root  wheel  1646136 Jul 12 04:14:27 2016 /lib/libc.so.7
-r--r--r--  1 root  wheel   184632 Jul 12 04:14:29 2016 /lib/libm.so.5
-r--r--r--  1 root  wheel   168624 Jul 12 04:14:33 2016 /usr/lib/liblzma.so=
=2E5
-r--r--r--  1 root  wheel    37960 Jul 12 04:14:36 2016 /usr/lib/librpcsvc.=
so.5
-r--r--r--  1 root  wheel   102416 Jul 12 04:14:37 2016 /lib/libthr.so.3
-r--r--r--  1 root  wheel    89576 Jul 12 04:14:39 2016 /lib/libz.so.6
lrwxr-xr-x  1 root  wheel       19 Jul 12 09:08:44 2016 /usr/local/lib/libp=
ng16.so.16 -> libpng16.so.16.21.0
localhost(10.3-S)[32]=20

I rebuild FreeBSD daily, and update installed ports daily; above
was running:

FreeBSD g1-252.catwhisker.org 10.3-STABLE FreeBSD 10.3-STABLE #418  r302600=
M/302639:1003505: Tue Jul 12 04:11:56 PDT 2016     root@g1-252.catwhisker.o=
rg:/common/S1/obj/usr/src/sys/CANARY  amd64

My ports are all built under stable/10.  I was able to re-create the
symptoms while running stable/11:

FreeBSD g1-252.catwhisker.org 11.0-BETA1 FreeBSD 11.0-BETA1 #40  r302627M/3=
02639:1100120: Tue Jul 12 03:52:24 PDT 2016     root@localhost:/common/S3/o=
bj/usr/src/sys/CANARY  amd64

(but using the stable/10 ports -- I have ports/misc/compat-10x installed).

(Above times are PDT -- UTC-0700.)

Anyone else see anything like this, or have suggestions for me to help
diagnose the nature of the problem?

Thanks!  I've munged Reply-To to reflect that I do not subscribe
to freebsd-x11@.

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Those who would murder in the name of God or prophet are blasphemous coward=
s.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--P2/AsD9qFFw+Iv3c
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJXhVlLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix
NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XcxUH/2+tNJl0/nxfTfHDPG9A5DB4
fOVQeHWL85jLBkLDyx/AS5pLnSQQkzVO25J7vmMEIyScimcAkQ5DZpt6D9TLx4qB
/Uc+rxtmdCFrxACPUBpaChjGRLi9jNYXevtgB9b7GAU0ZJhjN2kz+eAai9p3nr+I
E4oS4ARvgnL8S54erc0FciMxXH5xoOl/fgvFdAR55UaVRZLEf72jTDbSAirPKIE7
C9Xl85zrjf7UaxO4nETo76+Sks8JFuSGyluilS6PVuIjXMxq0wXQv0Zg2izWoah2
MUrj3ES3jcEQAWNOAlKDz9sGtRZa5lej6DQtoVUDy3WqkxUducZc0GMif6ludLg=
=zSp3
-----END PGP SIGNATURE-----

--P2/AsD9qFFw+Iv3c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160712205539.GB1261>