https://bugs.winehq.org/show_bug.cgi?id=56172
Bug ID: 56172 Summary: [Sway] winewayland.drv GameThread timed out waiting for RenderThread (crash) Product: Wine Version: 9.0-rc4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: grabbend@hotmail.com Distribution: ---
# Overview
From my limited understanding, Sway doesn't render new frames for inactive Workplaces.
This has never been an issue since every application picks up where it left off once its Workspace is in foreground.
However, this behavior causes the new winewayland.drv to falsely trigger a timeout which crashes the game:
# Stacktrace
LowLevelFatalError [File:Unknown] [Line: 1209] GameThread timed out waiting for RenderThread after 120.00 secs
# Reproduce
* Make sure you've activated the new Wayland driver in your registry: HKEY_CURRENT_USER\Software\Wine\Drivers\Graphics="x11,wayland"
* Ensure the game process is using Wayland: DISPLAY=''
1. Start any game (I've seen this issue with both DXVK & VKD3D-Proton).
2. In Sway, switch the focused Workplace (to make sure the game process isn't in foreground).
3. Wait 120 seconds for the hardcoded time limit to be reached. This will forcefully kill the game process (even though it's unnecessary).
# Additional information
* If you go back to the Sway Workplace where the game is running in fullscreen before the 120 seconds time limit is reached, it will just pick off where it left off.
* The popup window which shows WINE's stacktrace ALSO exits after 120 seconds.
* This issue cannot be reproduced with XWayland.