You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at 'Failed to acquire next swap chain texture!: Timeout', /home/marek/.cargo/git/checkouts/bevy-f7ffde730c324c74/1d0d8a3/crates/bevy_render/src/view/window.rs:159:24
There are 2 things I believe:
a) how is it possible that I see the error even when I run examples which do use the helper
b) the panic might be related to some issue of development version of bevy
$ cargo run --example layers
warning: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead
--> src/mesher.rs:49:48
|
49 | positions.extend(IntoIter::new([
| ^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead
--> src/mesher.rs:63:45
|
63 | colors.extend(IntoIter::new([
| ^^^
warning: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead
--> src/mesher.rs:98:47
|
98 | textures.extend(IntoIter::new([
| ^^^
warning: `bevy_ecs_tilemap` (lib) generated 3 warnings
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running `target/debug/examples/layers`
2022-01-03T11:51:32.607631Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1.6666666666666667
2022-01-03T11:51:32.675060Z INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 5700 XT", vendor: 4098, device: 29471, device_type: DiscreteGpu, backend: Vulkan }
2022-01-03T11:51:32.848836Z INFO bevy_ecs_tilemap::layer: Updating tile cache.
2022-01-03T11:51:32.864576Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864632Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864663Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864694Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864723Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864753Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864782Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864810Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864845Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864876Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864907Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.864934Z ERROR bevy_ecs_tilemap::render::pipeline: Texture atlas MUST have COPY_SRC texture usages defined! Please see: https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/helpers/texture.rs
2022-01-03T11:51:32.947540Z INFO naga::back::spv::writer: Skip function Some("get_mesh")
thread 'main' panicked at 'Failed to acquire next swap chain texture!: Timeout', /home/marek/.cargo/git/checkouts/bevy-f7ffde730c324c74/1d0d8a3/crates/bevy_render/src/view/window.rs:159:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
I was able to pin down the reason for panic - it's upstream issue in bevy specific to opensource amd-gpu drivers on linux.
I think that's all we can do here. I'm not sure if you want to do something about that error log as well but I think it would make sense to have separate issue for it anyway. For the panic we just need to wait for fix upstream. Current workaround is to switch to proprietary driver. A bit painful but it's the only option at the moment.
Running examples panic for me. I'm on Linux (NixOS) using amd-gpu (open source driver).
relevant parts:
https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/src/render/pipeline.rs#L77-L84
There are 2 things I believe:
a) how is it possible that I see the error even when I run examples which do use the helper
b) the panic might be related to some issue of development version of bevy
The text was updated successfully, but these errors were encountered: