mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.03k stars 1.51k forks source link

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Unable to open a connection to the X server #2134

Closed gosssamer closed 9 months ago

gosssamer commented 9 months ago

System

Testcase

I am using firefox in headless mode in a python script to verify the return status of web pages.

Here are the logs showing this error:

1694485124369   geckodriver     INFO    Listening on 127.0.0.1:42687
console.error: ({})
1694485125509   mozrunner::runner       INFO    Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT
="1" MOZ_CRASHREPORTER_SHUTDOWN="1" MOZ_NO_REMOTE="1" "/usr/bin/firefox" "--marionette" "--headless" "-no-remote"
"-profile" "/tmp/rust_mozprofile72q4oN"
*** You are running in headless mode.
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.476161) [GFX1-]: glxtest: Unable to open a connection to the X server
1694485126010   Marionette      INFO    Marionette enabled
1694485126086   Marionette      INFO    Listening on port 42179
Read port: 42179
1694485126346   RemoteAgent     WARN    TLS certificate errors will be ignored for this session
1694485126433   Marionette      INFO    Stopped listening on port 40185
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.476161) |[1][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=1.37492) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
console.error: ({})
JavaScript error: resource://services-settings/Utils.sys.mjs, line 229: TypeError: NetworkError: Network request failed

I don't have a sample webpage right now but will figure out how to do this if necessary.

whimboo commented 9 months ago

This seems to be the same issue as already reported on issue #2082.