List Info

Thread: Re: libpng (or zlib?) runtime errors




Re: libpng (or zlib?) runtime errors
country flaguser name
United States
2007-02-05 16:37:08
> Is it possible that I've just missed some preprocessor
flag somewhere? Does
> libpng work properly on the PowerPC?

Yup, at least older releases.  It's possible a bug got
introduced into
a newer one.

You could also try pngcheck with zlib support.  Version 2
tests IDATs
regardless of the verbosity level, and the PNG-parsing part
is completely
independent of libpng.

That said, pngcheck reports no issues with the two you
posted, so that's
independent verification that the images and zlib are
working OK:

% pngcheck -vv I*png
File: IDATCRCError.png (51497 bytes)
  chunk IHDR at offset 0x0000c, length 13
    400 x 300 image, 24-bit RGB, non-interlaced
  chunk gAMA at offset 0x00025, length 4: 0.45000
  chunk tEXt at offset 0x00035, length 25, keyword:
Software
  chunk IDAT at offset 0x0005a, length 51387
    zlib: deflated, 32K window, maximum compression
    zlib line filters (0 none, 1 sub, 2 up, 3 avg, 4
paeth):
      1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 4 4 4 4
      4 4 4 4 4 1 1 4 1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
      4 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3
      3 3 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3
      3 3 3 3 3 3 3 4 4 4 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4
      4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
      4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
      4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
      4 4 4 4 4 4 4 4 4 4 2 4 2 4 4 4 4 4 4 4 4 4 4 4 4
      4 4 4 4 4 4 4 4 4 4 4 3 4 4 3 4 3 3 1 1 1 1 1 1 1
      1 1 1 1 1 1 1 1 1 1 1 1 4 1 4 4 4 4 4 4 4 1 1 4 2
      (300 out of 300)
  chunk IEND at offset 0x0c921, length 0
No errors detected in IDATCRCError.png (5 chunks, 85.7%
compression).

File: InvalidLiteralLengthsError.png (1305528 bytes)
  chunk IHDR at offset 0x0000c, length 13
    800 x 600 image, 24-bit RGB, non-interlaced
  chunk gAMA at offset 0x00025, length 4: 0.45000
  chunk tEXt at offset 0x00035, length 25, keyword:
Software
  chunk IDAT at offset 0x0005a, length 1305418
    zlib: deflated, 32K window, maximum compression
    zlib line filters (0 none, 1 sub, 2 up, 3 avg, 4
paeth):
      4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
      (600 out of 600)
  chunk IEND at offset 0x13ebb0, length 0
No errors detected in InvalidLiteralLengthsError.png (5
chunks, 9.3% compression).

No errors were detected in the 2 files tested.

> I'm using the exact same loading code
> with the same images on a Windows x86 machine, and
having no problems.

What compiler?  If you're using MSVC, be aware that it
(reportedly) does
some things to make nominally invalid code work OK; the one
that comes to
mind is zeroing out malloc'd memory, but there were others. 
(You could
try running your PPC app under valgrind, assuming you have a
Unix-like OS;
it does a pretty good job of catching memory-related
problems.)

Other than that, it's possible the pngconf.h big-endian flag
has something
to do with it, but I'm speculating...  You could use either
pngtest or
rpng/rpng2 to check whether it's a libpng issue or an app
issue.

Greg

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )