FS#78137 - Firefox crashes after upgrading to wayland 1.22

Attached to Project: Arch Linux
Opened by Iyan (iyanmv) - Thursday, 06 April 2023, 21:48 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 23 May 2023, 22:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 11
Private No

Details

Description:

Firefox crashes almost immediately after starting the app. Downgrading to wayland 1.21 fixes the issue.


Additional info:

https://bugzilla.redhat.com/show_bug.cgi?id=2184549


Steps to reproduce:
1. Upgrade to wayland 1.22
2. Launch Firefox
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Tuesday, 23 May 2023, 22:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  mesa 23.0.2-2
Comment by Toolybird (Toolybird) - Thursday, 06 April 2023, 23:12 GMT
I'm AFK for a few days (on mobile) so cannot test this or try to investigate. Assigning to relevant PM's based on blind trust!
Comment by Jan Alexander Steffens (heftig) - Friday, 07 April 2023, 01:12 GMT
Can't confirm. Firefox 111.0.1-1 seems to run properly.
Comment by Inochi Amaoto (inochi) - Friday, 07 April 2023, 02:24 GMT
Firefox is workable in the safe mode. But there is a crash in the normal run. Downgrade wayland can confirm fix this.
Comment by Jan Alexander Steffens (heftig) - Friday, 07 April 2023, 04:23 GMT Comment by q rty (q234rty) - Friday, 07 April 2023, 08:17 GMT
While the bug originates from mesa, just patching mesa is not enough: on a system with nvidia-utils installed yet blacklists the nvidia kernel module, firefox seems to still crash even after patching mesa with https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21646, in a crash report similar to this: https://crash-stats.mozilla.org/report/index/6633bcce-f5d1-4572-a3b6-528b80230407 . So the nvidia drivers also need to be fixed.


Comment by Nico Pat (Manix) - Friday, 07 April 2023, 11:16 GMT
same problem here. after a downgrade from wayland everything is ok.
http://0x0.st/HXmQ.json
Comment by Gene (GeneC) - Friday, 07 April 2023, 13:48 GMT
I tried mozilla nightly - it also crashes before even showing anything on screen other than profile picker :

ExceptionHandler::GenerateDump cloned child 6008
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

Reverting wayland to 1.21.0-2 fixes it and everything works again.

Update - more information:

Tested on 2 different laptops - one crashes at start other does not, but crashes on exit (with wayland 1.22) - both work fine on 1.21
laptop #1

nouveau blacklisted (otherwise driver crashes):

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K1100M] (rev a1)

FF starts fine - I do see crash on exit.

laptop #2
With or without blacklisting nouveau FF crashes at startup

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1200 Mobile] (rev a2)


Comment by Mike Cloaked (mcloaked) - Friday, 07 April 2023, 14:33 GMT
There seems to be a related crash but only on exit for me with firefox and thunderbird running in the Plasma desktop. I can confirm that downgrading wayland back to version 1.21.0-2 fixes this regression in the wayland package. I am running firefox 111.0.1-1 and thunderbird 112.0b7
Comment by q rty (q234rty) - Friday, 07 April 2023, 17:16 GMT
Opened  FS#78142  and  FS#78143  to track the underlying issues.

Comment by Darrell (denns) - Friday, 07 April 2023, 20:25 GMT
I also see Firefox crash on exit, but with Gnome desktop and Intel graphics. Reverting wayland to 1.21.0-2 fixes it.
Comment by Gene (GeneC) - Friday, 07 April 2023, 21:07 GMT
Fixed for me by mesa update 23.0.2
Comment by Kacper Kopczyński (capsel) - Friday, 07 April 2023, 21:46 GMT
Installing mesa 23.0.2 did not solve issue for me. I have amd+nvidia.
running `prime-run firefox` from cmdline helped
Comment by q rty (q234rty) - Saturday, 08 April 2023, 05:59 GMT
Those who are still facing this on mesa 23.0.2, could you try the patch mentioned in  FS#78143  and check if the issue is resolved?
Comment by Kacper Kopczyński (capsel) - Saturday, 08 April 2023, 11:44 GMT
I can confirm that applying egl-wayland patch fixes the issue for me
Comment by Nico Pat (Manix) - Saturday, 08 April 2023, 11:54 GMT
solved for me after update mesa and libva-mesa-driver
Comment by Peter Weber (hoschi) - Saturday, 08 April 2023, 12:30 GMT
Same situation like Darrel, crash on exit on GNOME (Intel Sandy Bridge, HD3000).

By chance Epiphany[1] is currently also suffering permanent crashes.
So I'm now down to good old links :p


[1] https://bugs.webkit.org/show_bug.cgi?id=254117

// edit
Fixed on my systemd with "23.0.2-2". Thanks :)
Comment by q rty (q234rty) - Saturday, 08 April 2023, 12:33 GMT
If you are on mesa 23.0.2-2, egl-wayland 2:1.1.11-4 and are still facing this, please leave a comment, perferably with a mozilla crash report link.

Otherwise please wait for those versions to reach your mirror of choice.
Comment by Gene (GeneC) - Saturday, 08 April 2023, 12:35 GMT
A suggestion For those still experiencing crashes after updating to mesa 23.0.2 packages, now in extra repo, provided by heftig.

It's probably helpful to say if you're using nvidia drivers (and egl-wayland 2:1.1.11-4) and if so try (at least temporarily) blacklisting nvidia (and reboot of course) and see if problem persists.
Comment by q rty (q234rty) - Saturday, 08 April 2023, 12:48 GMT
Blacklisting nvidia doesn't do anything in my experience, firefox would still try to load libEGL_nvidia.so.0 if you have nvidia-utils installed.

However egl-wayland 2:1.1.11-4 is supposed to resolve that even when firefox tries to load nvidia drivers, so if you have both mesa 23.0.2-2 and egl-wayland 2:1.1.11-4 and are still experiencing this please leave a comment.
Comment by Darrell (denns) - Saturday, 08 April 2023, 17:57 GMT
I can confirm that mesa 23.0.2-2 fixed it for me with intel graphics. I don't currently have access to an nvidia system to test on.

Loading...