Bug 335088

Summary: Crash causes loss of all session state. All windows get dumped into All Activities
Product: [Plasma] kwin Reporter: Eric S <subscriber>
Component: activitiesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: notuxius, support
Priority: NOR    
Version First Reported In: 4.11.9   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eric S 2014-05-20 14:28:23 UTC
Sometimes when kwin crashes,, when it starts up again ALL windows from ALL activities get dumped into All Activities. This is despite this info having persisted across over many days and across several system restarts, it just loses all activity session data. 

Reproducible: Sometimes

Actual Results:  
On restart of kwin all windows are in Al Activities

Expected Results:  
On restart of kwin each window should be assigned to the same activity or activities to which is was assigned before the crash.

This is extremely discouraging to someone trying to use activities to their fullest potential with many windows carefully sorted amongst different activitis. Kwin should guard against this happening. I assume it occurs if the crash occurs at a moment when it is saving this information to disk, perhaps corrupting it. This could be protectd against by always backin up and maintaining the last copy before rewriting it, ideally the last several copies.
Comment 1 Alexander Mentyu 2018-04-04 12:51:30 UTC
*** Bug 384938 has been marked as a duplicate of this bug. ***
Comment 2 Alexander Mentyu 2018-04-04 15:50:05 UTC

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