Bug 491421 - Session management authentication occasionally fails
Summary: Session management authentication occasionally fails
Status: RESOLVED DUPLICATE of bug 491130
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-11-09 09:46 UTC (History)
7 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.
Comment 1 David Edmundson 2024-10-20 14:13:20 UTC
Can you run:  `iceauth list` at a time when it's working and not working. 

Can you also check if the path it lists exists on disk:

i.e if you see:
ICE "" local/archlinux:@/tmp/.ICE-unix/1241 MIT-MAGIC-COOKIE-1 b53dad8d49d42cc7d3f0025d22f0215c

that there's a socket at /tmp/.ICE-unix/1241
Comment 2 Bug Janitor Service 2024-11-04 03:46:22 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 zb4ng 2024-11-09 06:37:23 UTC
Just happened again...
But the workaround of disabling saving on logout and saving the session manually from time to time really helps. So if the bug occurs, you just have to logout and login.
See here for more details:
https://bugs.kde.org/show_bug.cgi?id=487912#c46
Comment 4 Kishore Gopalakrishnan 2024-11-09 09:46:52 UTC
Marking as duplicate of https://bugs.kde.org/show_bug.cgi?id=491130 for now; will reopen if the issue recurs with a version of Plasma where that is fixed.

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