Bug 462103

Summary: System can fall asleep/suspend while job is in progress causing job to fail midway with data loss potential
Product: [Applications] partitionmanager Reporter: Jacob Mungle <jelgnum>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: major CC: bnafta, jakefinleyy
Priority: NOR    
Version: 22.08.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jacob Mungle 2022-11-21 19:54:02 UTC
SUMMARY
When using partition manager to move partitions my device was allowed to suspend the session and caused the partition move to fail midway, causing my partition to be an unknown file type that wouldn't show up as the home partition. Moving the partition back to it's original sectors caused it to be recognized again as ext4 and my data survived. Other time caused a borked Manjaro install with no recovery.

STEPS TO REPRODUCE
1. Start partition manager
2. Use it to move partitions on a disk
3. Let device go past suspend time
4. Device will fail at moving partitions at wherever task it suspended at

OBSERVED RESULT
Device will go into suspend/sleep causing partition job to fail and potentially losing peoples data

EXPECTED RESULT
Device doesn't go into suspend/sleep before important processes are completed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
This has happened to me on Neon and Manjaro Live CDs and an Arch Machine while moving partitions on an external HDD, all of these through the past year. Most recent was an hour ago on the Live USB Neon.
Comment 1 Andrius Štikonas 2022-11-21 20:22:13 UTC
Hmm, somehow I thought we already are doing that but I can't see it. I must have been confusing it with KTorrent.
Comment 2 Thomas Bertels 2024-05-01 06:26:10 UTC
*** Bug 472159 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Bertels 2024-05-01 06:26:40 UTC
*** Bug 479000 has been marked as a duplicate of this bug. ***