Firefox and games are constantly freezing and being unresponsive on GNOME, F42

Hello.

I’m getting constant freezes when using Firefox or playing games. Sometimes “Firefox is not responding” dialog opens up. The same thing happens with Steam games. The mouse can stop moving as well for a brief moment. This has definitely something to do with Nvidia drivers since it works just fine without them. It also works using KDE but I’d really like to use Gnome.

I have a freshly installed Fedora using Gnome with the latest updates installed. I followed https://rpmfusion.org/Howto/NVIDIA to install Nvidia drivers and everything seems to have been installed just fine.

Here’s my inxi logs

System:
  Kernel: 6.14.9-300.fc42.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
  Desktop: GNOME v: 48.2 tk: GTK v: 3.24.49 wm: gnome-shell dm: 1: GDM
    2: SDDM note: stopped Distro: Fedora Linux 42 (Workstation Edition)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: TUF GAMING B650-PLUS WIFI v: Rev 1.xx
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 3201
    date: 01/11/2025
Battery:
  ID-1: hidpp_battery_0 charge: 88% condition: N/A volts: 4.1 min: N/A
    model: Logitech G403 Prodigy Wired/Wireless Gaming Mouse serial: <filter>
    status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 9800X3D bits: 64 type: MT MCP arch: N/A
    rev: 0 cache: L1: 640 KiB L2: 8 MiB L3: 96 MiB
  Speed (MHz): avg: 2076 min/max: 600/5271 boost: enabled cores: 1: 2076
    2: 2076 3: 2076 4: 2076 5: 2076 6: 2076 7: 2076 8: 2076 9: 2076 10: 2076
    11: 2076 12: 2076 13: 2076 14: 2076 15: 2076 16: 2076 bogomips: 150404
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GP102 [GeForce GTX 1080 Ti] vendor: Gigabyte driver: nvidia
    v: 575.57.08 arch: Pascal pcie: speed: 2.5 GT/s lanes: 16 ports:
    active: none off: DP-1 empty: DP-2, DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3
    bus-ID: 01:00.0 chip-ID: 10de:1b06
  Display: wayland server: Xwayland v: 24.1.6 compositor: gnome-shell
    driver: gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: DP-1 model: Asus ROG PG279Q res: 2560x1440 hz: 144 dpi: 109
    diag: 686mm (27")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: nvidia inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 575.57.08
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2
    display-ID: :0.0
  API: Vulkan v: 1.4.313 surfaces: N/A device: 0 type: discrete-gpu
    driver: nvidia device-ID: 10de:1b06 device: 1 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings wl: wayland-info
    x11: xdriinfo, xdpyinfo, xprop, xrandr

Here’s the result of journalctl --no-hostname -b -g nvidia

Jun 11 19:58:45 kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.14.9-300.fc42.x86_64 root=UUID=3b8c327b-d8a2-42d0-a881-229cb2a23eb5 ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouveau,nov>
Jun 11 19:58:45 kernel: Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.14.9-300.fc42.x86_64 root=UUID=3b8c327b-d8a2-42d0-a881-229cb2a23eb5 ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouv>
Jun 11 19:58:45 dracut-cmdline[459]: Using kernel command line parameters:  rd.driver.pre=btrfs   BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.14.9-300.fc42.x86_64 root=UUID=3b8c327b-d8a2-42d0-a881-229cb2a23eb5 ro rootflags=subvol=root rhg>
Jun 11 19:58:46 kernel: nvidia: loading out-of-tree module taints kernel.
Jun 11 19:58:46 kernel: nvidia: module license 'NVIDIA' taints kernel.
Jun 11 19:58:46 kernel: nvidia: module license taints kernel.
Jun 11 19:58:46 kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 235
Jun 11 19:58:46 kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
Jun 11 19:58:46 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  575.57.08  Sat May 24 07:21:16 UTC 2025
Jun 11 19:58:46 kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
Jun 11 19:58:46 kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  575.57.08  Sat May 24 06:52:56 UTC 2025
Jun 11 19:58:46 kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
Jun 11 19:58:47 kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1
Jun 11 19:58:47 kernel: nvidia 0000:01:00.0: vgaarb: deactivate vga console
Jun 11 19:58:47 kernel: fbcon: nvidia-drmdrmfb (fb0) is primary device
Jun 11 19:58:47 kernel: nvidia 0000:01:00.0: [drm] fb0: nvidia-drmdrmfb frame buffer device
Jun 11 19:58:48 kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input15
Jun 11 19:58:48 kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input16
Jun 11 19:58:48 kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input17
Jun 11 19:58:48 kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input18
Jun 11 19:58:49 systemd[1]: Started nvidia-powerd.service - nvidia-powerd service.
Jun 11 19:58:49 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-powerd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 11 19:58:49 nvidia-powerd[1160]: nvidia-powerd version:2.0 (build 1)
Jun 11 19:58:49 systemd[1]: nvidia-powerd.service: Deactivated successfully.
Jun 11 19:58:49 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-powerd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 11 19:59:26 audit[16365]: SOFTWARE_UPDATE pid=16365 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:unconfined_service_t:s0 msg='op=install sw="kmod-nvidia-6.14.9-300.fc42.x86_64-3:575.57.08-2.fc42.x86_64" sw_t>
Jun 11 19:59:26 akmods[1140]: Building and installing nvidia-kmod[  OK  ]
Jun 11 19:59:27 systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load was skipped because of an unmet condition check (ConditionPathExists=!/sys/module/nvidia).
Jun 11 19:59:28 gnome-shell[16455]: Added device '/dev/dri/card1' (nvidia-drm) using atomic mode setting.
Jun 11 19:59:37 gnome-shell[17233]: Added device '/dev/dri/card1' (nvidia-drm) using atomic mode setting.

dmesg | grep nvidia

[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.14.9-300.fc42.x86_64 root=UUID=3b8c327b-d8a2-42d0-a881-229cb2a23eb5 ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core
[    0.027065] Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.14.9-300.fc42.x86_64 root=UUID=3b8c327b-d8a2-42d0-a881-229cb2a23eb5 ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core
[    3.238906] nvidia: loading out-of-tree module taints kernel.
[    3.238909] nvidia: module license 'NVIDIA' taints kernel.
[    3.238911] nvidia: module license taints kernel.
[    3.444377] nvidia-nvlink: Nvlink Core is being initialized, major device number 235
[    3.445280] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
[    3.669066] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    3.739117] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  575.57.08  Sat May 24 06:52:56 UTC 2025
[    3.744277] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    4.364718] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1
[    4.393430] nvidia 0000:01:00.0: vgaarb: deactivate vga console
[    4.395531] fbcon: nvidia-drmdrmfb (fb0) is primary device
[    4.395533] nvidia 0000:01:00.0: [drm] fb0: nvidia-drmdrmfb frame buffer device

Sometimes I can get Firefox to crash completely by trying to use Firefor profiler. That’s when I get a bunch of

kernel: NVRM: VM: invalid mmap

errors.

Any help on this issue would be greatly appreciated.