We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › loadImage (PNG)  produces Exception
Page Index Toggle Pages: 1
loadImage (PNG)  produces Exception (Read 798 times)
loadImage (PNG)  produces Exception
Oct 29th, 2005, 2:01pm
 
I am loading a PNG 20 times per second, sometimes I get this error, when the image is not written completly (I assume):

java.util.zip.ZipException: unknown compression method
at java.util.zip.InflaterInputStream.read(Unknown Source)

and just NOW while I am writing this, I got the following error:
sun.awt.image.PNGImageDecoder$PNGException: crc corruption
at sun.awt.image.PNGImageDecoder.getChunk(Unknown Source)

I think its not a Processing error, but I am surprised since  I am doing this in a try statement, so I would expect it not to throw the exception. Is there a secure way to check if the file is entirly written (is not being written by Java, so its hard to check from the other side...
Re: loadImage (PNG)  produces Exception
Reply #1 - Oct 30th, 2005, 1:33am
 
right, i don't think this is a processing error, so it doesn't go in the bugs section.
Page Index Toggle Pages: 1