laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 258 forks source link

Crash Annotation GraphicsCriticalError for headless selenium on firefox browser #726

Open manaspatra opened 11 months ago

manaspatra commented 11 months ago

versions

Steps to reproduce the issue

[]# firefox --headless *** You are running in headless mode.

(firefox:2019479): Gtk-WARNING **: 13:51:46.403: Locale not supported by C library. Using the fallback 'C' locale. Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.505233) [GFX1-]: glxtest: Unable to open a connection to the X server Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.505233) |[1][GFX1-]: glxtest: libEGL initialize failed (t=0.505267) [GFX1-]: glxtest: libEGL initialize failed Fontconfig warning: ignoring UTF-8: not a valid region tag Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.505233) |[1][GFX1-]: glxtest: libEGL initialize failed (t=0.505267) |[2][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=1.16928) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt Fontconfig warning: ignoring UTF-8: not a valid region tag Fontconfig warning: ignoring UTF-8: not a valid region tag Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs ^CExiting due to channel error. Exiting due to channel error.

Actual results:

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Unable to open a connection to the X server (t=0.505233) |[1][GFX1-]: glxtest: libEGL initialize failed (t=0.505267) |[2][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=1.16928) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt

Expected results:

should be able to initialize and open browser for headless UI operation.

manaspatra commented 11 months ago

any help is much appreciated ! any compatibility issue with following versions and need correction?

laurentj commented 11 months ago

Hi,

it does not seems related to SlimerJS. Anyway, SlimerJs is not compatible with Firefox 102. its development has ceased since 2018.