-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Logging out webgpu adapater causes an assertion error #26760
Comments
okikio
changed the title
Logging out webgpu adapater causes an assertion error on Linux, Mac OS and Windows hindering debugging when using WebGPU
Logging out webgpu adapater causes an assertion error, hindering debugging when using WebGPU
Nov 6, 2024
okikio
changed the title
Logging out webgpu adapater causes an assertion error, hindering debugging when using WebGPU
Logging out webgpu adapater causes an assertion error
Nov 6, 2024
Probably related to #25874 |
Currently, first access to the It is a strange code, but I think it may be possible to execute the following code as a workaround: const adapter = await navigator.gpu.requestAdapter();
// first access to adapter.info *before* getting the device
adapter?.info;
const device = await adapter?.requestDevice();
console.log({
adapter,
}) |
Interesting @petamoriken you're right so this is probs a bug in Deno |
I try to fix this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: Deno 2.0.5
On Windows, Linux, and Mac OS trying to log out the WebGPU adapter causes an assertion error which is unexpected and was rather difficult to debug, interestingly enough logging out the actual adapter device works as expected it prints out an object.
I'm not sure if the assertion error is expected behaviour or not but I've not found any documentation that specifies this behaviour, so I'm thinking it's a bug.
Assertion Error:
The text was updated successfully, but these errors were encountered: