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

AssertionError: signal killed phantomjs: SIGKILL #7

Open
ivolo opened this issue Mar 4, 2014 · 9 comments
Open

AssertionError: signal killed phantomjs: SIGKILL #7

ivolo opened this issue Mar 4, 2014 · 9 comments
Labels

Comments

@ivolo
Copy link
Owner

ivolo commented Mar 4, 2014

AssertionError: signal killed phantomjs: SIGKILL',
    '    at Console.assert (console.js:102:23)',
    '    at ChildProcess.<anonymous> (scraper/node_modules/phantom/phantom.js:123:21)',
    '    at ChildProcess.EventEmitter.emit (events.js:98:17)',
    '    at Process.ChildProcess._handle.onexit (child_process.js:797:12)' ] }
@ivolo ivolo added the bug label Mar 4, 2014
@mieszko4
Copy link

The same happened to me several times. It seems to happen randomly.
Each time it happens to me after the script which uses phantom is executed for a long time (more than 1h).

What could be the cause?
Does anyone have an idea how it could be debugged?

@ivolo
Copy link
Owner Author

ivolo commented Apr 28, 2014

Boy, I have no idea. what operating system is this running on for you?

@mieszko4
Copy link

debian-7.0-x86_64

Yeah, it is strange. Perhaps it has something to do with OS.

@grigoryvp
Copy link

It can be 'oom killer': with default configuration most of linux boxes will kill process if it uses all system memory and wants more.

@KeinborgMichael
Copy link

same issue ... on "phantom.create(function(ph) {"

AssertionError: signal killed phantomjs: SIGKILL
at Console.assert (console.js:106:23)
at ChildProcess. (/Users/Michael/Sites/bookGenerator/nodejsscripts/node_modules/phantom/phantom.js:152:21)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1067:12)

@oliviermeyer
Copy link

I have the same issue on osx yosemite.
assert.js:92
throw new assert.AssertionError({
^
AssertionError: signal killed phantomjs: SIGKILL
at Console.assert (console.js:102:23)
...

@oliviermeyer
Copy link

Working now on windows 👍
I've added environment variable path : "C:\phantomjs\bin" and removed phantom.exe at th end.
if you inspect phantom.js in phantom folder in node_module : options.binary = options.path + 'phantomjs';extension is ever added.

Don't forget in windows to add option : dnodeOpts: {weak: false}

Working on osx yosemite :
step 1
brew install upx
upx -d bin/phantomjs

step 2 remove node module and do npm install

@brackmayhall
Copy link

Oliver,

I tried this on Yosemite and it doesn't seem to be working. I just keep getting phantomjs is not installed. upx is removing it from my path it seems.

@brackmayhall
Copy link

Make sure this has been handled.

Phantom requires you to have the XCode Command Line Tools installed on your box, or else you will get some nasty errors (xcode not found or make not found). If you haven't already, simply install XCode through the App Store, then install the command line tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants