Bug 468172 - Dolphin fails to update the view surface on wayland.
Summary: Dolphin fails to update the view surface on wayland.
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 22.12.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-05 12:53 UTC by charlesthethobe
Modified: 2023-04-05 13:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Dolphin when trying to go into another directory after the bug happens. (90.04 KB, image/png)
2023-04-05 12:53 UTC, charlesthethobe
Details
This is the unknown file type section window, trying to do it for a known file type doesn't reproduce the bug. (49.40 KB, image/png)
2023-04-05 13:09 UTC, charlesthethobe
Details

Note You need to log in before you can comment on or make changes to this 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.