-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renderer GPU(vulkan/x11): stops rendering after window resize #11075
Comments
Force quitting hung the whole x11 session for 1sec. |
|
A few things that'll help us diagnose:
|
The
is encountered. The sdl3_renderer_gpu_vulkan_error1.mp4(includes a lack of frames at the x11(?) freeze)
Not sure how to enable the validation layers, but I will keep trying. |
Curious if this is possibly related to #9698 |
On an AMD card on X11 I get errors and sometimes a validation layer message when resizing, then application continues fine:
|
I think we ended up removing the extent checks because we thought the window events covered it, but it seems X11 has other ideas - I think all we need to revert from the bad commits is the removal of min/max size checks and this will work again. |
This may have been fixed by 6ae5666. Someone who can repro will have to confirm. |
@thatcosmonaut I did check yesterday, but no change. |
@Green-Sky Could you try testing this PR: #11139 |
@thatcosmonaut the pr does not change the behavior. |
Can confirm, issue is persisting for me on PopOS 22.04/Kernel 6.9.3-76060903-generic/X11/NVIDIA 560.35.03 |
We may need additional help with this one as I'm pretty sure all of us are on Wayland systems at this point, and I haven't seen this with Xwayland or Wayland in my own testing of FNA's swapchains. If any X-perts want to volunteer we'd really like to reassign this so cosmonaut can focus on threading and fragment storage writes. |
I can reproduce with spinning cube in my debian VM (which i don't think is using wayland). After a few resizes it segfaults and my compositor seems to restart (screen goes black and journalctl log shows a bunch of XCB errors + a bunch of hardware info dumps from kwin_x11). testnative is fine though no matter how many times I resize it. |
valgrind shows some errors:
|
Yes, SDL_Render no longer defaults to the SDL_GPU backend. |
Okay, I've pushed @kg's fix, which seems to resolve the memory access issues, and then one on top of it which fixes swapchain texture acquisition over here for me. Please retest the latest in main asap if you were having problems with this, it's our last bug before shipping 3.2.0! :) |
@kg had some extra difficulties she resolved--we think they were exposed by running in a virtual machine--plus some other good fixes, in that last commit. |
I can confirm, the spinning cube does not longer crash or hang when resizing on latest master 🥳 . I double checked with asan enabled. I also bisected and 6d5815d was the one that fixed it for me. |
With the following error log:
The rest of the application continues
finesdl events seem to stop.on https://github.com/libsdl-org/SDL/releases/tag/preview-3.1.3
9dd8859 still worked fine
edit: this seems to have gradually degraded
ERROR: Failed to acquire swapchain texture:
while resizing and look funny, but still keep working afteredit2: this is on a linux x11 NVIDIA device (555.58.02)
The text was updated successfully, but these errors were encountered: