List Info

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




Re: libpng (or zlib?) runtime errors
country flaguser name
United States
2007-02-05 10:42:39
Can you provide an image that produces each error, or a URL
to locate such images?

Is your PowerPC platform 64-bit?

Glenn

 -------------- Original message ----------------------
From: "Tim Conkling" <tconklinggmail.com>
> I've compiled the zlib (version 1.2.3) and libpng
(version 1.2.15) libraries
> for a PowerPC platform that I'm developing for (not the
Mac). I'm having
> trouble loading PNGs. Some images load fine, but others
consistently cause
> the program to abort with one of the following errors:
> 
> "libpng error: invalid literal/lengths set"
> "libpng error: IDAT: CRC error"
> 
> (It appears that the "invalid literal/lengths
set" error is originating in
> zlib, and the CRC error is coming from a CRC check that
libpng is
> performing.)
> 
> The images that are causing these errors load and
display correctly in a
> Windows application that uses libpng, so I know it's
not the images that are
> at fault. Images that *don't* cause my PNG loading code
to break tend to be
> very simple (long runs of color).
> 
> I don't have the ability to run the .configure script
on the platform I'm
> compiling for, so I have to configure third-party
libraries by hand. I'm
> compiling libpng with the following flag set in
pngconf.h:
> 
> #define PNG_READ_BIG_ENDIAN_SUPPORTED
> 
> and I haven't changed anything in zlib's zconf.h.
> 
> I'm using my own memory allocation/deallocation and
file reading functions,
> and I've been careful to supply them to libpng. They've
been tested and are
> used extensively in other areas of my code, so I'm
assuming that they're not
> causing these problems.
> 
> Any ideas on what might be happening here?
> 
> Thanks,
> Tim



------------------------------------------------------------
-------------
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

Re: libpng (or zlib?) runtime errors
user name
2007-02-05 13:02:48
Hi Glenn,

Thanks for the response. This is a 32-bit PowerPC platform. Here are three images -- one that loads correctly, one that produces the CRC error, and one that produces the invalid literal/lengths error:

http://idisk.mac.com/tconkling/Public/IDATCRCError.png
http://idisk.mac.com/tconkling/Public/InvalidLiteralLengthsError.png
http://idisk.mac.com/tconkling/Public/working.png

(The "InvalidLiteralLengthsError.png" file is rather large -- >1MB -- I seem to only get this error on larger files).

Thanks!
Tim

On 2/5/07, glennrpcomcast.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">glennrpcomcast.net < glennrpcomcast.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">glennrpcomcast.net> wrote:
Can you provide an image that produces each error, or a URL to locate such images?

Is your PowerPC platform 64-bit?

Glenn

 -------------- Original message ----------------------
From: "Tim Conkling&quot; < tconklinggmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tconklinggmail.com>
> I've compiled the zlib (version 1.2.3) and libpng (version 1.2.15) libraries
> for a PowerPC platform that I'm developing for (not the Mac). I'm having
&gt; trouble loading PNGs. Some images load fine, but others consistently cause
> the program to abort with one of the following errors:
&gt;
> "libpng error: invalid literal/lengths set"
> "libpng error: IDAT: CRC error";
>
&gt; (It appears that the "invalid literal/lengths set" error is originating in
> zlib, and the CRC error is coming from a CRC check that libpng is
> performing.)
>
>; The images that are causing these errors load and display correctly in a
> Windows application that uses libpng, so I know it's not the images that are
> at fault. Images that *don't* cause my PNG loading code to break tend to be
> very simple (long runs of color).
>
> I don't have the ability to run the .configure script on the platform I'm
&gt; compiling for, so I have to configure third-party libraries by hand. I'm
&gt; compiling libpng with the following flag set in pngconf.h:
>
>; #define PNG_READ_BIG_ENDIAN_SUPPORTED
&gt;
> and I haven't changed anything in zlib's zconf.h.
&gt;
> I'm using my own memory allocation/deallocation and file reading functions,
> and I've been careful to supply them to libpng. They've been tested and are
> used extensively in other areas of my code, so I'm assuming that they're not
> causing these problems.
>
&gt; Any ideas on what might be happening here?
>
> Thanks,
&gt; Tim





---------- Forwarded message ----------
From: ;"Tim Conkling&quot; < tconklinggmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> tconklinggmail.com>
To:&nbsp;" png-mng-implementlists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">png-mng-implementlists.sourceforge.net" < png-mng-implementlists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">png-mng-implementlists.sourceforge.net >
Date: Mon, 5 Feb 2007 16:27:33 +0000
Subject: [png-mng-implement] libpng (or zlib?) runtime errors
I&#39;ve compiled the zlib (version 1.2.3) and libpng (version 1.2.15) libraries for a PowerPC platform that I'm developing for (not the Mac). I'm having trouble loading PNGs. Some images load fine, but others consistently cause the program to abort with one of the following errors:

"libpng error: invalid literal/lengths set"
"libpng error: IDAT: CRC error&quot;

(It appears that the "invalid literal/lengths set" error is originating in zlib, and the CRC error is coming from a CRC check that libpng is performing.)

The images that are causing these errors load and display correctly in a Windows application that uses libpng, so I know it's not the images that are at fault. Images that *don't* cause my PNG loading code to break tend to be very simple (long runs of color).

I don't have the ability to run the .configure script on the platform I'm compiling for, so I have to configure third-party libraries by hand. I'm compiling libpng with the following flag set in pngconf.h :

#define PNG_READ_BIG_ENDIAN_SUPPORTED

and I haven't changed anything in zlib's zconf.h.

I'm using my own memory allocation/deallocation and file reading functions, and I've been careful to supply them to libpng. They've been tested and are used extensively in other areas of my code, so I'm assuming that they're not causing these problems.

Any ideas on what might be happening here?

Thanks,
Tim

-------------------------------------------------------------------------
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&amp;dat=121642

_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-mng-implement


-------------------------------------------------------------------------
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&amp;dat=121642

_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-mng-implement



Re: libpng (or zlib?) runtime errors
country flaguser name
United States
2007-02-05 15:37:09
At 02:02 PM 2/5/2007 -0500, Tim Conkling wrote:
>Hi Glenn,
>
>Thanks for the response. This is a 32-bit PowerPC
platform. Here are three
>images -- one that loads correctly, one that produces
the CRC error, and
>one that produces the invalid literal/lengths error:
>
> http://idisk.mac.com/tconkling/Public/IDATCRCError.png

>http://idisk.mac.com/tconkling/Public/Invali
dLiteralLengthsError.png 
>htt
p://idisk.mac.com/tconkling/Public/working.png

I don't have any experience with PowerPC.

What makefile did you use to build libpng?

Have you verified that after decoding
"working.png" you actually are
getting the correct image?

Glenn

------------------------------------------------------------
-------------
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-3]

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