-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
WGPU Validation Error: Index Extends Beyond Limit #1715
Comments
Ensures that index and vertex buffers are sliced to their proper dimensions to prevent reading into data from previous frames that had longer buffers.
OK, I think it's fixed with #1716, but I can't be sure. I'll be testing more and seeing if it pops up again. If my guess is right, the error is caused when a mesh in the current frame with the same index as a previous frame's mesh has an index or vertex buffer smaller than the previous frame. That could explain the random behavior, because that could potentially depend on all kinds of seemingly unrelated things about your app. |
There is a bug in wgpu, please wait for the fix. gfx-rs/wgpu#5430 |
Describe the bug
Very randomly I get this error with the WGPU backend:
The numbers for the index and limit are different sometimes, with different code.
To Reproduce
This is the strange part:
It seems to be incredibly unpredictable and somewhat rare when the issue happens, but I have a hard time reproducing when I clone the same commit of egui locally and somehow the error goes away!
Expected behavior
No error.
Screenshots
Desktop (please complete the following information):
Additional context
The error is simple and I'm fairly sure it's just that the index buffers are somehow getting mixed up which vertex buffer they go to, I just don't know why the behavior is so random.
I'm going to look into fixing this, and I did see the error once or twice ( again random and rarely ) before #1704, but it still could have been due to #1684. I think I'm just going to try to refactor the wgpu renderer a little to avoid the somewhat fragile association of the index buffers to the vertex buffers and see if that helps.
Unfortunately, since I can't reliably re-produce the issue, we may have to just try making the fix and wait a while to see if it comes back again.
The text was updated successfully, but these errors were encountered: