Chrome Crashes while using Selenium in Python

1,527 views
Skip to first unread message

Shivani Shinde

unread,
Sep 4, 2020, 2:11:21 AM9/4/20
to Selenium Users
Hi all,
I am new to selenium world. I am facing this issue of chrome crashing within 2 seconds of launch with following error:

Message: unknown error: Chrome failed to start: crashed.
  (chrome not reachable)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)



I searched for this issue and found version mismatch is the primary reason. I double-checked it and I have correct versions for Chrome and chromedriver. Weird thing is when I run a standalone selenium script as python3 test.py it executes correctly and chrome does not crash.
But when I run the script from our own python framework, Chrome crashes.

Now, I had run another script 3 months back using same framework and it worked correctly without any such error.

That's why I am confused as to why am I facing such error now. I have tried re-installing framework, Chrome, PyCharm.  I have given +x permissions to chromedriver.

Any kind of help will be appreciated.

Thank you.

CONFIDENTIALITY. This email and any attachments are confidential to Alef Edge Inc., and may also be privileged, except where the email states it can be disclosed. If this email is received in error, please do not disclose the contents to anyone, notify the sender by return email, and delete this email (and any attachments) from your system.

Tibor Száraz

unread,
Sep 7, 2020, 3:16:57 AM9/7/20
to seleniu...@googlegroups.com
Hi,
we have the same problem from time to time.
There are 2 problems for us:
1. a server disk is full
Solution: check the dis sizes (where selenium is executed)
2. the selenium script text contains a hidden character
Solution: Somehow try to make clearer the selenium script text
3. Extensions cause a crash
Solution: Check the default/added extensions of chrome
4. Web driver vs. Chrome
Solution: Try to upgrade/downgrade the chrome/chrome driver
5. Finally do an iterative solution
Try, to increase/decrease the code before you start the driver, which code lines cause the crash (eg. first simple open the chrome without any parameters etc.)

I hope it helps a bit
Best Regards
  Tibor Száraz

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b8d74b45-6761-4cb5-b921-388c05be6b4en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages