Parent Device Lost on Suspend #6972
Unanswered
eblack-leaf
asked this question in
Q&A
Replies: 1 comment 2 replies
-
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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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