With EGL on X11, Firefox 94 crashes when page wants to open a popup window (Caused by force-enabling WR with blocklisted Intel DDX driver)
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: frederik.elwert, Unassigned)
References
Details
Attachments
(1 file)
51.99 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Steps to reproduce:
I trigger an action (link click, keyboard shortcut) that leads in a page attempting to open a popup window.
Actual results:
Firefox crashes.
I get this output in a terminal:
ATTENTION: default value of option mesa_glthread overridden by environment.
(firefox:141689): Gdk-ERROR **: 18:46:38.586: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
(Details: serial 3405 error_code 9 request_code 154 (DRI2) minor_code 8)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
ExceptionHandler::GenerateDump cloned child 142002
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Exiting due to channel error.
Expected results:
A popup window should open.
Setting gfx.x11-egl.force-disabled=true solves the issue.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Thanks for the report! Please open about:support, click on "Copy text to clipboard" and paste it here.
Reporter | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
WEBRENDER:
available by default
force_enabled by user: Force enabled by pref
disabled by env: Not qualified
gfx.blacklist.webrender.failureid: FEATURE_FAILURE_DDX_INTEL
Thanks!
Hardware rendering is disabled by default for your setup because you are using the deprecated Intel DDX driver.
That's when $ xrandr --listproviders
contains "Intel" instead of the default and recommended "modesetting".
Some users manually choose this driver to use a legacy in-driver compositor to prevent tearing. It's recommended to use a regular X11 compositor instead. If the performance of uncomposited X11 is desired with a compositor, Wayland is recommended.
Please remove deprecated Driver "intel"
from your custom Xorg config file and reboot. Does the crash still occur afterwards?
Reporter | ||
Comment 5•3 years ago
|
||
I didn’t even know I was using the intel driver. I didn’t use a custom Xorg config, but I had xserver-xorg-video-intel installed. I removed it and I am on modesetting now. The crash does no longer occur, so it looks like this was the cause.
I guess it would still be preferable not to bring the whole application down in these scenarios?
FWIW, I still have these warnings printed in the terminal:
ATTENTION: default value of option mesa_glthread overridden by environment.
libEGL warning: DRI2: failed to authenticate
But I guess that’s a different issue.
Thanks!
Comment 6•3 years ago
|
||
(In reply to frederik.elwert from comment #5)
I guess it would still be preferable not to bring the whole application down in these scenarios?
That's why hardware rendering is blacklisted for this driver.
ATTENTION: default value of option mesa_glthread overridden by environment.
That's because Firefox sets mesa_glthread environment variable for Firefox to its default value (false) to prevent users from setting it to true because it's not supported and would cause a crash.
libEGL warning: DRI2: failed to authenticate
That is likely the actual cause of this crash.
(DRI2 is the older variant and requires authentication. Today, DRI3 is default on X11 and Xwayland.)
Comment hidden (Intermittent Failures Robot) |
Description
•