Firefox keeps crashing

My firefox keeps crashing from time to time with the following errors:

[GFX1-]: Detect DeviceReset DeviceResetReason::RESET DeviceResetDetectPlace::WR_POST_UPDATE in Parent process
[Parent 117981, Compositor] WARNING: Call to mmap failed: Descritor de arquivo inválido: file /usr/src/debug/firefox/firefox-128.0/ipc/chromium/src/base/shared_memory_posix.cc:515

###!!! [Parent][DispatchAsyncMessage] Error: SHMEM_CREATED_MESSAGE Payload error: message could not be deserialized

[Parent 117981, Compositor] WARNING: Call to mmap failed: Descritor de arquivo inválido: file /usr/src/debug/firefox/firefox-128.0/ipc/chromium/src/base/shared_memory_posix.cc:515

###!!! [Parent][DispatchAsyncMessage] Error: SHMEM_CREATED_MESSAGE Payload error: message could not be deserialized

[GFX1-]: Failed to create a valid ShmemTextureHost
[GFX1-]: Failed to create a valid ShmemTextureHost
[Parent 117981, IPDL Background] WARNING: pipe error: Descritor de arquivo inválido: file /usr/src/debug/firefox/firefox-128.0/ipc/chromium/src/chrome/common/ipc_channel_posix.cc:702
[Parent 117981, Compositor] WARNING: pipe error: Descritor de arquivo inválido: file /usr/src/debug/firefox/firefox-128.0/ipc/chromium/src/chrome/common/ipc_channel_posix.cc:702
Exiting due to channel error.

I have no clue about what can be wrong the whole system is up to date.

1 Like

Is it unusual that chrome and chromium are referenced in a Firefox error dump? :thinking:

It does appear in the Searchfox site: https://searchfox.org/mozilla-central/source/ipc/chromium/src/chrome/common/ipc_channel_posix.cc

The error messages you’re seeing suggest a problem with shared memory or inter-process communication (IPC) in Firefox.

I’d recommend starting with creating a new profile to see if it reoccurs. If it doesn’t then your profile data was likely corrupted.

If that doesn’t solve it, then I would take it a step further by deleting Firefox and all of its local data and then performing a clean installation.

1 Like

Maybe the same as this other issue from a few days ago Firefox crash due to nvidia explicit sync on 6.9.10-arch1-1 with Wayland - #13 by ricklinux

I have tried a number of things such as not upgrading Firefox, not upgrading the kernel, and there was a bunch of kde updates and i was still having different issues with either Firfeox crashing or just booting and when going to log in if i move the cursor it craps out and goes into a tty or boot screen? showing the last entry before the login in screen. Really not sure what packages are causing the issue so i just went back to an older snapshot and going to wait a while.

Edit: This is only on my system that has Nvidia. My amdgpu system doesn’t show any signs of this issue.

1 Like

Same here, my intel system is fine. Just the nvidia one. There seem to be a number of open bug reports about the issue:
Mesa: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11541
egl-wayland: https://github.com/NVIDIA/egl-wayland/issues/118
firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1908825

Yes there were so many updates I don’t know which one is causing the issue because it’s working fine if i don’t update and has been up to this point on Wayland.

I believe the issue is most likely with the individual applications and egl-wayland. The latest release of egl-wayland added explicit sync report. There were a bunch of different components that explicit sync needed to be added to throughout the linux graphics stack in order for it to work fully. It seems that some applications may be doing something wonky when it comes to their implementations.

The fact that there were so many components involved in getting explicit sync fully working on linux is most likely the reason for why there are bug reports in so many different locations. Because all of those different projects have a hand in it.

What to do in the mean time?

I would say hold off updates to things like the kernel, mesa, and egl-wayland. Some people have reported that simply downgrading egl-wayland worked for them.

1 Like

Seems to have worked for me also.

This might be a long shot but disabling hardware acceleration sometimes makes a difference with this kind of problems, worth a try.

Noob here, could you tell me how to do it or with what terminal command please?

Also, after downgrading a program/package, can it be updated again with “yay” in the future when it is fixed?

Thank you.

sudo downgrade egl-wayland
Will do the trick. Explanation is provided here: https://discovery.endeavouros.com/pacman/downgrade-packages/2021/03/

You will need to remove it from pacman.conf egl-wayland once this is fixed.

Thank you friend!

