wgpu-py icon indicating copy to clipboard operation
wgpu-py copied to clipboard

Crash after hiding then showing Qt WgpuCanvas

Open Korijn opened this issue 3 years ago • 0 comments

If you do as follows:

from wgpu.gui.qt import WgpuCanvas, run


canvas = WgpuCanvas()
canvas.hide()
canvas.show()
run()

The program crashes with:

Uncaught WGPU error (Unknown):
Outdated
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `1`: TextureView[0] is no longer alive', C:\Users\runneradmin\.cargo\git\checkouts\wgpu-53e70f8674b08dd4\988990c\wgpu-core\src\hub.rs:169:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Korijn avatar May 24 '22 08:05 Korijn