Bug 434369 - Login after logout hangs for 3 minutes
Summary: Login after logout hangs for 3 minutes
Status: RESOLVED DUPLICATE of bug 429426
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: 5.21.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-13 20:46 UTC by medin
Modified: 2021-04-12 18:40 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-03-13 20:46:37 UTC
After logout then login the boot splash screen freezes for more than 3min then desktop appears.

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.4.101-1-MANJARO
OS Type: 64-bit


Backtrace :

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/kglobalaccel5'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f68c8423ef5 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007f68c8423ef5 in raise () from /usr/lib/libc.so.6
#1  0x00007f68c840d862 in abort () from /usr/lib/libc.so.6
#2  0x00007f68c88239ac in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
#3  0x00007f68c8e19646 in QGuiApplicationPrivate::createPlatformIntegration() () from /usr/lib/libQt5Gui.so.5
#4  0x00007f68c8e19ae1 in QGuiApplicationPrivate::createEventDispatcher() () from /usr/lib/libQt5Gui.so.5
#5  0x00007f68c8a4f686 in QCoreApplicationPrivate::init() () from /usr/lib/libQt5Core.so.5
#6  0x00007f68c8e1cb20 in QGuiApplicationPrivate::init() () from /usr/lib/libQt5Gui.so.5
#7  0x00007f68c8e1da88 in QGuiApplication::QGuiApplication(int&, char**, int) () from /usr/lib/libQt5Gui.so.5
#8  0x00005646b5d0908f in ?? ()
#9  0x00007f68c840eb25 in __libc_start_main () from /usr/lib/libc.so.6
#10 0x00005646b5d093fe in ?? ()
Comment 1 Nate Graham 2021-03-15 23:36:02 UTC
Are you using systemd startup?
Comment 2 medin 2021-03-16 00:02:47 UTC
I tried it once and found problems with kwallet appearing with every boot then I disabled it forever by putting "systemdBoot=false" in ~/.config/startkderc, so I think systemd startup is disabled.
Comment 3 Nate Graham 2021-03-16 02:23:02 UTC
Thanks.
Comment 4 Nate Graham 2021-03-21 03:47:45 UTC
Can reproduce with the wayland session and systemd boot. Just log out and log back in. The second login takes forever. Rebooting instead of logging out fixes it. It seems like there could be some dangling processes or something.
Comment 5 storagebin95 2021-03-24 15:52:09 UTC
I have the same problem on kde neon:
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-70-generic
OS Type: 64-bit
Graphics Platform: X11

The problem usually occurs after mounting and unmounting operations of encryption software (veracrypt, cryfs, cryptomator). A "solution" I have discovered is that before logging back in change to wayland. Then log out again and change back to x and login again. Everything goes smoothly but is a serious annoyance.
Comment 6 Bharadwaj Raju 2021-03-25 17:31:50 UTC
> It seems like there could be some dangling processes or something.

If it's only with Wayland then it is probably related to https://bugs.kde.org/show_bug.cgi?id=433293
Comment 7 medin 2021-03-25 17:33:46 UTC
(In reply to Bharadwaj Raju from comment #6)
> > It seems like there could be some dangling processes or something.
> 
> If it's only with Wayland then it is probably related to
> https://bugs.kde.org/show_bug.cgi?id=433293

No, I use only X11, Wayland has many weird problems.
Comment 8 Nate Graham 2021-03-25 20:09:20 UTC
If you do use systemd boot, does the problem go away? I know the KWallet issue will come back, but can you try again just for testing purposes?
Comment 9 storagebin95 2021-03-26 22:43:51 UTC
The problem occurs only with x11, never wayland.
Comment 10 medin 2021-03-26 23:39:59 UTC
--------------------------------
Without systemd startup : 
--------------------------------

=> Wayland
Wayland always starts desktop without failing or being stuck even if it generates these crashes (coredumpctl)
/usr/bin/akonadi_maildir_resource
/usr/bin/kwalletd5
/usr/lib/baloorunner
/usr/lib/kactivitymanagerd
/usr/bin/korgac
/usr/bin/akonadi_migration_agent
/usr/bin/akonadi_newmailnotifier_agent
/usr/bin/kalarm
/usr/bin/akonadi_followupreminder_agent
/usr/bin/akonadi_maildispatcher_agent
/usr/bin/yakuake
/usr/bin/akonadi_notes_agent
/usr/bin/akonadi_mailfilter_agent
/usr/bin/akonadi_sendlater_agent
/usr/bin/akonadi_unifiedmailbox_agent
/usr/bin/msm_kde_notifier
/usr/bin/akregator


=> X11
With X11 it fails a lot with little success to logout then login, it generates this crash (coredumpctl)
/usr/bin/kglobalaccel5

When it fails (which is often) it becomes either stuck infinitely at boot splash or takes many minutes to show desktop.



--------------------------------
With systemd startup : 
--------------------------------

=> Wayland
Wayland always starts desktop without failing or being stuck even if it generates these crashes (coredumpctl)
/usr/lib/kf5/klauncher
/usr/bin/kded5
/usr/bin/kwalletd5
/usr/bin/yakuake
/usr/bin/kded5
/usr/bin/akregator
/usr/lib/xdg-desktop-portal-kde
/usr/bin/ksplashqml


=> X11
With X11 it fails (not always) and generates this crash (coredumpctl)
/usr/bin/kglobalaccel5

When it fails (which is often) it becomes either stuck infinitely at boot splash or takes many minutes to show desktop.

And running thissystemd-analyze shows :
systemd-analyze  --user  blame
50.983s plasma-ksmserver.service                                        
39.376s plasma-ksplash-ready.service                                    
31.259s plasma-plasmashell.service                                      
30.843s plasma-restoresession.service
Comment 11 Eric Donkersloot 2021-04-12 11:05:30 UTC
This is a truly annoying bug, any updates on this?
I'm having this issue on a fresh KDE Neon install:

Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.8.0-48-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 12 flan_suse 2021-04-12 14:25:51 UTC
Whoever's reading, this might be related to another bug. Can you try out the two temporary fixes and see if they work? Namely the steps on comment #42 and comment #40:

https://bugs.kde.org/show_bug.cgi?id=429426#c42

https://bugs.kde.org/show_bug.cgi?id=429426#c40


@David Edmundson already submitted two patches to be merged:

https://invent.kde.org/frameworks/kglobalaccel/-/merge_requests/17

https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/773

I'm not saying this *is* the bug for everyone, but it might affect a decent number of people and there might be some overlap in our login crashes / 3-min freezes.
Comment 13 flan_suse 2021-04-12 14:26:58 UTC
FYI: The above links (to the steps) might be different for each distro. Those comments are for Arch-based / Manjaro systems.
Comment 14 David Edmundson 2021-04-12 14:45:17 UTC
Sounds similar, lets assume they fix it until we have any evidence otherwise
Comment 15 Nate Graham 2021-04-12 18:40:12 UTC

*** This bug has been marked as a duplicate of bug 429426 ***