After the Debian 12 → 13 upgrade the login ends on a black screen and the session drops back to GDM. Diagnosis, the actual cause and a permanent fix.
Problem
After a standard apt full-upgrade from Debian 12 to 13 the screen goes black for a few seconds once the password is entered in GDM and the session returns to the login. The X11 fallback works, the Wayland session does not.
Symptoms
- login loop only in the Wayland session, X11 starts fine
- no error message in GDM
-
gnome-shellexits within 2 s of start with exit code 1
Environment
Diagnosis
The first step is the session log from the last failed start:
journalctl --user -b -u org.gnome.Shell@wayland.service
gnome-shell[2114]: JS ERROR: Extension launcher@example TypeError: Main.panel._leftBox is undefined gnome-shell[2114]: Execution of main.js threw exception
journalctl --user, not the system journal. That is the most common dead end.Root cause
An incompatible GNOME extension installed per-user survived the upgrade and crashes the whole shell when the Wayland session starts. X11 is unaffected because the extension loads later there.
Fix
Disable extensions outside the session (from a TTY or the X11 fallback):
gsettings set org.gnome.shell disable-user-extensions true
The Wayland session then starts. Afterwards update and re-enable extensions one at a time; the incompatible one lives in ~/.local/share/gnome-shell/extensions.
Notes and limits
The same pattern (extension → shell crash → login loop) applies to other distributions with GNOME 46+. The diagnostic procedure carries over.
Sources
- GNOME Shell issue tracker — extension compatibility after a major upgrade ↗
- Debian release notes: trixie, Desktop chapter ↗
- Own verification, 18/05/2026, environment as above