Fedora keeps Crashing

My fedora 40 keeps crashing and closing my session, files, application without saving. It has been happening to me for past 1 month every 1 hour. It is been very painful. Problem Reporting is not logging anything. When I inspect logs I find following.

Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
Failed to start app-gnome-user\x2ddirs\x2dupdate\x2dgtk-52233.scope - Application launched by gnome-session-binary.
Gdm: on_display_added: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
gkr-pam: unable to locate daemon control file

I even reinstated Fedora still it persists. I am only using GPU Superfxctl Swith Extention for only using Integrated GPU in my laptop with ROG control Center.

Please provide info about your system from inxi -Fzxx.

Please provide more details – does the display freeze or go to a black screen or does the system just stop responding. Can you connect to it from another system with ssh?
How do you restart your session – power off, reboot, …? Can you open a text console after the session is closed?

Issues like this are sometimes caused by bugs in optional extensions. You can check this by creating a new user login with just the default configuration to see if the problem is connected to your user login.

Your next step should be to rule out hardware problems. Fedora provides memtest86+ on the Live USB Installer images. It takes many hours to properly check memory. Gnome Disks supports S.M.A.R.T mass storage self-tests. Some vendors provide bootable test images for their drives.

This error is not important, it’s related to a check by GDM whether the session is local or remote.

System:
  Kernel: 6.10.11-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.5 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Laptop System: ASUSTeK product: ROG Zephyrus G14 GA402RJ_GA402RJ
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: GA402RJ v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: GA402RJ.319 date: 06/06/2023
Battery:
  ID-1: BAT0 charge: 20.0 Wh (33.3%) condition: 60.0/76.0 Wh (78.9%)
    volts: 15.9 min: 15.9 model: ASUSTeK ASUS Battery serial: N/A
    status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 9 6900HS with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3+ rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 814 high: 2343 min/max: 400/4935 cores: 1: 1332 2: 400
    3: 2343 4: 400 5: 1331 6: 400 7: 1343 8: 400 9: 1325 10: 400 11: 400 12: 400
    13: 400 14: 400 15: 400 16: 1354 bogomips: 105407
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Rembrandt [Radeon 680M] vendor: ASUSTeK driver: amdgpu
    v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-2
    empty: DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8, DP-9, Writeback-2
    bus-ID: 07:00.0 chip-ID: 1002:1681 temp: 51.0 C
  Device-2: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-3:2 chip-ID: 13d3:56eb
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.2
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-2 model: BOE Display 0x0a1d res: 2560x1600 dpi: 215
    diag: 356mm (14")
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.1.7 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon 680M (radeonsi rembrandt LLVM
    18.1.6 DRM 3.57 6.10.11-200.fc40.x86_64) device-ID: 1002:1681
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 07:00.1 chip-ID: 1002:1640
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: ASUSTeK
    driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 07:00.5 chip-ID: 1022:15e2
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 07:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.10.11-200.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.8 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave ASUS PCE-AXE59BT driver: mt7921e v: kernel pcie:
    speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 14c3:7922
  IF: wlp5s0 state: up mac: <filter>
  IF-ID-1: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
Bluetooth:
  Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 5-1:2 chip-ID: 13d3:3568
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
Drives:
  Local Storage: total: 953.87 GiB used: 155.59 GiB (16.3%)
  ID-1: /dev/nvme0n1 vendor: Micron model: 2450 MTFDKBA1T0TFK
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 39.9 C
Partition:
  ID-1: / size: 592.91 GiB used: 80.95 GiB (13.7%) fs: btrfs
    dev: /dev/nvme0n1p4
  ID-2: /boot size: 973.4 MiB used: 329 MiB (33.8%) fs: ext4
    dev: /dev/nvme0n1p3
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p2
  ID-4: /home size: 592.91 GiB used: 80.95 GiB (13.7%) fs: btrfs
    dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 105 MiB (1.3%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 52.5 C mobo: 48.0 C gpu: amdgpu temp: 51.0 C
  Fan Speeds (rpm): cpu: 0
Info:
  Memory: total: 16 GiB note: est. available: 14.85 GiB used: 5.07 GiB (34.1%)
  Processes: 710 Power: uptime: 19h 20m wakeups: 7 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 26 Compilers: clang: 18.1.8 gcc: 14.2.1
    Shell: Bash v: 5.2.26 running-in: gnome-terminal inxi: 3.3.34

I have tried disabling all extensions still i get the error and the crash. I am using system locally, I get black screen and after some seconds it takes me back to login screen. My memory and storage are fine.

Since you have an AMD cpu with integrated graphics, it is likely related to driver regressions that have been around in the last few kernels. Do you still have kernel 6.10.9 installed? If you boot into that there is a good chance that the issue will be absent.

Added amdgpu

I’m using Linux 6.10.11-200.fc40.x86_64

You should be able to press a key after your EFI loader finishes to open GRUB and boot another kernel. Try booting 6.10.9 if you have it in there.