System crashing after returning from lockscreen

The system is crashing when returning from lockscreen.
It happens randomly; most of the time, it works fine.

The log always shows these messages:
13:05:30 gdm3: Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
13:05:18 systemd: Failed to start app-gnome-gnome\x2dkeyring\x2dssh-145344.scope - Application launched by gnome-session-binary.
13:05:15 gdm3: Gdm: on_display_added: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
13:05:14 gdm-session-wor: gkr-pam: unable to locate daemon control file
13:05:04 gdm3: Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
13:03:27 gnome-shell: Received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 3078506 error_code 3 request_code 7 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the MUTTER_SYNC environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the mtk_x_error() function.)

System Details Report


Report details

  • Date generated: 2026-01-13 13:15:38

Hardware Information:

  • Hardware Model: Acer Aspire F5-573G
  • Memory: 16.0 GiB
  • Processor: Intel® Core™ i5-7200U × 4
  • Graphics: Intel® HD Graphics 620 (KBL GT2)
  • Graphics 1: NVIDIA GeForce 940MX
  • Disk Capacity: 608.1 GB

Software Information:

  • Firmware Version: V1.27
  • OS Name: Zorin OS 18 Core
  • OS Build: (null)
  • OS Type: 64-bit
  • Windowing System: X11
  • Kernel Version: Linux 6.14.0-37-generic

Using perplexity A.I. search engine gives:

gdm3: Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed

This message is a GDM (GNOME Display Manager) assertion warning that has become common with newer GDM versions and is usually harmless by itself.

What the message means

  • Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed comes from GDM’s code path that handles “remote displays” (remote desktop / login sessions).

  • On many systems this assertion is triggered even for normal local sessions due to a logic bug, so it shows up in the journal without necessarily indicating a real failure of your graphical session.

When it is usually safe to ignore

In many reports:

  • Users can log in and use the desktop normally, with this line only appearing in journalctl -u gdm.

  • GNOME upstream has already fixed the underlying issue in newer GDM releases (e.g. GDM 47 or the 46.3 series), and distributions are gradually backporting the patch.

If your GUI works fine and this is just noise in the logs, the practical options are:

  • Make sure your system and GDM package are fully updated and then ignore the message if nothing is actually broken.

When it may indicate a real problem

Sometimes this line appears together with:

  • Login screen failing to appear, looping, or dropping back to text console.

  • Random crashes when locking/unlocking the screen or closing graphics-intensive apps.

If you see visible problems along with the assertion, typical troubleshooting steps seen in reports include:

  • Updating to the latest GDM and GNOME packages from your distribution (to get the fix).

  • Checking GPU/graphics driver (NVIDIA, AMD/ROCm, etc.) and updating or temporarily switching drivers if the crashes coincide with GPU stack changes.

  • Looking at the surrounding log lines in journalctl -b -u gdm or journalctl -b to find the real error (for example, a GPU crash, Wayland issue, or extension crash) and addressing that instead.

If you describe:

  • Your distro and version (e.g. Ubuntu 24.04, Fedora 40, etc.)
  • GDM version (gdm --version or from your package manager)
  • What actually happens on screen (works fine / crashes / no login)

a more targeted, step-by-step fix can be suggested.

Related

Check GDM version and recent updates installed.

Pertinent References out of 10 listed:

https://www.reddit.com/r/gnome/comments/1etqdby/deleted_by_user/

You could always install lightdm as an alternative to gdm3 and see if the situation improves? I just wish Zorin had left Gnome behind, (and Ubuntu) and based 18 on Debian and the Plasma Desktop which is what I have done with Zorin 18:

Maybe it helps when You reinstall gdm3. You can do that with the Terminal Command:

sudo apt reinstall gdm3

I did it, but it didn't solve the problem.
After hours of using the PC, the error occurred again.

I'm having this exact same problem too