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 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.
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.