flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.11k stars 263 forks source link

MangoHud freezes after switching from wine-ge-proton to steam proton and back #1331

Closed fishman closed 1 month ago

fishman commented 1 month ago

Describe the bug When I switch the proton version to steam proton from wine-ge mangoapp stops the game from loading. I tried deleting the dxvk cache, but don't know if there are other caches left.

I've tried to start with the Proton-GE without switching on a new application and it works, but even switching the failed state game from the above described to the proton-ge still causes the game to hang on a blank screen. So once mangohud stops working it doesn't matter what wine version I choose. Are there caches being generated other than dxvk?

List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

  1. Start a game in lutris with wine-ge-proton and mangohud enabled
  2. switch wine version to steam proton 9 and launch again

Expected behavior view game render, instead i see a blank screen with mangohud showing but no game loading

Screenshots If applicable, add screenshots to help explain your problem.

Additional context


vulkan: Creating Gamescope nested swapchain with format 64 and colorspace 0
pipewire: renegotiating stream params (size: 1919x1199)
wine: setpriority -1 for pid -1 failed: 3
wine: setpriority -1 for pid -1 failed: 3
wine: setpriority -1 for pid -1 failed: 3
wine: setpriority 2 for pid -1 failed: 3
wine: setpriority -3 for pid -1 failed: 3
wine: setpriority -3 for pid -1 failed: 3
[Gamescope WSI] Creating swapchain for xid: 0xa00075 - minImageCount: 3 - format: VK_FORMAT_R8G8B8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Created swapchain for xid: 0xa00075 - imageCount: 3
39027.718:00d4:0198:info:vkd3d-proton:dxgi_vk_swap_chain_recreate_swapchain_in_present_task: Got 3 swapchain images.
[Gamescope WSI] Creating swapchain for xid: 0xa00075 - minImageCount: 3 - format: VK_FORMAT_R8G8B8A8_UNORM - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
[Gamescope WSI] Created swapchain for xid: 0xa00075 - imageCount: 3
39027.747:00d4:0198:info:vkd3d-proton:dxgi_vk_swap_chain_recreate_swapchain_in_present_task: Got 3 swapchain images.
39032.328:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Pipeline cache marked dirty. Flush is scheduled.
wine: setpriority -1 for pid -1 failed: 3

(wine:732019): GStreamer-WARNING **: 23:24:17.740: Failed to load plugin '/usr/share/steam/compatibilitytools.d/proton-ge-custom/files/lib64/gstreamer-1.0/libgstvpx.so': libvpx.so.6: cannot open shared object file: No such file or directory
wine: setpriority -11 for pid -1 failed: 3

(wine:732019): GStreamer-WARNING **: 23:24:17.744: Failed to load plugin '/usr/share/steam/compatibilitytools.d/proton-ge-custom/files/lib64/gstreamer-1.0/libgstflac.so': libFLAC.so.8: cannot open shared object file: No such file or directory
wine: setpriority -11 for pid -1 failed: 3
wine: setpriority -11 for pid -1 failed: 3
39034.914:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Flushing disk cache (wakeup counter since last flush = 415). It seems like application has stopped creating new PSOs for the time being.
39045.454:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Pipeline cache marked dirty. Flush is scheduled.
39046.475:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Flushing disk cache (wakeup counter since last flush = 24). It seems like application has stopped creating new PSOs for the time being.
39047.909:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Pipeline cache marked dirty. Flush is scheduled.
wine: setpriority -1 for pid -1 failed: 3
39051.260:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Flushing disk cache (wakeup counter since last flush = 89). It seems like application has stopped creating new PSOs for the time being.
39053.419:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Pipeline cache marked dirty. Flush is scheduled.
39054.446:00d4:0190:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Flushing disk cache (wakeup counter since last flush = 6). It seems like application has stopped creating new PSOs for the time being.
[Gamescope WSI] Swapchain recieved new refresh cycle: 16.67ms
[xwayland ei] Setup failed: No such file or directory
[xwayland ei] EI setup failed
[Gamescope WSI] Swapchain recieved new refresh cycle: 33.33ms
[Gamescope WSI] Swapchain recieved new refresh cycle: 16.67ms
[Gamescope WSI] Swapchain recieved new refresh cycle: 33.33ms
vulkan: Creating Gamescope nested swapchain with format 64 and colorspace 0
pipewire: renegotiating stream params (size: 1919x1136)
[Gamescope WSI] Swapchain recieved new refresh cycle: 16.67ms
[Gamescope WSI] Swapchain recieved new refresh cycle: 33.33ms
vulkan: Creating Gamescope nested swapchain with format 64 and colorspace 0
pipewire: renegotiating stream params (size: 1919x1084)
[Gamescope WSI] Swapchain recieved new refresh cycle: 16.67ms
[Gamescope WSI] Swapchain recieved new refresh cycle: 33.33ms
vulkan: Creating Gamescope nested swapchain with format 64 and colorspace 0
pipewire: renegotiating stream params (size: 1919x1136)
vulkan: Creating Gamescope nested swapchain with format 64 and colorspace 0
pipewire: renegotiating stream params (size: 1919x1199)
xwm: Rejecting WM_CHANGE_STATE to ICONIC for window 0x1000006
xwm: Unhandled NET_WM_STATE property change: _KDE_NET_WM_STATE_SKIP_SWITCHER
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ
xwm: error 3: BadWindow (invalid Window parameter) request 15 minor 0 serial 39392
gamescope: children shut down!
(EE) failed to read Wayland events: Broken pipe
Initial process has exited (return code: 0)
Monitored process exited.
All processes have quit
Exit with return code 0
flightlessmango commented 1 month ago

What is your steam launch option for the game?

fishman commented 1 month ago

Just using the wine binary directly, see below. But even if I create a new steamprefix and switch back to the previous wine-ge version it stops working. So it's not the system files, it must be something that is generate within the game folder itself.

~/.local/share/Steam/steamapps/common/Proton 9.0 (Beta)/files/bin/wine

flightlessmango commented 1 month ago

I still want to know what commands you're using to start. Since I'm seeing Gamescope WSI in the logs, you're using gamescope and normal mangohud?

flightlessmango commented 1 month ago

Assuming my previous guess was correct, you're not supposed to use normal mangohud and gamescope. It will cause issues. Instead use mangoapp. If that doesn't resolve this issue, feel free to reopen