List Info

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




Re: libpng (or zlib?) runtime errors
country flaguser name
United States
2007-02-05 13:41:33
All 3 files look OK to me.  The only unusual thing is that
they each have a single
IDAT chunk, which is very large (1.3MB) in the Invalid*.png
and somewhat large
(51.3kbytes) in the IDAT*.png.

Can your application read
http://www.simplesystems.org/users/glennrp/conkli
ng/IDAT_pc.png
http://www.simplesystems.org/users/glennrp/con
kling/Invalid_pc.png

I used pngcrush to split the IDAT chunks down to 8192 bytes
in these files.

Glenn

 -------------- Original message ----------------------
From: "Tim Conkling" <tconklinggmail.com>
> 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
>[...]


------------------------------------------------------------
-------------
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:50:55
Both files still produce errors, although the "Invalid_pc"; file now gives me the "IDAT: CRC error"; instead of the zlib "invalid literal/lengths" error.

Is it possible that I've just missed some preprocessor flag somewhere? Does libpng work properly on the PowerPC? I'm using the exact same loading code with the same images on a Windows x86 machine, and having no problems.

Thanks for your help!
Tim

On 2/5/07, glennrpcomcast.net">glennrpcomcast.net < glennrpcomcast.net">glennrpcomcast.net > wrote:

All 3 files look OK to me.  The only unusual thing is that they each have a single
IDAT chunk, which is very large (1.3MB) in the Invalid*.png and somewhat large
(51.3kbytes) in the IDAT*.png.

Can your application read
http://www.simplesystems.org/users/glennrp/conkling/IDAT_pc.png
http://www.simplesystems.org/users/glennrp/conkling/Invalid_pc.png

I used pngcrush to split the IDAT chunks down to 8192 bytes in these files.

Glenn

&nbsp;-------------- Original message ----------------------
From: "Tim Conkling&quot; < gmail.com">tconklinggmail.com>
> Hi Glenn,
>;
> Thanks for the response. This is a 32-bit PowerPC platform. Here are three
&gt; 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
>[...]




---------- Forwarded message ----------
From: ;"Tim Conkling&quot; < tconklinggmail.com">tconklinggmail.com>
To:&nbsp;"Discussions about PNG and MNG programming issues, including development and use of libpng and libmng&quot; < png-mng-implementlists.sourceforge.net">png-mng-implementlists.sourceforge.net>
Date: Mon, 5 Feb 2007 19:03:12 +0000
Subject: Re: [png-mng-implement] libpng (or zlib?) runtime errors
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).
>
&gt; 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.
>
> 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




-------------------------------------------------------------------------
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&amp;kid=120709&bid=263057&dat=121642

_______________________________________________
png-mng-implement mailing list
lists.sourceforge.net"> 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&amp;kid=120709&bid=263057&dat=121642

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



[1-2]

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