Bug 455439

Summary: Kwin crashing reset almost all KDE related ettings. Can safety be improved or investigate why this happened?
Product: [Plasma] kwin Reporter: yizel7
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: nate
Priority: NOR    
Version First Reported In: 5.24.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description yizel7 2022-06-16 19:50:58 UTC
SUMMARY
I am not sure how useless this bug ticket would be but creating it so there is at least a log. Maybe someone can play around with trying to reproduce if they have time or want to have fun.

Basically what happened was I was using my laptop as usual, played some games. Did an Arch update (sudo pacman -Syu) then turned off my laptop and went outside. When I came home and powered on my laptop almost all of my KDE settings were gone/reset to default. My Dolphin was like I had never touched it before, as was Plasma. All of my icon only desktop pins were gone except the 4 default. And my widgets were gone. Wallpaper was back to the default one.

I had made a post on Reddit and another user mentioned they had a similar encounter with xwayland crashing.

https://old.reddit.com/r/kde/comments/vd6g6h/arch_did_an_update_and_all_only_my_kde_related/

STEPS TO REPRODUCE
1. Make changes to settings like wallpaper, Dolphin, icon only task manager placement, add icons, widgets
2. Force kwin or xwayland to crash
3. upon getting logged back in or rebooting your settings may be reset to default/deleted.

OBSERVED RESULT
Almost all KDE related settings were deleted/reset to default. Some remained like my saved wi-fi and having widgets downloaded. But the actual settings for those were all reset/deleted. Dolphin was like if it was new, Plasma was like if it was new. Wallpaper was default.

EXPECTED RESULT
This bug ticket is more so to investigate why crashing of kwin, xwayland or anything else can nuke KDE settings. How are they related? Could something have been writing to the settings during the crash? But then why would almost all KDE settings reset even if they are completely unrelated? Perhaps further safety could be put into place where a duplicate of the setting is made and only deleted if the original setting saved? I imagine this would work upon a reboot or something it would check if the current setting is not corrupt and delete the back up. Or replace the corrupt on with the back up.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.95.0
Qt Version: 5.14.5

ADDITIONAL INFORMATION
Please move this to another category if it would suite better, however for me it was kwin that crashed when everything reset. Another user had reported it happened to them in xwayland.
Comment 1 Nate Graham 2022-06-16 22:19:50 UTC
I'm a bit confused. You say:

> Did an Arch update (sudo pacman -Syu) then turned off my laptop and went outside. When I
> came home and powered on my laptop almost all of my KDE settings were gone/reset to default

But then:

> 1. Make changes to settings like wallpaper, Dolphin, icon only task manager placement, add icons, widgets
> 2. Force kwin or xwayland to crash
3. upon getting logged back in or rebooting your settings may be reset to default/deleted.

So which is it? Did this issue happen after you turned on the computer following a seemingly successful update, or a KWin crash? Or an XWayland crash? Those are all different things.
Comment 2 Bug Janitor Service 2022-07-01 04:37:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-07-16 04:36:59 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!