Qt WebEngine crashes with nouveau in Linux

Bug #1857121 reported by Christoph Thielecke
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtwebengine-opensource-src (Ubuntu)

Bug Description

I have crashes of kmail when displaying mails (e.g. GMX info mail). After some research I found that it is related to the qtwebengine when using nouveau driver.

The reason is, that Qt WebEngine uses multi-threaded OpenGL, which nouveau does not support.
It also crashes when running on wayland, the cause is not yet known.
Work around these issues by not doing GPU-accelerated rendering in such cases.

This happens on 18.04.3 (bionic), 19.10 (eoan) and 20.04 (focal).

See also: https://bugreports.qt.io/browse/QTBUG-41242

There was a patch made: Antonio Larrosa (25 Oct '16 12:04 PM):
"I made the disable-gpu-when-using-nouveau-boo-1005323.diff patch (attached) for the webengine openSUSE packages. It checks if the openGL driver vendor is "nouveau" and if it is, it disables the GPU in the web engine context . This fixes the crashes in my test system.

The patch also adds two environment variables, QT_WEBENGINE_DISABLE_GPU, which forces disabling the GPU and QT_WEBENGINE_DISABLE_NOUVEAU_WORKAROUND, which disables the nouveau detection code, just in case anybody wants to test newer nouveau releases in the future to see if they behave properly."

I adapted this patch for bionic (5.9.5+dfsg-0ubuntu2) and attach the modified patch (disable-gpu-when-using-nouveau_boo_1005323_qtwebengine_5.9.5.diff)

Revision history for this message
Christoph Thielecke (crissi99) wrote :
Revision history for this message
Christoph Thielecke (crissi99) wrote :

Sorry, the first patch was and old patch, containing one bracket too much, please find correct patch attached.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "check for nouveau driver on qtwebengine and disable gpu in this case, can be overridden by envionment variable" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers