-
Notifications
You must be signed in to change notification settings - Fork 855
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
Strange random behavior when creating an adapter (running in web only with webgl as fallback) #5881
Comments
are there any errors on the browser's console on the failure cases |
Ah yes sorry, wenn the BorrowMutexErr occurs:
Adapter creation
and
|
With on native you mean with no features enabled? It's the same but the errors seem to occur less but that at this point could just be the stars align different for me. |
I meant when running this not as a web application but the same code for a native application. Nevermind if that's too much trouble setting up for you right now. Thanks for those logs. Without more symbols they aren't unfortunately very useful. I was hoping that there's some useful callstack or that wgpu logged some more errors before this happens - there's nothing there? That would first require some setup like https://github.com/gfx-rs/wgpu/blob/trunk/examples/src/framework.rs#L55 As-is, the only thing to go about this bug boils down essentially to debugging the application code you posted, a bit much as a starting point :/ |
Description
So it's a strange behavior that I cannot always reproduce. Sometimes when I reload my browser I get the error, that I cannot crate an adapter. Sometimes it strangely works, its a question of how much I am willing to refresh the page.
Repro steps
Just remove the macros from below, they just do some
console.log
stuff for me.You will see three behaviors:
cargo.toml (For some reason enabling WebGL features forcing me to include getrandom)
.cargo/config.toml:
Expected vs observed behavior
My expected behavior is that my cube should draw every time I refresh the page
Platform
Right now I'm running Arch with a AMD gpu and the
vulkan-amdgpu-pro
driver but I get the same behavior on my Macbook with Chrome and Safari. Strangly I can't get WebGPU running on Chrome on arch at all - but that seems more like a chrome bug. Chromium on Arch is the same as Firefox for me.The text was updated successfully, but these errors were encountered: