PhantomJS has crashed - Fatal Windows exception, code 0xc0000005

只谈情不闲聊 提交于 2019-12-10 13:15:23

问题


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'
 }

回答1:


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


来源:https://stackoverflow.com/questions/42857010/phantomjs-has-crashed-fatal-windows-exception-code-0xc0000005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!