Parent Device Lost on Suspend #6972
Unanswered
eblack-leaf
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Do you get a Suspend event from winit at all (or conversely, get resume event)? If you're registering a device loss callback, this should, in theory route everything, but surfaces were probably not specially routed. You can also try wrapping it in an error scope, but I'm a bit doubtful that'd work either. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting a panic from validation layer stating "Parent device is lost" when I suspend ubuntu 22 with x11. There is no event emitted from winit to stop rendering so the next time i use
Surface::get_current_texture
it panics. Is there a way to detect this before it is fatal? I know v24 made changes to that but it still panics for me. On ubuntu 24 wayland it does not panic on suspend. I triedDevice::lost_device_callback()
but it seems too late for that to stop anything.Beta Was this translation helpful? Give feedback.
All reactions