-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Served Images are corrupted #864
Comments
I can confirm that this is broken with all versions of karma following 0.11.5 |
Well... the breakage happened somewhere in this comparison Something do with caching/preprocessing changes. |
Narrowed down to this commit 6e31cb2 |
drkibitz
added a commit
to drkibitz/karma
that referenced
this issue
Jan 13, 2014
vojtajina
added a commit
that referenced
this issue
Feb 5, 2014
For binary files, we can't cache the content as a string (utf8), we need to use a binary buffer. All the preprocessors are currently implemented to deal with strings, as that makes sense for text files. If we changed preprocessors to deal with buffers then each preprocessor would have to convert the buffer to a string, do the string manipulation and then convert it back to a buffer. I don't think that's worthy as there are no binary preprocessors. This change disables preprocessing of binary files to avoid weird errors. It shows warning. If there is a reasonable use case for preprocessing binary files we can figure out something. Closes #864 Closes #885
vojtajina
added a commit
that referenced
this issue
Feb 5, 2014
For binary files, we can't cache the content as a string (utf8), we need to use a binary buffer. All the preprocessors are currently implemented to deal with strings, as that makes sense for text files. If we changed preprocessors to deal with buffers then each preprocessor would have to convert the buffer to a string, do the string manipulation and then convert it back to a buffer. I don't think that's worthy as there are no binary preprocessors. This change disables preprocessing of binary files to avoid weird errors. It shows warning. If there is a reasonable use case for preprocessing binary files we can figure out something. Closes #864 Closes #885
This was referenced Sep 27, 2018
This was referenced May 25, 2019
1 task
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On windows when I run my karma grunt task, images that are served via karma are corrupted and thus cause some of my tests to fail.
To see this happen you can clone Pixi.js and checkout the jshint branch:
Change the Gruntfile
karma
task to havesingleRun: false
so that the runner will not close and you can use Debug mode. After selecting the Debug button, open this URL in a new tab:http://localhost:9876/base/test/textures/bunny.png
.Notice that firefox reports the image contains errors. The actual image is fine, but the served image is broken. Here are my versions:
Windows 7 x64 (also tested on Windows 8 x64)
This is the last issue blocking me from using karma in pixi, let me know if you need any other information!
The text was updated successfully, but these errors were encountered: