Bug 465109

Summary: Gwenview freezes with strange dialog when attempting to view images in 2 same-named directories
Product: [Applications] gwenview Reporter: Alain Knaff <kde>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: justin.zobel
Priority: NOR    
Version First Reported In: 20.12.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alain Knaff 2023-02-01 09:22:41 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
***


STEPS TO REPRODUCE
1. Set up the following directory structure:
  mkdir -p circle/sub
  mkdir -p rect/sub  
2. Put an image of a circle into circle/sub and an image of a rectange into rect/sub
3. Attempt to view both directories in gwenview:
  gwenview circle/sub rect/sub

OBSERVED RESULT
Gwenview pops up a weird dialogue "File already exists" showing the thumbnails of both files overlaid on a folder icon.
Dialogue is not actually responsive, i.e. clicking anywhere on it does nothing. Even attempting to close it using the cross in titlebar does nothing
KDE pops up 2 notifications "Gwenview Coying (Failed) Application closed unexpectedly." and "Gwenview Copying 2 files to /tmp/gwenview-JZONlr" with a progressbar oscillating left to right.
At this point, gwenview and its dialogue can only be closed using Ctrl-C or kill.

EXPECTED RESULT
It should just show the images in both directories, just as if the 2 subdirectories had different names

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System) about System *where*?
KDE Plasma Version: 4:5.20.5-4
KDE Frameworks Version: 5.78.0-3
Qt Version: 5.15.2-5

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2023-02-02 01:18:48 UTC
Can confirm it hangs. I think the filenames have to be the same name though. As I tried with two images, one in rect/sub and one in circle/sub and it didn't have the issue.

But when I did gwenview circle/sub ~/Pictures it caused it to fail. That's because the original filename I copied in was also present. It's a very odd bug, but it did hang for me, and the window was unresponsive.
Comment 2 A Linux User 2025-09-04 12:18:39 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)?
Comment 3 Alain Knaff 2025-09-05 07:41:58 UTC
(In reply to A Linux User from comment #2)
> Thank you for the bug report. Unfortunately we were not able to get to it
> yet. Can we ask you to please check if this is still an issue with Gwenview
> 25.08.0 (the latest released version)?

The behavior has now changed. The application now longer wedges itself into an unclosable window, but instead simply ignores the second same-named subdirectory. Still not quite as expected, but much less bad than before.