By the way, I guess I should choose version 13 since the latest is 14, but should I choose 1.1.13 /var/cache/packman/pkg or 1.1.13 remote?

Is one of them still installed on my PC or something?

EDIT:

I think that EOS saves the previous version of all the packages on the PC.

image

Looks like downgrading is no longer required as upstream has decided to do it on their own. The next time you update. You should notice that egl-wayland version 1.1.13 will be getting installed.

Oh wait, you are right, thanks! Does that mean I can update all the packages because they have removed the last update from the repositories?

I even still have a higher version than what appears in the repositories, so the version I’m using still contains bugs.

But what do the numbers 2: and 3: in front of the version number mean?

EDIT:

Oh sorry, the number 2: and 3: is the global version, it means that the numbers of the full version and the subversions change.

For this reason, all the red and green numbers appear, unlike the other packages, which the global version maintains, I just discovered something so basic. :sweat_smile:

image

Do you think that this package is the issue? Here is the current updates i have and if i update again i will be getting Firefox, kernel, mesa and a lot of kde plasma as well as some AUR programs. The only thing package egl-wayland that is now a previous version?

[ricklinux@asus-tuff ~]$ yay
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
:: 87 packages to upgrade/install.
87  endeavouros/eos-rankmirrors      24.6.1-1         -> 24.7-1
86  endeavouros/eos-update-notifier  24.4.3-1         -> 24.7-1
85  endeavouros/reflector-simple     2024-1           -> 2024.7-1
84  core/automake                    1.16.5-2         -> 1.17-1
83  core/gnupg                       2.4.5-1          -> 2.4.5-4
82  core/gpgme                       1.23.2-4         -> 1.23.2-6
81  core/iproute2                    6.9.0-2          -> 6.10.0-1
80  core/libassuan                   2.5.7-2          -> 3.0.0-1
79  core/libnftnl                    1.2.6-1          -> 1.2.7-1
78  core/libnl                       3.9.0-1          -> 3.10.0-1
77  core/libxml2                     2.13.2-1         -> 2.13.2-2
76  core/linux                       6.9.9.arch1-1    -> 6.9.10.arch1-1
75  core/linux-api-headers           6.8-1            -> 6.10-1
74  core/linux-headers               6.9.9.arch1-1    -> 6.9.10.arch1-1
73  core/logrotate                   3.21.0-2         -> 3.22.0-1
72  core/pacman-mirrorlist           20231001-1       -> 20240717-1
71  core/perl                        5.38.2-1         -> 5.38.2-2
70  core/pinentry                    1.3.1-2          -> 1.3.1-5
69  core/qgpgme-qt6                  1.23.2-4         -> 1.23.2-6
68  core/sudo                        1.9.15.p5-1      -> 1.9.15.p5-2
67  extra/bluedevil                  1:6.1.2-1        -> 1:6.1.3-1
66  extra/breeze                     6.1.2-1          -> 6.1.3-1
65  extra/breeze-gtk                 6.1.2-1          -> 6.1.3-1
64  extra/breeze5                    6.1.2-1          -> 6.1.3-1
63  extra/chromium                   126.0.6478.182-1 -> 127.0.6533.57-1
62  extra/dracut                     103-1            -> 103-2
61  extra/egl-wayland                2:1.1.13-2       -> 3:1.1.13-1
60  extra/firefox                    128.0-1          -> 128.0-2
59  extra/hwinfo                     23.2-1           -> 23.2-2
58  extra/kactivitymanagerd          6.1.2-1          -> 6.1.3-1
57  extra/kde-cli-tools              6.1.2-1          -> 6.1.3-1
56  extra/kde-gtk-config             6.1.2-1          -> 6.1.3-1
55  extra/kdecoration                6.1.2-1          -> 6.1.3-1
54  extra/kdeplasma-addons           6.1.2-1          -> 6.1.3-1
53  extra/kgamma                     6.1.2-1          -> 6.1.3-1
52  extra/kglobalacceld              6.1.2-1          -> 6.1.3-1
51  extra/kinfocenter                6.1.2-1          -> 6.1.3-1
50  extra/kio                        6.4.0-2          -> 6.4.1-1
49  extra/kmenuedit                  6.1.2-1          -> 6.1.3-1
48  extra/kpipewire                  6.1.2-2          -> 6.1.3-1
47  extra/kscreen                    6.1.2-1          -> 6.1.3-1
46  extra/kscreenlocker              6.1.2-1          -> 6.1.3-1
45  extra/ksystemstats               6.1.2-1          -> 6.1.3-1
44  extra/kwallet-pam                6.1.2-1          -> 6.1.3-1
43  extra/kwayland                   6.1.2-1          -> 6.1.3-1
42  extra/kwayland-integration       6.1.2-1          -> 6.1.3-1
41  extra/kwidgetsaddons             6.4.0-1          -> 6.4.1-1
40  extra/kwin                       6.1.2-1          -> 6.1.3-1
39  extra/layer-shell-qt             6.1.2-1          -> 6.1.3-1
38  extra/libinstpatch               1.1.6-2          -> 1.1.6-3
37  extra/libkscreen                 6.1.2-1          -> 6.1.3-1
36  extra/libksysguard               6.1.2-1          -> 6.1.3-1
35  extra/libplasma                  6.1.2-1          -> 6.1.3-1
34  extra/libproxy                   0.5.7-1          -> 0.5.8-1
33  extra/libupnp                    1.14.19-2        -> 1.14.19-3
32  extra/llvm-libs                  18.1.8-3         -> 18.1.8-4
31  extra/mesa                       1:24.1.3-1       -> 1:24.1.4-2
30  extra/milou                      6.1.2-1          -> 6.1.3-1
29  extra/nftables                   1:1.0.9-3        -> 1:1.1.0-2
28  extra/ocean-sound-theme          6.1.2-1          -> 6.1.3-1
27  extra/openvpn                    2.6.11-1         -> 2.6.12-1
26  extra/orc                        0.4.38-1         -> 0.4.39-1
25  extra/plasma-activities          6.1.2-1          -> 6.1.3-1
24  extra/plasma-activities-stats    6.1.2-1          -> 6.1.3-1
23  extra/plasma-desktop             6.1.2-1          -> 6.1.3-1
22  extra/plasma-disks               6.1.2-1          -> 6.1.3-1
21  extra/plasma-integration         6.1.2-1          -> 6.1.3-1
20  extra/plasma-nm                  6.1.2-1          -> 6.1.3-1
19  extra/plasma-pa                  6.1.2-1          -> 6.1.3-1
18  extra/plasma-systemmonitor       6.1.2-1          -> 6.1.3-1
17  extra/plasma-workspace           6.1.2-1          -> 6.1.3-1
16  extra/plasma5-integration        6.1.2-1          -> 6.1.3-1
15  extra/plasma5support             6.1.2-1          -> 6.1.3-1
14  extra/polkit-kde-agent           6.1.2-1          -> 6.1.3-1
13  extra/powerdevil                 6.1.2-1          -> 6.1.3-1
12  extra/python-gobject             3.48.2-1         -> 3.48.2-2
11  extra/python-pyqt5               5.15.10-2        -> 5.15.11-1
10  extra/qqc2-breeze-style          6.1.2-1          -> 6.1.3-1
 9  extra/qt6-wayland                6.7.2-2          -> 6.7.2-4
 8  extra/sddm-kcm                   6.1.2-1          -> 6.1.3-1
 7  extra/sof-firmware               2024.03-1        -> 2024.06-1
 6  extra/systemsettings             6.1.2-1          -> 6.1.3-1
 5  extra/xdg-desktop-portal-kde     6.1.2-1          -> 6.1.3-1
 4  multilib/lib32-libxml2           2.13.2-1         -> 2.13.2-2
 3  multilib/lib32-mesa              1:24.1.3-1       -> 1:24.1.4-2
 2  aur/spotify                      1:1.2.40.599-1   -> 1:1.2.42.290-1
 1  aur/vmware-workstation           17.5.2-1         -> 17.5.2-3
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 

Currently is working properly but before when i updated i have numerous issues. I had Firefox crashing or when booting at the log in screen if i moved the cursor it crashed back to a tty screen. I can try again since i have snapper on this bttrfs install and can roll back. What do you think? :crossed_fingers:

Edit: Okay so I just updated with all the above and logging in wasn’t an issue. I purposely moved the cursor with the mouse before logging in and had no issue. So fingers crossed it’s all good now.

Cool and yes you can update now. The change from 2 to 3 was so that it could be packaged as an upgrade and not a downgrade.

1 Like