Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'
 }
like image 517
Arunprasath Avatar asked Mar 17 '17 11:03

Arunprasath


1 Answers

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

  • PhantomJS Crashing
like image 143
blo0p3r Avatar answered Nov 12 '22 01:11

blo0p3r