Arunprasath
Arunprasath

Reputation: 561

PhantomJS has crashed - Fatal Windows exception, code 0xc0000005

We have built a application using EmberJS. We got a failure message when we test the application using ember test. Here I mentioned the error message

OS: Windows 8(64-bit) PhantomJS: 2.1.1

PhantomJS - error
    ---
        message: >
            Error:          
            Non-zero exit code: 3221225477
            Stderr:
             Fatal Windows exception, code 0xc0000005.
            PhantomJS has crashed. Please read the bug reporting guide at
            <http://phantomjs.org/bug-reporting.html> and file a bug report.


        Log: |
            { type: 'error', text: 'Error: Browser exited unexpectedly' }
            { type: 'error', text: 'Non-zero exit code: 3221225477' }
            { type: 'error',
              text: 'Fatal Windows exception, code 0xc0000005.\r\nPhantomJS has crashed. Please read the bug reporting guide at\r\n<http://phantomjs.org/bug-reporting.html> and file a bug report.\r\n'
 }

Upvotes: 8

Views: 5996

Answers (1)

blo0p3r
blo0p3r

Reputation: 6850

I was having a very similar problem running PhantomJS on Windows 10 in the WSL. I have found that:

The crash might be originating in the QT WebSocket handling code.

Setting the Karma transports setting to polling solved my issue and PhantomJS does no longer crash on startup.

In your Karma.conf.js add :

transports: ['polling']

Reference Link

Upvotes: 4

Related Questions