-
Notifications
You must be signed in to change notification settings - Fork 44.3k
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
Chrome Browser Crash on Linux Fix #2086
Conversation
By adding these two arguments can fix the chrome crash problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this and it fixed my issues with the browser on my server instance with Linux. Seems to work as intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You fix it on Linux but break elsewhere. Make it optional/configurable or detect the platform.
Check system type before changing chrome into headless mode
Updated using the |
By adding these two arguments can fix the chrome crash problem
Background
When running auto-gpt on a server where there is no displaying manager (I am running on a VPS). The browser command
google-chrome
will not run correctly.Related Issue #2043
Changes
By adding
--headless
--disable-gpu
can run chrome in headless mode which prevents it from calling displaying manager and allow the program to parse raw informationDocumentation
Add arguments to run the browser in headless mode without a graphical user interface
Test Plan
The bug can be checked from previous issue. After fixing the script ran properly:
PR Quality Checklist
Tested only on my VPS while my PC can't run this project yet. This change can help fix the bug when running on a system without a displaying manager.