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

instance.create_surface() panics #5225

Closed
thequver opened this issue Feb 8, 2024 · 1 comment
Closed

instance.create_surface() panics #5225

thequver opened this issue Feb 8, 2024 · 1 comment

Comments

@thequver
Copy link

thequver commented Feb 8, 2024

Description
Hello, i'm using wgpu 0.19.1 and my application panics on an old laptop when creating a surface with this error:
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', C:\Users\ACER\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-core-0.19.0\src\instance.rs:521:39
This happens when i use wgpu::Backends::PRIMARY in the instance descriptor. If i use wgpu::Backends::SECONDARY everything works. I didn't have this error in wgpu 0.18, I think this is beause directx11 backend was removed. I seems my laptop was using it before because it doesn't support vulkan.

Repro steps
Unlikely you can reproduce this because the laptop is too old.

Expected vs observed behavior
instance.create_surface() panics but maybe you can return an error instead of just panic?

Platform
Win11, wgpu 0.19.1, ATI Mobility Radeon HD 5470 graphics card

@Wumpf
Copy link
Member

Wumpf commented Feb 9, 2024

The panic was fixed in

with that surface creation should return an error in your case

@Wumpf Wumpf closed this as completed Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants