Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Build failing with Cannot start PhantomJS #15490

Open
saadahmedd opened this issue Jan 18, 2023 · 4 comments
Open

Build failing with Cannot start PhantomJS #15490

saadahmedd opened this issue Jan 18, 2023 · 4 comments
Labels

Comments

@saadahmedd
Copy link

Hi All,

My build is failing with below error, i amm atching teh crash dmp as well here. Please help.

build 18-Jan-2023 12:10:25 18 01 2023 12:10:25.579:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
build 18-Jan-2023 12:10:25 18 01 2023 12:10:25.580:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
build 18-Jan-2023 12:10:25 18 01 2023 12:10:25.584:INFO [launcher]: Starting browser PhantomJS
build 18-Jan-2023 12:10:27 18 01 2023 12:10:27.296:ERROR [launcher]: Cannot start PhantomJS
build 18-Jan-2023 12:10:27 PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/7aa82bbc-9c73-d584-2e9b19e8-3b8cfed1.dmp
build 18-Jan-2023 12:10:27
build 18-Jan-2023 12:10:27 18 01 2023 12:10:27.296:ERROR [launcher]: PhantomJS stdout:
build 18-Jan-2023 12:10:27 18 01 2023 12:10:27.296:ERROR [launcher]: PhantomJS stderr: PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/7aa82bbc-9c73-d584-2e9b19e8-3b8cfed1.dmp
build 18-Jan-2023 12:10:27
build 18-Jan-2023 12:10:27 18 01 2023 12:10:27.300:INFO [launcher]: Trying to start PhantomJS again (1/2).
build 18-Jan-2023 12:10:29 18 01 2023 12:10:29.591:ERROR [launcher]: Cannot start PhantomJS
build 18-Jan-2023 12:10:29 PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/56b0e33e-d34c-54b7-00e81d8d-6b08fedb.dmp
build 18-Jan-2023 12:10:29
build 18-Jan-2023 12:10:29 18 01 2023 12:10:29.592:ERROR [launcher]: PhantomJS stdout:
build 18-Jan-2023 12:10:29 18 01 2023 12:10:29.592:ERROR [launcher]: PhantomJS stderr: PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/56b0e33e-d34c-54b7-00e81d8d-6b08fedb.dmp
build 18-Jan-2023 12:10:29
build 18-Jan-2023 12:10:29 18 01 2023 12:10:29.593:INFO [launcher]: Trying to start PhantomJS again (2/2).
build 18-Jan-2023 12:10:31 18 01 2023 12:10:31.893:ERROR [launcher]: Cannot start PhantomJS
build 18-Jan-2023 12:10:31 PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/31ecb29d-fd33-7485-123dcb0b-19b992e7.dmp
build 18-Jan-2023 12:10:31
build 18-Jan-2023 12:10:31 18 01 2023 12:10:31.894:ERROR [launcher]: PhantomJS stdout:
build 18-Jan-2023 12:10:31 18 01 2023 12:10:31.894:ERROR [launcher]: PhantomJS stderr: PhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/31ecb29d-fd33-7485-123dcb0b-19b992e7.dmp
build 18-Jan-2023 12:10:31
build 18-Jan-2023 12:10:31 18 01 2023 12:10:31.895:ERROR [launcher]: PhantomJS failed 2 times (cannot start). Giving up.
build 18-Jan-2023 12:10:31 Warning: Task "karma:unit" failed. Use --force to continue.
build 18-Jan-2023 12:10:31
build 18-Jan-2023 12:10:31 Aborted due to warnings.
build 18-Jan-2023 12:10:31
build 18-Jan-2023 12:10:31

regards,
Saad
152dc25c-a1d3-4c72-1c42a162-2f79da71.txt

@jgonggrijp
Copy link

@saadahmedd The latest stable release of PhantomJS (2.1.1) is 5 years old. The version of Karma that you are using, 1.7.1, is also rather outdated (they are at 6.x nowadays). PhantomJS 3.x is currently in (slow) development, but still unreleased. You should not count on it being released very soon.

I suggest you upgrade Karma and use headless Firefox or headless Chrome instead of PhantomJS for the time being.

@saadahmedd
Copy link
Author

Hi @jgonggrijp ,

Thank You for your response.

When we are running the build in our local it successful but unluckily when we run the build through bamboo it fails with above error. So i am assuming the outdated versions should not be a problem here.

Would there be any possible solution here?

Regards,
Saad.

@jgonggrijp
Copy link

Honestly, I don't know bamboo and I'm not even very familiar with PhantomJS itself, just keeping a tab on the issue tracker as a "fan on hiatus". I probably don't know the answers to your questions.

When you write "I am assuming the outdated versions should not be a problem here" (emphasis mine), where are you referring to by "here"?

What is wrong with upgrading Karma and replacing PhantomJS by another headless browser for the time being?

@safrizal
Copy link

safrizal commented Mar 7, 2023

@saadahmedd, you should try @vitallium version of PhantomJS, v2.5. clone, build (from scratch including Qt+WebKit, about 1 hour) and run. its still have webdriver (ghostdriver) for selenium remote webdriver, run well until now.

in my country, its called Lancar Jaya ...

@stale stale bot added the stale label May 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants