NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.94k stars 13.96k forks source link

GNOME Session hangs when logging in too fast after boot #312772

Open 500InternalError opened 5 months ago

500InternalError commented 5 months ago

Describe the bug

When I boot my machine and login in a very short time, gdm hangs.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Change your password to something very short so you can login quickly
  2. reboot your machine, and login as fast as possible at the time you see the gdm login screen
  3. gdm hangs

Expected behavior

gdm should not hang

Additional context

It seems that this problem has the same root cause with https://github.com/NixOS/nixpkgs/issues/103746. This workaround fixes this issue for me.

Notify maintainers

@bobby285271 @hedning @jtojnar @dasj19

Metadata

> $ nix-shell -p nix-info --run "nix-info -m"                                             
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.0, NixOS, 24.05 (Uakari), 24.05.20240515.33d1e75`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/0qd773b63yg8435w8hpm13zqz7iipcbs-source`

Add a :+1: reaction to issues you find important.

nasrally commented 4 months ago

I think this also happens to me, after updating to 24.05 autoLogin doesn't work anymore and gdm behaves very weird, glitching all over the place

lig3 commented 4 months ago

Don't know if my case relates. Anyway mine is that, after logging in, wallpaper shows up correctly, but everything else hangs with no reaction.

This happens quite often, but not always.

My current workaround is to restart the display manager in another tty (Ctrl + Alt + F2 then execute sudo systemctl restart display-manager.service) per this.

jtojnar commented 4 months ago

@lig3 Do you perhaps have dash-to-dock enabled? If so make sure you have at least gnomeExtensions.dash-to-dock version 90 (it fixes issue that sounds similar to what you describe). If not, try to looking at the systemd journal.