Skip to content
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

Vertex data gets corrupted #2515

Open
nobbele opened this issue Feb 27, 2022 · 2 comments
Open

Vertex data gets corrupted #2515

nobbele opened this issue Feb 27, 2022 · 2 comments
Labels
area: correctness We're behaving incorrectly help required We need community help to make this happen. type: bug Something isn't working

Comments

@nobbele
Copy link

nobbele commented Feb 27, 2022

Description
It only occurs on this PC. My other PC that's running the same OS and driver but with different hardware (Ryzen 5 3600 + GTX 1650 Super) works fine.
If you add wgpu::BufferUsages::MAP_READ to the vertex buffer usages it stops happening.

Repro steps
It's not very minimal but I was unable to reproduce it elsewhere.
https://github.com/nobbele/Oblivion
go to src/internal.rs:52 and remove wgpu::BufferUsages::MAP_READ
then run cargo run --example draw_mesh
(you can also comment out line 11-38 in src/examples/draw_mesh to isolate the circle)

Expected vs observed behavior
Expected: I expect it to draw a static white circle.
Observed: It draws a white circle with a bugged out vertex every 5 or so frames.

Extra materials
The videos below are running the exact same code, I just ran cargo run --example draw_mesh twice.
https://user-images.githubusercontent.com/17962514/155887700-1cd4d187-5862-4502-902f-c8eb8ba61556.mp4
https://user-images.githubusercontent.com/17962514/155887704-e1dc3238-eebc-47c3-ac77-8651bcd9eacb.mp4

Platform
OS: Arch Linux (5.16.11-arch1-1)
WGPU Version: 0.12.0
CPU: Intel Core i5-4670K
GPU: NVIDIA GeForce GTX 780
GPU Driver: nvidia

@kvark
Copy link
Member

kvark commented Feb 28, 2022

Would you be able to get a renderdoc capture of a failing frame? I'm assuming the vertex data is updated every frame, since otherwise there shouldn't be any issues happening intermittently.

@kvark kvark added area: correctness We're behaving incorrectly help required We need community help to make this happen. type: bug Something isn't working labels Feb 28, 2022
@nobbele
Copy link
Author

nobbele commented Feb 28, 2022

frames.zip
Yes the vertex and index data is updated every frame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: correctness We're behaving incorrectly help required We need community help to make this happen. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants