Firefox crashes when unlocking screen

Since the last couple of updates Firefox crashes often after I unlock the screen. This is along with VLC having a black screen, and I have to kill that application in the Task Manager.

Is this something I can fix?

Journal log? Inxi? FF version?

Firefox version 108.0.1
VLC version 3.0.18

I have to find the journal.

Not OP but I’m seeing Firefox crash like that occasionally too, so I’ll join the party.

Can’t comment on VLC, and I couldn’t replicate the crash as I tried, however I can post the dmesg output when Firefox core dumps every single time on startup. Firefox version is the latest, but this has been happening for months, so starting at maybe versions 104 or 105.

I had previously searched for that core dump and it led me to one of the vdpau packages, so I suspect the Nvidia card is to blame. I do some encoding sometimes (have no idea what codec exactly would be in use) and Firefox essentially works, so I kept it.

[cheker@cheker-pc Desktop]$ inxi -Fz
System:
  Kernel: 5.15.85-1-MANJARO arch: x86_64 bits: 64 Desktop: Xfce v: 4.18.0
    Distro: Manjaro Linux
#snip#
CPU:
  Info: quad core model: Intel Core i7-7700 bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 1289 min/max: 800/4200 cores: 1: 1294 2: 1298 3: 1272
    4: 1300 5: 1298 6: 1300 7: 1295 8: 1259
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] driver: nvidia v: 525.60.11
  Display: x11 server: X.Org v: 21.1.6 driver: N/A resolution: 1600x900~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 525.60.11 renderer: NVIDIA GeForce GTX 1060
    3GB/PCIe/SSE2
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
  Sound API: ALSA v: k5.15.85-1-MANJARO running: yes
  Sound Server-1: PulseAudio v: 16.1 running: yes
  Sound Server-2: PipeWire v: 0.3.63 running: yes
#snip#
[Fri Dec 30 15:12:24 2022] firefox[30022]: segfault at d8 ip 00007fbdd92c88c4 sp 00007ffe05daabf8 error 4 in libX11.so.6.4.0[7fbdd92b9000+8b000]
[Fri Dec 30 15:12:24 2022] Code: 84 00 00 00 00 00 f3 0f 1e fa 8b 47 1c c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 8b 47 74 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <48> 8b 87 d8 00 00 00 c3 0f 1f 40 00 f3 0f 1e fa 48 63 f6 48 c1 e6
[Fri Dec 30 15:12:24 2022] audit: type=1701 audit(1672413145.703:391): auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined pid=30022 comm="firefox" exe="/usr/lib/firefox/firefox" sig=11 res=1
[Fri Dec 30 15:12:24 2022] audit: type=1334 audit(1672413145.709:392): prog-id=83 op=LOAD
[Fri Dec 30 15:12:24 2022] audit: type=1334 audit(1672413145.709:393): prog-id=84 op=LOAD
[Fri Dec 30 15:12:24 2022] audit: type=1334 audit(1672413145.709:394): prog-id=85 op=LOAD
[Fri Dec 30 15:12:24 2022] audit: type=1130 audit(1672413145.709:395): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=systemd-coredump@2-30023-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[Fri Dec 30 15:12:24 2022] audit: type=1131 audit(1672413145.759:396): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=systemd-coredump@2-30023-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[Fri Dec 30 15:12:25 2022] audit: type=1334 audit(1672413145.853:397): prog-id=0 op=UNLOAD
[Fri Dec 30 15:12:25 2022] audit: type=1334 audit(1672413145.853:398): prog-id=0 op=UNLOAD
[Fri Dec 30 15:12:25 2022] audit: type=1334 audit(1672413145.853:399): prog-id=0 op=UNLOAD

removed

Okay so just in case someone stumbles onto this thread in the future, after the latest stable update VLC and OBS also started acting up for me. I installed libva-nvidia-driver from the AUR (it fixed a problem, therefore a valid solution) and that fixed VLC and OBS and it also fixed the Firefox coredumps.

However, it’s still crashing at random after unlocking the session. So that, on top of OP not coming back to confirm what card he has, makes me think that it’s unrelated to the NVIDIA card.

I haven’t fixed the issue but Firefox doesn’t crash as often after locking/unlocking the screen.