r/linuxquestions • • 23d ago

Support Help !! Stuck in a login loop after installing KDE on my Fedora (also crashed into emergency mode)

/r/kde/comments/1xpfydm/help_stuck_in_a_login_loop_after_installing_kde/
2 Upvotes

7 comments sorted by

1

u/DickBrainTime 23d ago edited 1d ago

Since both GNOME and KDE bounce back to login, I'd look for a system/session failure before reinstalling either desktop. The emergency-mode boot is another clue: it can indicate a failed mount or systemd unit.

When the loop happens, try Ctrl+Alt+F3 to open a text console, sign in and run these one at a time:

systemctl --failed
journalctl -b -p err --no-pager
systemctl status display-manager
journalctl -b -u display-manager --no-pager
df -h

If you've already rebooted into a working session, journalctl -b -1 -p err --no-pager can show errors from the previous boot. Look for a failed mount/service, GDM/SDDM errors, session crashes, or a full filesystem. I'd avoid another install/remove cycle until you see the first actual error. You can share the relevant lines after redacting usernames and private paths.

2

u/mello_hyu 23d ago

I checked the journal logs of the time of login attempts and a lot of interesting things I found out after my post.

  1. GDM authentication succeeds, the failure is happening after login succeeds.
  2. ksplashqml crashes with SIGABRT during Qt platform initialization (QGuiApplicationPrivate::createPlatformIntegration())
  3. kded6, plasmashell, and several other KDE processes also crashed with SIGABRT during the same earlier attempt.
  4. When I switched to Plasma Login Manager, plasma-login-greeter crashed at the same Qt platform initialization stage. I thought maybe giving plasma everything it needs will be helpful, this time the desktop just did not load up on reboot to the loading screen as well. Grub -> loading for a bit -> auto shutdown. Went into TTY and forced gdm again and it opened
  5. The journal also showed Akonadi database errors, dont know what that is

1

u/DickBrainTime 22d ago

That narrows it down: GDM is accepting your password, but several Plasma processes abort while Qt is setting up its display platform. I'd look for the first Qt/QPA error just before those SIGABRT lines rather than treating the Akonadi database warnings as the cause. Akonadi is KDE's mail/calendar service, so those errors could be secondary.

Since GNOME still starts, keep it as your recovery session. From GNOME/TTY, check the journal for the failed KDE boot with `journalctl -b -1 --no-pager | grep -Ei 'qt.qpa|platform plugin|could not connect|wayland|xcb|ksplashqml|plasmashell|kded6'` (use `-b 0` if it was the current boot). Look for a specific message like a missing `wayland`/`xcb` plugin or "could not connect to display" before the crash. Also, `printenv | grep -E '^(QT_|LD_LIBRARY_PATH|XDG_SESSION_TYPE|WAYLAND_DISPLAY|DISPLAY)'` can reveal custom Qt paths; Qt cautions against a global `QT_PLUGIN_PATH`. Could you share the first such error lines with usernames/private paths redacted? I'd hold off on more install/remove attempts until that's clearer.

1

u/mello_hyu 23d ago

The key thing is, if I force restart while gnome is selected and then login to gnome, logged in. If i restart with kde selected...boom emergency mode. Recreated this twice now

And thanks for the suggestion, I will do it and let you know if anything significant comes up