Bug 468172

Summary: Dolphin fails to update the view surface on wayland.
Product: [Applications] dolphin Reporter: charlesthethobe
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Dolphin when trying to go into another directory after the bug happens.
This is the unknown file type section window, trying to do it for a known file type doesn't reproduce the bug.

Description charlesthethobe 2023-04-05 12:53:05 UTC
Created attachment 157868 [details]
Dolphin when trying to go into another directory after the bug happens.

On wayland, when trying to open a file of an unknown type, the view graphics become stuck, necessitating restarting dolphin.

***
NOTE: The problem is possibly a qt5 and qt6 bug, since the bug also happens with duckstation and pcsx2 when using wayland (after starting a game the gamelist view surface becomes stuck). happens with both older qt5 and recent qt6 builds of both emulators.
***


STEPS TO REPRODUCE
1. try to open a file of an unknown type in Dolphin.
one way of obtaining such file: `cat /dev/random |head -c 1MB > ran.dom`
2. Once the "Choose Application -- Portal" window appears, Dolphin becomes unusable.

OBSERVED RESULT
Opening a folder or scrolling up or down or highlighting a file/folder doesn't update the visual on screen.

EXPECTED RESULT
Dolphin should resume working as it did prior to trying to reproduce the bug.

SOFTWARE/OS VERSIONS
Linux: Debian 12 (bookworm)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 charlesthethobe 2023-04-05 13:09:52 UTC
Created attachment 157869 [details]
This is the unknown file type section window, trying to do it for a known file type doesn't reproduce the bug.
Comment 2 charlesthethobe 2023-04-05 13:19:41 UTC
Apparently the secret is in the way you make the "Open With" dialog show up, right clicking the file and selecting "Open With..." doesn't reproduce the bug even if it's of an unknown type. it has to be opened without a context menu via pressing enter or left clicking the file directly.