Skip to content

Chrome crashed in undetected-chromedriver mode #1586

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

Closed
M-Zubair10 opened this issue Oct 31, 2022 · 12 comments · Fixed by #1592
Closed

Chrome crashed in undetected-chromedriver mode #1586

M-Zubair10 opened this issue Oct 31, 2022 · 12 comments · Fixed by #1592
Assignees
Labels
external Outside SeleniumBase's scope. / Ask somewhere else. not enough info not enough info / more info needed UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode workaround exists You can reach your destination if you do this...

Comments

@M-Zubair10
Copy link

Getting this error in seleniumbase with uc while it works fine with chromedriver simple or undetected-chromedriver

(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55a9f2ec9693
#1 0x55a9f2cc2b0a
#2 0x55a9f2ce7ef2
#3 0x55a9f2ce31f4
#4 0x55a9f2d1e953
#5 0x55a9f2d18743
#6 0x55a9f2cee533
#7 0x55a9f2cef715
#8 0x55a9f2f197bd
#9 0x55a9f2f1cbf9
#10 0x55a9f2efef2e
#11 0x55a9f2f1d9b3
#12 0x55a9f2ef2e4f
#13 0x55a9f2f3cea8
#14 0x55a9f2f3d052
#15 0x55a9f2f5771f
#16 0x7f737ab4f6db

@mdmintz mdmintz changed the title Chrome crash Chrome crashed in undetected-chromedriver mode Oct 31, 2022
@mdmintz
Copy link
Member

mdmintz commented Oct 31, 2022

Could be ultrafunkamsterdam/undetected-chromedriver#353
Could be ultrafunkamsterdam/undetected-chromedriver#137
Could be ultrafunkamsterdam/undetected-chromedriver#118
Could be ultrafunkamsterdam/undetected-chromedriver#123

I need more info to debug. What OS & version? Are you trying to open up more browsers than available CPUs? Are you changing any other configuration? It works for me with default configuration.

@mdmintz mdmintz added external Outside SeleniumBase's scope. / Ask somewhere else. not enough info not enough info / more info needed labels Oct 31, 2022
@M-Zubair10
Copy link
Author

M-Zubair10 commented Oct 31, 2022 via email

@mdmintz mdmintz added the workaround exists You can reach your destination if you do this... label Nov 2, 2022
@mdmintz
Copy link
Member

mdmintz commented Nov 2, 2022

I'll have updates in seleniumbase 4.7.1 that should solve that issue. I'm working on completing that.

@M-Zubair10
Copy link
Author

M-Zubair10 commented Nov 2, 2022 via email

@M-Zubair10
Copy link
Author

M-Zubair10 commented Nov 2, 2022 via email

@mdmintz
Copy link
Member

mdmintz commented Nov 2, 2022

@M-Zubair10

For changing the ip of the browser, run tests using:

pytest --proxy=server:port

Or authenticated:

pytest --proxy=user:pass@server:port

You can use test parameterization to turn one test into many: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/parameterized_test.py

And you can spin up new drivers with proxy settings during tests, eg:

self.get_new_driver(uc=True, proxy="server:port")

If using --wire mode, you can change your proxy in the middle of the test:

self.set_wire_proxy("server:port")  # Requires "--wire"!

But note that you cannot use both --uc and --wire at the same time. Pick one.

@M-Zubair10
Copy link
Author

M-Zubair10 commented Nov 2, 2022 via email

@mdmintz
Copy link
Member

mdmintz commented Nov 2, 2022

If there are multiple addresses attached to a virtual machine, then maybe you can use the proxy settings to switch to each one individually. I'm not sure about browsers magically picking up the proxy for each of those unless you set it to use it.

@M-Zubair10
Copy link
Author

M-Zubair10 commented Nov 2, 2022 via email

@mdmintz
Copy link
Member

mdmintz commented Nov 2, 2022

I would try searching Stack Overflow. If you have a specific ip address already for setting a browser's proxy to, then it's easy with SeleniumBase at that point to change the proxy settings.

@M-Zubair10
Copy link
Author

M-Zubair10 commented Nov 2, 2022 via email

@mdmintz
Copy link
Member

mdmintz commented Nov 2, 2022

@mdmintz mdmintz added the UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Outside SeleniumBase's scope. / Ask somewhere else. not enough info not enough info / more info needed UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode workaround exists You can reach your destination if you do this...
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants