Bug 481470 - Editing enough files in Gwenview eventually causes files to disappear from USB drive
Summary: Editing enough files in Gwenview eventually causes files to disappear from US...
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Neon Linux
: NOR grave
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-17 15:27 UTC by Steve Zakulec
Modified: 2024-02-26 03:24 UTC (History)
0 users

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 Steve Zakulec 2024-02-17 15:27:34 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Hi, seemingly editing enough photos from an external USB drive in Gwenview will eventually cause the drive to have missing files, and no longer show all of the drive's files unless you run a filesystem check.

STEPS TO REPRODUCE
1. Put a large number (68 or so in my case) of TIFF scans on an NTFS-formatted USB stick. You can download https://archive.org/details/Ford-Times-May-1978 and extract the CBZ file to a drive to recreate my setup.
2. Open up the first file in Gwenview, and crop as desired.
3. Keep cropping successive files until Gwenview shows you the first file

OBSERVED RESULT
Gwenview unexpectedly wraps around to the first file before you've gone through all the files on the disk, and checking the disk shows files missing from the drive.

EXPECTED RESULT
You can safely crop all of the files, and everything is still present on the drive at the end.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Gwenview 23.08.4
Kernel Version: 6.5.0-15-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: LENOVO
Product Name: 80SA
System Version: LENOVO_IDEAPAD

ADDITIONAL INFORMATION
Drive is automounted as such:
dev/sdb2 /media/steve/scans ntfs3 rw,nosuid,nodev,relatime,uid=1000,gid=1000,windows_names,iocharset=utf8 0 0

No errors show up in Gwenview.
Drive is a Kingston Technology DataTraveler Max, ID 0951:177f
Comment 1 Steve Zakulec 2024-02-26 03:24:30 UTC
Got it to happen on my Neon Unstable testing laptop:
Gwenview 24.04.70
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-18-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-2370M CPU @ 2.40GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 3000
Manufacturer: Dell Inc.
Product Name: Inspiron 3520

Edited 30 photos (same kind as my test images) with cropping quickly, saving each one before moving on to the next

I also have the error reports from checking the disk on a Windows laptop, and then repairing after errors were found.