testem: with latest chrome, browser is just exiting
not ok 1 Chrome - error
---
message: >
Error: Browser exited unexpectedly
Non-zero exit code: null
Stderr:
[0428/112152.254909:ERROR:resource_bundle.cc(767)] Failed to load /Applications/Google Chrome.app/Contents/Versions/58.0.3029.81/Google Chrome Framework.framework/Versions/A/resources.pak
Some features may not be available.
Log: |
{ type: 'error', text: 'Error: Browser exited unexpectedly' }
{ type: 'error', text: 'Non-zero exit code: null' }
{ type: 'error',
text: '[0428/112152.254909:ERROR:resource_bundle.cc(767)] Failed to load /Applications/Google Chrome.app/Contents/Versions/58.0.3029.81/Google Chrome Framework.framework/Versions/A/resources.pak\nSome features may not be available.\n' }
anyone have any ideas why this happens?
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 17 (2 by maintainers)
I’m on testem@2.0.0 and I couldn’t get Chrome headless to work locally or on travis until finding @joppa27’s post. Since phantomjs is now unmaintained, it seems like a headless guide that incorporates these flags & packages would be really useful in the README/docs. Do folks agree?
Also crashing with the following output:
Using the following flags:
seeing a similar error in travis: https://travis-ci.org/poteto/ember-pipeline/jobs/223030769
Update @jonathanong got past that error in travis!! Pretty much just copied the packages installed in this image: https://github.com/alpeware/chrome-headless-stable/blob/master/Dockerfile#L8
my travis.yml packages now looks like this: https://github.com/joppa27/ember-pipeline/blob/more-params/.travis.yml#L16-L24
testem.js has these
browser_args: https://github.com/joppa27/ember-pipeline/blob/more-params/testem.jssee the passing run in travis here: https://travis-ci.org/poteto/ember-pipeline/builds/236777062?utm_source=github_status&utm_medium=notification
https://github.com/poteto/ember-pipeline/pull/12
@joppa27 Thanks! I’ve changed my
testem.js:and now it works fine
I’m seeing the same issue when trying to create a screenshot from these instructions https://developers.google.com/web/updates/2017/04/headless-chrome .
I still see this issue, but removing the
--disable-software-rasterizeroption from Chrome seems to fix the issue.I went to
about:gpuin Chrome (with direct launch of Chrome.app and with the testem launcher) and compared the results and I see that the one with testem is launched like this:with --disable-software-rasterizer option in testem config
normal Chrome launch from Applications:
This is kind of confusing because that disable option doesn’t even seem to be passed to Chrome when launching, but maybe this means something more to someone else?
I’m on 76.0.3809.100 on a 13" macbook pro.
--headlessis only supported in Chrome 59 and higher on Linux and macOS. Chrome 58 is not supported (although I seem to recall that it works on Linux).Chrome 59 is currently on the beta channel.