Bug 491421 - Session management authentication occasionally fails
Summary: Session management authentication occasionally fails
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.1.3
Platform: Other Other
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-08 04:45 UTC by Kishore Gopalakrishnan
Modified: 2024-08-31 08:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2024-08-08 04:45:49 UTC
SUMMARY
Occasionally, session restore fails to restore the application state. All the windows are opened on the right activities and virtual desktops, but the applications themselves (e.g. Dolphin, Kate) do not restore their state.

When this occurs, I see error messages like the following in my system logs:
```
Aug 08 10:02:54 kishore-thinkpad-e495 dolphin[9408]: Qt: Session management error: Authentication Rejected, reason : MIT-MAGIC-COOKIE-1 authentication rejected
```
(and many identical errors coming from Kate, Konsole etc.)

STEPS TO REPRODUCE
Unknown; issue only happens intermittently.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.6.42-1-lts (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
May be related to bug 491130, but the reporter there describes different behaviour (that some windows are not restored). They do not have the error message I mentioned in their logs. Moreover, logging out and logging in after this bug occurs does not restore the previously saved session for me (just opens with an empty session).

If there is additional information I can provide that would help debug the issue, please let me know.