iced: A lot of examples in `iced` are not working
Tried the clock
, game_of_life
, integration_wgpu
examples in iced
All give the same error
thread 'main' panicked at 'Error in Surface::configure: parent device is lost', /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:214:9
Other examples like, stopwatch
, pokedex
work awesome!
Does anyone know the reason?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 24 (3 by maintainers)
I’m not able to build iced on my main machine currently because of https://github.com/servo/fontconfig/issues/10 I can try a different machine later, but that one has AMD. Basic process we need here is trying to reduce the test case to the minimum for reproducing the bug. Minimum in terms of wgpu usage, not iced.
An update to this:
This was the fix for me:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json executable_name
@kvark
wgpu
examples all run on both X11 and Wayland without any problems. Its theiced
examples which don’t run on Wayland giving the above error, and crash on resizing in X11 again giving the same error