Bug 412147

Summary: Stuck scanning devices
Product: [Applications] partitionmanager Reporter: Brennan Kinney <polarathene-signup>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: normal CC: polarathene-signup
Priority: NOR    
Version: 4.0.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Brennan Kinney 2019-09-21 05:24:50 UTC
SUMMARY

After a failed mount with Dolphin, an external USB stick(with corrupted exfat filesystem), seemed to be the cause of a device scan with PartitionManager being stuck. It remained on 50% for.. 5 mins or so, saying it was scanning /dev/sdc (the problematic device), and it was not possible to cancel this process(clicking the dialogs X button to close did nothing.

I killed it via ksysguard. If a scan is performed prior to any attempt to mount the device, the scan performed fine, only after the failed mount(dirty filesystem which Windows itself cannot repair), does it cause this behaviour with scan.

STEPS TO REPRODUCE
1. Fail to mount a corrupt(or possibly dirty/uncleanly mounted) exfat system.
2. Try to scan with PartitionManager(I had it open already so this was a 2nd scan)
3. Scan gets stuck when scanning the device with bad exfat filesystem.

OBSERVED RESULT

PartitionManager stuck scanning, unable to cancel/skip problematic device.

EXPECTED RESULT

Time out skip device and raise error/notification to user after, or permit cancelling the scan.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro KDE (up to date), Kernel 4.19.69-1-MANJARO
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0