-
Notifications
You must be signed in to change notification settings - Fork 953
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
How to avoid Timeout errors #1565
Comments
The syncing should happen automatically on the |
How do you get or change the timeout value? |
wgpu/wgpu-core/src/swap_chain.rs Line 47 in aed736d
|
Some more context:
EDIT: This happens after 5 minutes or so of runtime on my swapchain tutorial |
I gradually increased the timeout value up to 20000 with no effect. I also get the timeout errors much more often than every 5 minutes, roughly 350 errors for each render with no error. |
What platforms are we talking about here? |
I'm using Arch Linux with SwayWM which runs under Wayland, but this also happens on bspwm which runs under X. |
The timeout could happen if our back-pressue doesn't work as expected. I.e. |
I can try more things locally if that'd be helpful. |
I found that the timeout errors don't occur if I pass
Passing
If someone could point to where the differences between |
Could this be related? #1218 |
The symptoms are pretty similar, but that's the most I can say. |
@eulertour one big OOM bug was fixed in #1598. Do you still get OOM after it? |
Running from the latest master (e5142b3) eliminates the OOM errors, so setting |
WGPU_BACKEND=gl cargo run |
|
I'm having similar problem, and got here from the bevy issue mentioned above. Adapter Info: Could reproduce with the hello-triangle.rs example, but with a few changes (using winit Poll mode + rendering in maineventscleared -event. Reproducible by locking the screen (Ubuntu, Wayland, 22.04). Increasing FRAME_TIMEOUT_MS to 3000 fixes the problem, (experimented with some values, 2000 still produces the error). See blaind@48463bb NOTE! that branch doesn't emit the bug currently, since it also contains the Here's a log what happens if the timeout is 1000ms:
Maybe the error is in the driver, which somehow doesn't release previous swapchains fast enough when its doing something internal related to the screen shut down. |
My tutorial will occasionally encounter a
SwapChainError::Timeout
during normal execution. Currently I'm just kidding the error out, but I was wondering is there a way to avoid this error? Is there someway to sync the simulation with the refresh rate of the screen?This is related to an issue in my tutorial: sotrh/learn-wgpu#195
The text was updated successfully, but these errors were encountered: