Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't read 8 bytes from IO stream #96

Closed
ebds opened this issue Aug 12, 2015 · 7 comments
Closed

Couldn't read 8 bytes from IO stream #96

ebds opened this issue Aug 12, 2015 · 7 comments

Comments

@ebds
Copy link

ebds commented Aug 12, 2015

I have researched a bit about this error message, but haven't found anything.

When using compass I get those error messages:

error_chunky

I don't know what this means... any help appreciated

@wvanbergen
Copy link
Owner

My guess is that you have a PNG file that is less than 8 bytes (which by definition means it is an invalid image, but the error message is not very useful here).

@wvanbergen
Copy link
Owner

Actually, disregard that. It looks like it is some kind of damaged PNG file that is being included in your SCSS. Most likely a file that was improperly truncated for some reason.

Unfortunately, Compass doesn't tell you what file is causing the issue - that is something that should be fixed in Compass though.

@wvanbergen
Copy link
Owner

If you manage to find out what file triggers this, I can look into it a bit more to see what is wrong with it.

@whoisjake
Copy link

I found one!
block

@whoisjake
Copy link

I created it with http://www.piskelapp.com/

@wvanbergen
Copy link
Owner

The problem with this image is that it has 2 null-bytes after the final IEND chunk. So it doesn't conform to the PNG standard, and will fail when it tries to read a chunk from the remaining data.

Even though this image is technically invalid, I think the library should stop reading a stream once it hits the IEND chunk, instead of reading until it hits EOF, which should fix this problem.

@wvanbergen
Copy link
Owner

The fix has been merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants