godot: Vulkan: Project Manager crashes after some interaction when RivaTuner Statistics Server or MSI Afterburner is injected (DisplayServer regression)
Godot version
v4.0.alpha2.official.79077e6c1
System information
Windows 10, Vulkan, Nvidia Geforce 750Ti (30.0.15.1165)
Issue description
Godot 4.0 a2 hangs or crashes after basic interaction with Project Manager
Steps to reproduce
- Click New Project
- Change Version Control Metadata Git -> None
- Observe it doesn’t change and console has errors:
ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1956)
ERROR: Vulkan: Did not create swapchain successfully.
at: (drivers/vulkan/vulkan_context.cpp:1880)
Other interactions can be similar, like:
- Click New Project
- Close New Project popup
- Try clicking New Project again
or
- Have some deleted project in a list
- Try to Remove missing project
Minimal reproduction project
Not needed.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Force disable MangoHud in the editor and project manager Otherwise it's shown on every popup in multi-window mode, and seems to cause rendering issues for various users. Fixes #57403. Fixes #57937. — committed to akien-mga/godot by akien-mga a year ago
- Force disable Vulkan overlays in the editor and project manager MangoHud would be shown on every popup in multi-window mode, and seemed to cause rendering issues for various users. There are also is... — committed to akien-mga/godot by akien-mga a year ago
- Force disable Vulkan overlays in the editor and project manager MangoHud would be shown on every popup in multi-window mode, and seemed to cause rendering issues for various users. There are also is... — committed to akien-mga/godot by akien-mga a year ago
- Force disable Vulkan overlays in the editor and project manager MangoHud would be shown on every popup in multi-window mode, and seemed to cause rendering issues for various users. There are also is... — committed to Streq/godot by akien-mga a year ago
@Calinou running
Godot_v4.0-alpha2_win64.exe --single-window -e --path C:\project\path
helps, editor and F6 works correctly even with overlay software running, thanks.I can confirm this with RTSS 7.3.3.
Seems like RTSS is not designed to handle mult-window Vulkan apps, and trying to unload itself when any of the popup windows or tooltips is closed, this causes either crash or broken swapchain (
ERROR: Vulkan: Did not create swapchain successfully
spam).Unlikely we can do anything with it, probably it’s better to report it to the RTSS developers.
After seeing @realgdman’s post, I put Godot into the exclusion list of rivatuner statistics server and it works without modifying the command line arguments. Seems like there is an incompatibility in there somewhere with rtss’ overlay probably. (So far it did work on every Vulkan game I played, including emulators)
@Calinou okay great thanks for the help, it is caused by RivaTuner Statistics Server which comes with MSI Afterburner. Software for showing FPS and controlling GPU coolers. It doesn’t need to be uninstalled, just disabled during working with Godot 4.
@marcinn: Likely a different issue. Search for ERR_CANT_CREATE, as I’m sure was reported already.