Bug 489613

Summary: When I select 5 images, Gwenview corrupts the bottom-right quadrant of its multi-preview pane.
Product: [Applications] gwenview Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kdedev
Priority: NOR    
Version First Reported In: 24.08.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://www.mediafire.com/file/1esd7d6yw5g63y0/VID_20240702_152428.mp4/file
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screencast which demonstrates it isn't captured by Spectacle.
Archive of images which cause it.
Reproduction videograph for `#c0`.
Reproduction videograph for `#c5`.

Description Roke Julian Lockhart Beedell 2024-07-02 14:34:56 UTC
Created attachment 171282 [details]
Screencast which demonstrates it isn't captured by Spectacle.

SUMMARY

When capturing screenshots for [this Ask Ubuntu answer](https://askubuntu.com/revisions/1519339/2#:~:text=enter%20image%20description%20here,enter%20image%20description%20here), I noticed that if I selected all 5 images, one in the corner would display itself and its surrounding controls in a corrupted fashion. This didn't occur if I selected more or less.

STEPS TO REPRODUCE

Select 5 images. That's it. 6 or 4 doesn't trigger it.

OBSERVED RESULT

The display is quite corrupted - the image and its associated buttons display multiple times, clipped and moving. This is visible at [MediaFire](https://www.mediafire.com/file/1esd7d6yw5g63y0/VID_20240702_152428.mp4/file) Unfortunately, it's 80 MiB, so *I* can't attach it to this report.

EXPECTED RESULT

This shouldn't occur.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.7-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION

Interestingly, when I attempted to capture this via Spectacle, all it displayed was a black square where this was occurring. You can see this in [this WebM file at MediaFire](https://www.mediafire.com/file/8phgt8js8azt68s/Screencast_20240702_152309.webm/file), which has been attached to the report.
Comment 1 Roke Julian Lockhart Beedell 2024-07-02 14:36:25 UTC
Created attachment 171283 [details]
Archive of images which cause it.

I've included 10 to demonstrate that it appears to work on any 5 screenshots I select.
Comment 2 Roke Julian Lockhart Beedell 2024-07-02 14:43:09 UTC
Created attachment 171284 [details]
Reproduction videograph for `#c0`.

...I used Spectacle to record VLC playing the WebM file. Sorry for not thinking of that earlier. It's only a few seconds, though, so the original is a slightly better demonstrator.
Comment 3 TraceyC 2024-07-08 20:44:40 UTC
Thank you for the bug report, the test files and the detailed screen recordings. I can definitely see the preview corruption on your screen.
I'm not able to reproduce this with Solus (X11) or KDE Neon (Wayland), both on Plasma 6.1.2., using  jpeg files, or the screenshots you provided.

I'll leave this open so that hopefully someone can reproduce on a different system.
Comment 4 Roke Julian Lockhart Beedell 2024-07-08 22:21:19 UTC
(In reply to TraceyC from comment #3)
Glad that it's useful.
Comment 5 Roke Julian Lockhart Beedell 2024-09-08 12:04:24 UTC
Created attachment 173438 [details]
Reproduction videograph for `#c5`.

(In reply to Roke Julian Lockhart Beedell from comment #4)
Still occurs in https://koji.fedoraproject.org/koji/rpminfo?rpmID=39853447.