Question

I'm working in a big java project, with about 400 classes. Suddenly I got this error

sun.awt.image.PNGImageDecoder$PNGException: crc corruption
    at sun.awt.image.PNGImageDecoder.getChunk(PNGImageDecoder.java:699)
    at sun.awt.image.PNGImageDecoder.getData(PNGImageDecoder.java:707)
    at sun.awt.image.PNGImageDecoder.produceImage(PNGImageDecoder.java:234)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

There has been a long time that I don't deal with images in this project and I can't see where the error is being caused, as it's not shown in the exception message.

Was it helpful?

Solution

But you have identified the image ? If so, you can check it with pngcheck

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top