PhantomJS崩溃了 - 致命的Windows异常,代码0xc0000005

Aru*_*ath 6 node.js phantomjs ember.js npm-install

我们使用EmberJS构建了一个应用程序.当我们使用测试应用程序时,我们收到了失败消息ember test.在这里我提到了错误消息

操作系统:Windows 8(64位)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'
 }
Run Code Online (Sandbox Code Playgroud)

blo*_*p3r 4

我在 WSL 中的 Windows 10 上运行 PhantomJS 时遇到了非常类似的问题。我发现:

崩溃可能源自 QT WebSocket 处理代码。

将 Karma 传输设置设置为轮询解决了我的问题,并且 PhantomJS 在启动时不再崩溃。

在您的Karma.conf.js添加中:

transports: ['polling']
Run Code Online (Sandbox Code Playgroud)

参考链接