Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phantomjs terminated with signal SIGSEGV #217

Closed
WNLee opened this issue Nov 1, 2015 · 9 comments
Closed

phantomjs terminated with signal SIGSEGV #217

WNLee opened this issue Nov 1, 2015 · 9 comments

Comments

@WNLee
Copy link

WNLee commented Nov 1, 2015

When I run "mocha-phantomjs -R dot /test/file.html",it catch "phantomjs terminated with signal SIGSEGV". What caused this error?

@pavlo
Copy link

pavlo commented Nov 3, 2015

Same issue for me, running mocha-phantomjs on an ElCapitan OSX:

> mocha-phantomjs ./test/client/index.html

phantomjs terminated with signal SIGKILL
npm ERR! Test failed.  See above for more details.

@nathanboktae
Copy link
Owner

mocha-phantomjs is just a thin CLI around phantomjs. If it's being killed you'll need to figure it out with phantomjs. However I see you already asked @WNLee (ariya/phantomjs#13702) and got blown off. I'd try running simple phantomjs examples and seeing if they work. If your on OS X, sometimes there can be issues with decompressing the binary, so you can use upx directly - see ariya/phantomjs#12900

If you need to use phantomjs 2, you can use mocha-phantomjs-core directly.

@WNLee
Copy link
Author

WNLee commented Nov 19, 2015

upx -d phantomjs can fix my problem. Phantomjs can run on my OS X 10.10.5.

@jackocnr
Copy link

I had the same issue on MacOS Sierra. The solution was to tell mocha-phantomjs to use my local (homebrew installed) phantomjs using the -p option.

/path/to/mocha-phantomjs -p /usr/local/bin/phantomjs ...

@sakshij
Copy link

sakshij commented Dec 16, 2016

@WNLee How did upx -d phantomjs fix the problem? What is it supposed to do?

@evamedia
Copy link

@jackocnr can you expand on that, have the two paths, where do I put them?

@jackocnr
Copy link

jackocnr commented Jan 7, 2017

@evamedia you just add that -p option whenever you run mocha-phantomjs. For me that was in package.json, under "scripts".

@akauppi
Copy link

akauppi commented Apr 21, 2017

@jackocnr Your solution works for me, but does the extra -p parameter hurt developers who don't have the phantomjs file in that path?

This issue is closed, which indicates it would be fixed in mocha-phantomjs, but I still need to do the workaround.

macOS 10.12.4
phantomjs 2.1.1 (via HomeBrew)
$ npm list | grep mocha
├─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]

@jackocnr
Copy link

Yes that solution would require all devs to have phantomjs installed in the same path. TBH we ended up switching from mocha-phantomjs to mocha-phantomjs-core which solved the issue for us.

bennypowers pushed a commit to bennypowers/chai-dom that referenced this issue Jul 2, 2017
NOTE: I was unable to test this code due to
nathanboktae/mocha-phantomjs#217 so please
test before merging
bennypowers pushed a commit to bennypowers/chai-dom that referenced this issue Jul 2, 2017
NOTE: I was unable to test this code due to
nathanboktae/mocha-phantomjs#217 so please
test before merging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants