Wgpu-rs: Panic when screen is turned off

Created on 30 Oct 2019  路  1Comment  路  Source: gfx-rs/wgpu-rs

I'm on Linux, and if the screen is turned off (e.g. with xset dpms force off), wgpu instantly panics with GPU took too much time processing last frames :(. This leaves me with no way to recover the UI.

Is there any reason in particular that swap_chain_get_next_texture explicitly panics rather than returning a Result?

bug

Most helpful comment

@antonok-edm currently, the error handling is done via assertions like this one. This is temporary. We'll need gracefull error handling soon for WebGPU in Gecko, and it will affect wgpu-native and allow wgpu-rs to return a Result. If you want to start doing that today, the road is open.

>All comments

@antonok-edm currently, the error handling is done via assertions like this one. This is temporary. We'll need gracefull error handling soon for WebGPU in Gecko, and it will affect wgpu-native and allow wgpu-rs to return a Result. If you want to start doing that today, the road is open.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yutannihilation picture yutannihilation  路  4Comments

sagacity picture sagacity  路  3Comments

bvssvni picture bvssvni  路  5Comments

dmilford picture dmilford  路  3Comments

lordnoriyuki picture lordnoriyuki  路  4Comments