Bug 468585

Summary: Dolphin has graphical glitches when trying to open a file with no default association
Product: [Applications] dolphin Reporter: burak.yncr.4444
Component: view-engine: icons modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: major CC: burak.yncr.4444, kfm-devel
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The glitches I captured

Description burak.yncr.4444 2023-04-16 18:47:13 UTC
Created attachment 158155 [details]
The glitches I captured

SUMMARY
After installing Ark (while no other archiver installed) to extract an archive, Dolphin's view started to glitch out as seen in the attachment. The same happened after I installed mpv (with no other media player installed), the same glitches occured even though I had restarted Dolphin prior to the aforementioned package installation.
Happened on Wayland with integrated graphics, not tested on X11.
STEPS TO REPRODUCE
1. Install an application which defaults to a file type (such as Ark with .zip) (have such file format already in the view before proceeding with installation)
2. Try browsing around to observe the glitches

OBSERVED RESULT
Entire view glitches out, with some icons still being rendered on the view despite being in a different directory after navigation. Clicks occasionally don't get registered.

EXPECTED RESULT
No visual bugs should have happened.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.2-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Strix G731GW_G731GW
System Version: 1.0

ADDITIONAL INFORMATION
I'm using supergfxctl to manage NVIDIA Optimus on my ASUS device, however NVIDIA is only used for apps that require a GPU load, which is not the case for Dolphin, so Dolphin must have been rendered with Intel Integrated Graphics.
Comment 1 burak.yncr.4444 2023-04-16 18:58:29 UTC
Quick update: In both cases I triggered this, I attempted to open the files, which triggered the portal dialog. But I couldn't reproduce it again after package installations similar to ones I mentioned before. Then I realized that the thing was happening because it didn't have a default association, starting as soon as the portal dialog is visible.