Skip to content

Served Images are corrupted #864

Closed
Closed

Description

@englercj

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:

git clone https://github.com/GoodBoyDigital/pixi.js.git -b jshint

Change the Gruntfile karma task to have singleRun: 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)

$ node -v
v0.10.22

$ npm -v
1.3.14

$ npm ls | grep karma
├─┬ karma@0.11.9
├── karma-chrome-launcher@0.1.1
├─┬ karma-coffee-preprocessor@0.1.1
├── karma-firefox-launcher@0.1.2
├── karma-html2js-preprocessor@0.1.0
├── karma-jasmine@0.1.4
├── karma-mocha@0.1.1
├─┬ karma-phantomjs-launcher@0.1.1
├── karma-requirejs@0.2.0
├── karma-script-launcher@0.1.0

This is the last issue blocking me from using karma in pixi, let me know if you need any other information!

Activity

  1. drkibitz commented on Dec 20, 2013

    @drkibitz

    I can confirm that this is broken with all versions of karma following 0.11.5
    Versions prior to and including 0.11.5 are working as expected.

  2. drkibitz commented on Dec 20, 2013

    @drkibitz

    Well... the breakage happened somewhere in this comparison

    76ee886...80637cd

    Something do with caching/preprocessing changes.

  3. drkibitz commented on Jan 12, 2014

    @drkibitz

    Narrowed down to this commit 6e31cb2

  4. added a commit that references this issue on Jan 13, 2014
  5. added 2 commits that reference this issue on Feb 5, 2014
    ca6bc8d
    355994d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions