Firefox crashing like there is no tomorrow

Hi, the very same issue as this one: Firefox crashing a lot - #28

I have already gone through all the troubleshooting suggested in there (already had before even finding that post) and, although a downgrade of Mesa to the latest found in Packman and a zypper update for everything else + reboot initially helped (no crash for ~24 hours) it’s now playing up again. The Mesa build that I had installed has been removed from Packman, latest available was same version but different build number – I’m currently on 23.3.4-150600.83.8.pm.2.

The telltale sign are these:

Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Terminated

Sorry can’t give more details atm as I’m typing this on the faulty Firefox and it lasts for about five minutes before it just dies.

NAME="openSUSE Leap"
VERSION="15.6"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.6"
PRETTY_NAME="openSUSE Leap 15.6"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.6"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

Not much informations to start with.

Show your repos:
zypper lr -d

Show the full unredacted terminal output.

Why do you believe that Mesa isinvolved? Show
zypper se -si mesa

Did you do the basic checks?

Did you test with a fresh user profile?

Almost nobody needs Mesa from Packman today. Unless you are one of the few people with ancient AMD graphics and needing hardware decoding for videos switch to the OSS version of Mesa and dependent packages and try again.

BTW, no problems with Firefox here, but Intel+Nvidia if that matters.

Not much informations to start with.

I know. Not easy in between crashes. :grinning:

zypper lr -d

#  | Alias                                | Name                                                                  | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                                                   | Service
---+--------------------------------------+-----------------------------------------------------------------------+---------+-----------+---------+------+----------+--------+---------------------------------------------------------------------------------------+--------
 1 | Application_Geo                      | Applications related to the earth (GIS, Mapping, geodesy, GPS, astr-> | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/repositories/Application:/Geo/15.6/                     | 
 2 | devel_gcc                            | GNU Compiler Collection container (openSUSE_Leap_15.6)                | Yes     | (r ) Yes  | No      | -    |   99     | rpm-md | https://download.opensuse.org/repositories/devel:/gcc/openSUSE_Leap_15.6/             | 
 3 | devel_languages_misc                 | various programming languages (openSUSE_Leap_15.6)                    | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/repositories/devel:/languages:/misc/openSUSE_Leap_15.6/ | 
 4 | electronics                          | Electronics stuff and development (15.6)                              | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/repositories/electronics/15.6/                          | 
 5 | hardware                             | Hardware tools (15.6)                                                 | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/repositories/hardware/15.6/                             | 
 6 | home_Simmphonie_kicad                | home:Simmphonie:kicad (15.6)                                          | No      | ----      | ----    | -    |   99     | rpm-md | https://download.opensuse.org/repositories/home:/Simmphonie:/kicad/15.6/              | 
 7 | https-download.opensuse.org-4d5c5f35 | science                                                               | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/repositories/science/15.6/                              | 
 8 | https-download.opensuse.org-bf27fb06 | devel:languages:nodejs                                                | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/repositories/devel:/languages:/nodejs/15.6/             | 
 9 | mozilla                              | Mozilla based projects (openSUSE_Leap_15.6)                           | No      | ----      | ----    | -    |   99     | rpm-md | https://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.6/                | 
10 | packman                              | packman                                                               | Yes     | (r ) Yes  | Yes     | -    |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.6/                   | 
11 | repo-backports-update                | Update repository of openSUSE Backports                               | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/backports/                              | 
12 | repo-debug                           | Debug Repository                                                      | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.6/repo/oss/                   | 
13 | repo-debug-non-oss                   | Debug Repository (Non-OSS)                                            | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.6/repo/non-oss/               | 
14 | repo-debug-update                    | Update Repository (Debug)                                             | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/oss/                              | 
15 | repo-debug-update-non-oss            | Update Repository (Debug, Non-OSS)                                    | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/non-oss/                          | 
16 | repo-non-oss                         | Non-OSS Repository                                                    | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/non-oss/                     | 
17 | repo-oss                             | Main Repository                                                       | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/oss/                         | 
18 | repo-sle-update                      | Update repository with updates from SUSE Linux Enterprise 15          | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/sle/                                    | 
19 | repo-update                          | Main Update Repository                                                | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/oss                                     | 
20 | repo-update-non-oss                  | Update Repository (Non-Oss)                                           | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/non-oss/                                | 

Why do you believe that Mesa isinvolved?

I came to that conclusion yesterday but I can’t remember the details right now. I believe the Exiting due to channel error. is being produced by Plasma not Firefox (again, not sure how I came to that conclusion).

zypper search -si mesa
Loading repository data...
Reading installed packages...

S  | Name                      | Type    | Version                 | Arch   | Repository
---+---------------------------+---------+-------------------------+--------+-------------------------------------------------------------
i+ | Mesa                      | package | 23.3.4-150600.83.8.pm.2 | x86_64 | packman
i+ | Mesa-demo-x               | package | 8.3.0-150000.3.6.1      | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-dri                  | package | 23.3.4-150600.83.8.pm.3 | x86_64 | packman
i+ | Mesa-gallium              | package | 23.3.4-150600.83.8.pm.3 | x86_64 | packman
i+ | Mesa-KHR-devel            | package | 23.3.4-150600.83.8.pm.2 | x86_64 | packman
i+ | Mesa-libEGL-devel         | package | 23.3.4-150600.83.8.pm.2 | x86_64 | packman
i+ | Mesa-libEGL1              | package | 23.3.4-150600.83.8.pm.2 | x86_64 | packman
i+ | Mesa-libGL-devel          | package | 23.3.4-150600.83.8.pm.2 | x86_64 | packman
i+ | Mesa-libGL1               | package | 23.3.4-150600.83.8.pm.2 | x86_64 | packman
i+ | Mesa-libglapi0            | package | 23.3.4-150600.83.8.pm.2 | x86_64 | packman
i+ | Mesa-libva                | package | 23.3.4-150600.83.8.pm.3 | x86_64 | packman
i+ | Mesa-vulkan-device-select | package | 23.3.4-150600.83.8.pm.3 | x86_64 | packman

Did you test with a fresh user profile?

Yup.

  • It does crash with a fresh profile
  • It does crash with all extenstions (uBO, NoScript, Vue.js devtools, Floccus) disabled
  • It does not crash if started with --safe-mode on the regular profile
  • I have disabled hardware acceleration to no avail
  • Firefox is currently on 141.0.2 (from the mozilla repo) but the problem started manifesting itself on 126-something yesterday.

Good point, I’ll try and switch to Mesa from the regular repos. Will report back after a few days if that cures the issue.

No joy.

(Post must be at least 10 characters etc.)

Well it does now.

I remember now. Because of the ATTENTION: default value of option mesa_glthread overridden by environment. Though that might be a red herring

I have also now tried downgrading all the way to 115.10.0esr, to no avail.

Any suggestions as to how I could still run Plasma (which I need to be productive because of heavy shortcuts customisation, etc.) but with as much fancy video stuff disabled as practical?

Nope, it’s at 141.0.3 now :+1:

  • However, and I may have missed what you’re running … have you installed / and are using the RPM downloaded from Mozilla?

I occasionally read (out here) about folks who can’t watch videos, or FF crashes, etc. So, I do a quick test … never have an issue with FF … playing videos, no crashes, etc. But I will admit, I never use FF, except to test when other folks have issues. (I only use Brave primarily, and Chrome for personal stuff).

Here, I have the default FF install via openSUSE:
Installed Version: 140.1.0-150200.152.193.1, or as reported via “About” box in FF: 140.1.0esr. My GUI environment is Plasma / X11.

If you are using FF via downloaded-native Mozilla RPM, might be a good idea to post at Mozilla forums.

# inxi -GSaz
System:
  Kernel: 6.4.0-150600.23.60-default arch: x86_64 bits: 64 compiler: gcc
    v: 7.5.0 parameters: BOOT_IMAGE=/boot/vmlinuz-6.4.0-150600.23.60-default
    root=UUID=c98b9409 preempt=full
    plymouth.enable=0 splash=none mitigations=auto security=apparmor
  Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: openSUSE Leap 15.6
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Dell
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:3ea0 class-ID: 0300
  Display: server: X.Org v: 1.21.1.11 with: Xwayland v: 24.1.1
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: fbdev,vesa
    alternate: intel dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x1509 built: 2018 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.3.4 renderer: Mesa Intel UHD Graphics 620 (WHL
    GT2) direct-render: Yes
#

.

# zypper search -si mesa
Reading installed packages...

S  | Name                      | Type    | Version              | Arch   | Repository
---+---------------------------+---------+----------------------+--------+-------------------------------------------------------------
i  | Mesa                      | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-demo-x               | package | 8.3.0-150000.3.6.1   | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-dri                  | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-gallium              | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libEGL1              | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libGL1               | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libglapi0            | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libva                | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-vulkan-device-select | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
#

1 Like

Thanks for chiming in!

Correct. must have been updated late yesterday or today. Either way, the problem started with 120-something and remained with 141.x.x.

Good question, but no. It’s all from the OpenSUSE repos.

Yeah I thought about switching but I can’t stand either of those, unfortunately. :frowning:

# inxi -GSaz
System:
  Kernel: 6.4.0-150600.23.60-default arch: x86_64 bits: 64 compiler: gcc
    v: 7.5.0 parameters: BOOT_IMAGE=/vmlinuz-6.4.0-150600.23.60-default
    root=/dev/mapper/system-root splash=silent resume=/dev/system/swap quiet
    mitigations=auto
  Desktop: KDE Plasma v: 5.27.11 tk: Qt v: 5.15.12 wm: kwin_x11 vt: 2
    dm: SDDM Distro: openSUSE Leap 15.6
Graphics:
  Device-1: AMD Renoir [Radeon Vega Series / Radeon Mobile Series]
    vendor: AIstone Global driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 4 speed: 16 GT/s lanes: 16
    ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 04:00.0 chip-ID: 1002:1636
    class-ID: 0300 temp: 39.0 C
  Device-2: Chicony HD Webcam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:2 chip-ID: 04f2:b68b
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.11 with: Xwayland v: 24.1.1
    compositor: kwin_x11 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP model: Sharp LQ156M1JW01 built: 2019
    res: 1920x1080 hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 23.3.4 renderer: AMD Radeon Graphics (radeonsi
    renoir LLVM 17.0.6 DRM 3.57 6.4.0-150600.23.60-default) direct-render: Yes
# zypper search -si mesa
S  | Name                      | Type    | Version              | Arch   | Repository
---+---------------------------+---------+----------------------+--------+-------------------------------------------------------------
i+ | Mesa                      | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-demo-x               | package | 8.3.0-150000.3.6.1   | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-dri                  | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-gallium              | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-KHR-devel            | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-libEGL-devel         | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-libEGL1              | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-libGL-devel          | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-libGL1               | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-libglapi0            | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-libva                | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-vulkan-device-select | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15

Starting to suspect duff video hardware. I didn’t think to mention earlier, but for the last two weeks kwin does lock up badly every couple days or so, to the point that it only responds to kill 9.

Still, doesn’t explain why, if I run a Firefox from a different computer on the bad one (ssh -Y otherhost firefox) it works fine. The next obvious try is to do it the other way around, except that for some reason /tmp/.X11-unix/X0 does not exist on the “working” host so I can’t open remote applications over ssh on it (that’s a different issue altogether though).

Ok, good news. It’s not the graphics card / drivers. I’ve managed to open the faulty Firefox remotely (i.e., on an X server on a different computer) and it crashed fairly promptly.

My current test is I’ve asked a different user to log into his account on the computer having the problem and open Firefox, see if that crashes. If it doesn’t it would suggest something with my user directory (it’s not the Firefox profile, I’ve tried a bunch of them).

So, I’m now at my desktop machine, just did a “zypper up” and rebooted… to test here (haven’t logged in here for a couple of weeks).

I’ve run the “inxi” and “zypper … mesa” commands, which are shown at bottom.

Anyway, running FF (standard openSUSE release) here no issue. Same version as on my laptop (I ran test earlier), plus I’m also running Plasma / X11 here on Leap 15.6. But the hardware is different (AMD Ryzen processor and AMD Radeon graphics).

I have a good understanding of Chrome-based browsers (but not FF ) and there is an occasional issue where the Chrome-based browser can crash or simply won’t work (mostly happens on TW, rarely seen it on Leap). And it’s not targeted at openSUSE … folks running other distros have the issue.

There is a sub-component of Chrome that utilitzes what’s called a “GPUCache”. If it become corrupted, you simply delete the GPUCache sub-dir content. However, FF does not have it … it may use a similar facility, but I’m no FF techie. Heck, look at the output below (GPUCache search outoput) … even Marble uses GPUCache.
.
Okay, I have one other suggestion, before I hit Reply. If you fire up Discover … you will find there is a Flatpak packaged version of FF. You might install that and test. It can run completely independent of the low-level install of FF (screenshot of FF Flatpak in Discover) … it creates it’s own “user profile” located elsewhere):


.
GPUCache search

user@mach :~> find  ~/ -type d -name GPUCache
/home/user/.local/share/marble/QtWebEngine/Default/GPUCache
/home/user/.config/google-chrome/Default/GPUCache
/home/user/.config/BraveSoftware/Brave-Browser-Beta/Default/GPUCache
user@mach :~>

.

# inxi -GSaz
System:
  Kernel: 6.4.0-150600.23.60-default arch: x86_64 bits: 64 compiler: gcc
    v: 7.5.0 parameters: BOOT_IMAGE=/boot/vmlinuz-6.4.0-150600.23.60-default
    root=UUID=49b2fffe preempt=full
    security=apparmor plymouth.enable=0 amdgpu.ppfeaturemask=0xffffbffb
    amdgpu.dpm=0 mitigations=auto
  Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: openSUSE Leap 15.6
Graphics:
  Device-1: AMD Baffin [Radeon RX 550 640SP / 560/560X] vendor: XFX Pine
    driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands process: GF 14nm
    built: 2016-20 pcie: gen: 3 speed: 8 GT/s lanes: 8 ports: active: DP-1
    empty: DVI-D-1,HDMI-A-1 bus-ID: 0a:00.0 chip-ID: 1002:67ff class-ID: 0300
  Display: server: X.Org v: 1.21.1.11 with: Xwayland v: 24.1.1
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1600 s-dpi: 96 s-size: 1016x423mm (40.00x16.65")
    s-diag: 1101mm (43.33")
  Monitor-1: DP-1 model: Dell U3818DW serial: <filter> built: 2017
    res: 3840x1600 hz: 60 dpi: 111 gamma: 1.2 size: 880x367mm (34.65x14.45")
    diag: 953mm (37.5") modes: max: 3840x1600 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.3.4 renderer: AMD Radeon RX 560 Series
    (radeonsi polaris11 LLVM 17.0.6 DRM 3.57 6.4.0-150600.23.60-default)
    direct-render: Yes
#

.

# zypper search -si mesa
Loading repository data...
Reading installed packages...

S  | Name                      | Type    | Version              | Arch   | Repository
---+---------------------------+---------+----------------------+--------+-------------------------------------------------------------
i  | Mesa                      | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-demo-x               | package | 8.3.0-150000.3.6.1   | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-dri                  | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-gallium              | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libEGL1              | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libGL1               | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libglapi0            | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i  | Mesa-libva                | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i+ | Mesa-vulkan-device-select | package | 23.3.4-150600.83.3.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
#
1 Like

As @myswtest suggested, you should try installing the Firefox Flatpak first with a clean profile, and depending on results, ad your current user profile to the Flatpak directory and see what happens.

1 Like

https://bbs.archlinux.org/viewtopic.php?id=286692

You likely get a coredump, can you share that or get some information out of it?

1 Like

In addition to the other ideas presented on this thread …

I believe that the channel error message usually indicates a GPU process crash in Firefox’s multi-process (e10s) model, could relate to:

  • WebRender or GPU acceleration issues
  • Sandboxing failures (ie firefox failing to properly implement some security aspects)
  • Driver or Mesa bugs
  • Firefox bugs, such as with Mesa + AMDGPU

However - the fact that the crash happens even on remote X suggests it’s not purely rendering-related, but I speculate it could still be sandbox or GPU-process related.

Also, Plasma 6.1 is a relatively recent update, and perhaps you have a newer Mesa, Qt, or system libraries — any of which could potentially break Firefox GPU interaction.

My understanding is ‘safe-mode’ (which you tried) does not disable GPU acceleration in Firefox.

Have you tried to disable GPU Acceleration in Firefox? (since this could be GPU related)? To do this, try launching Firefox with acceleration disabled:

MOZ_DISABLE_HW_ACCELERATION=1 MOZ_WEBRENDER=0 firefox --no-remote --new-instance -P

If given a choice of profiles, select ‘default’ (I am guessing here - you may not be given such a choice). That is only a temporary setting for boot of firefox and it should change nothing.

Does the issue still occur with that?

If that fails to help then likely the issue is not acceleration.

1 Like

Another test (to see if a sandboxing issue) is to launch Firefox this way
MOZ_SANDBOX_DISABLE=1 firefox

Don’t get me wrong. This is just me speculating trying to narrow down the issue if not an issue with other apps causing the problem. This may do nothing to help.

1 Like

Please check the documentation (already provided in the first comment). The troubleshoot mode (aka --safe-mode) disables HW acceleration.

Your heavily AI influenced answers gets some sort of confusing and annoying (IMO).

1 Like

All good suggestions. I did install the Flatpak version and it crashed almost immediately (before I could even finish going through the settings on the new profile). This was while offline btw (no wifi, no LAN, no BT).

I don’t get core dumps on this system but I have now started strace firefox (inspired by one of the answers in the Arch Linux link above), hoping that there might be some useful clues when it finally crashes. Annoyingly, it sometimes works for hours before deciding to faceplant.

For the record, disabling hardware acceleration was one of the very first things I tried, and it did not make any difference.

There are Firefox instances running on two other user profiles and those have not been crashing. One is a new user profile I just created but the other is a real profile from a different user.

Whatever it is, it is not tied to my Firefox user profile (I tried with different ones) but there are strong indications that it is tied to my $HOME.

So to recap:

  • While logged in as myself, Firefox crashes:
    • with my regular user profile in regular use;
    • with my regular user profile with hardware acceleration disabled;
    • with my regular user profile in --safe-mode;
    • with my regular user profile via ssh -CY myhost firefox
    • with a new user profile
    • with a Flatpak install and new, pristine user profile.
  • Firefox does not crash on this machine:
    • for any other local users;
    • for remote users using the local X11 server (ssh -CY anotherhost firefox)
  • No other user applications are crashing, but…
  • KWin was locking up (only for myself) until I upgraded / rebooted / etc. yesterday (not saying it’s related)

No useful info in strace output, except that it appears to be SIGTERMing itself:

clock_gettime(CLOCK_MONOTONIC, {tv_sec=74694, tv_nsec=708068286}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=74694, tv_nsec=708297230}) = 0
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=30032, si_uid=1000} ---
unlink("/home/licehunter/.mozilla/firefox/5kioifxe.default/lock") = 0
close(18)                               = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fcc5f857900}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [TERM], NULL, 8) = 0
gettid()                                = 29376
getpid()                                = 29376
tgkill(29376, 29376, SIGTERM)           = 0
--- SIGTERM {si_signo=SIGTERM, si_code=SI_TKILL, si_pid=29376, si_uid=1000} ---
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
+++ killed by SIGTERM +++
Terminated

And no crash reports created by Firefox either.

My plan of action:

  • I have recreated ~/.cache/fontconfig (fc-cache --really-force) and now I’m waiting for a crash
  • If / when it eventually crashes, I’ll zap the other common factor between profiles for the same user that I can think of: ~/.cache/mozilla and ~/.cache/Mozilla (both exist)
  • Aha! I just found ~/.cache/mesa_shader_cache (I’d been looking for it earlier). That’s another good candidate for a zap.

Editing to say: Ok, it did crash and I did delete all three directories above. It crashes again almost immediately after starting.

I still think it must be something in my $HOME but I’m running out of ideas.

I looked in this thread but could not see where you claimed you deleted:
/home/licehunter/.mozilla
you simply posted about a cache deletion.

There is a clear message in what you posted about that directory ( albeit that is a clean up command) but it is a .mozilla directory possibly with relevant data causing the issue …

You may wish to backup bookmarks before deleting .mozilla.