phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

Program is crashing with Status Code -6.

Open abhisharma7 opened this issue 9 years ago • 6 comments

  1. Which version of PhantomJS are you using? Tip: run phantomjs --version. 2.1.1

  2. What steps will reproduce the problem? I am using PhantomJS inside Scrapy to download Javascript pages. In my opinion this error is because of Memory as more and more pages it crawl this error become more frequent. Its getting timed out or previous connection didn't get closed properly. Can you please confirm the reason for this error code "Status Code : -6 "

  3. Which operating system are you using? AWS Compute( ec2 ) : Ubuntu

  4. Did you use binary PhantomJS or did you compile it from source? Binary, installed using apt-get

abhisharma7 avatar Aug 02 '17 23:08 abhisharma7

any solution?

binqiangsun avatar Aug 22 '17 07:08 binqiangsun

Nope, I kind of given up on PhantomJS..It is not even working with nohup (in background)....Chrome headless browser is also an option but its not available for Linux.

I am trying to figure out the best way to resolve this problem, will let you know if I manage to find out what actually causing this or if I found any alternate way.

abhisharma7 avatar Aug 22 '17 07:08 abhisharma7

@abhisharma7 Chrome headless definitely is available on Linux

twalpole avatar Aug 22 '17 07:08 twalpole

I don't think its like PhantomJS... It will use display library of Python to run it in background. I think speed wise it will be much slower then PhantomJS.

Can you please share any tutorial link which uses Selenium with Chrome Headless browser.

Thank you.

abhisharma7 avatar Aug 22 '17 07:08 abhisharma7

@abhisharma7 Yes it will be slower, and requires chromedriver to use with selenium, but it is currently being maintained/developed unlike PhantomJS. https://intoli.com/blog/running-selenium-with-headless-chrome/ is an article about using it with Python.

twalpole avatar Aug 22 '17 08:08 twalpole

Thank you for this article...really appreciate your help.

Thanks

abhisharma7 avatar Aug 22 '17 08:08 abhisharma7