bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.67k stars 3.61k forks source link

Bevy can't create a window #16572

Open KayZoka opened 2 days ago

KayZoka commented 2 days ago

Bevy version

0.15.0

System information

cargo 1.83.0 (5ffbef321 2024-10-29) Fedora Linux 41 (Workstation Edition)

What you did

$ cargo new game
$ cd game
$ cargo add bevy
$ cargo run

In src/main.rs:

use bevy::prelude::*;

fn main() {
    println!("Hello, World!");
    App::default()
        .add_plugins(DefaultPlugins)
        .run();
}

What went wrong

Hello, World!
2024-11-30T17:36:04.506515Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 41 Fedora Linux", kernel: "6.11.8-300.fc41.x86_64", cpu: "Genuine Intel(R) CPU 0000 @ 2.10GHz", core_count: "8", memory: "31.3 GiB" }
WARNING: radv is not a conformant Vulkan implementation, testing use only.
2024-11-30T17:36:04.630759Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon R9 390 Series (radeonsi, hawaii, LLVM 19.1.0, DRM 3.59, 6.11.8-300.fc41.x86_64)", vendor: 4098, device: 0, device_type: Other, driver: "", driver_info: "4.6 (Core Profile) Mesa 24.2.7", backend: Gl }
2024-11-30T17:36:05.038496Z  INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event4 (Microsoft X-Box 360 pad) connected.    
2024-11-30T17:36:05.094262Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2024-11-30T17:36:05.097494Z  INFO bevy_winit::system: Creating new window "App" (0v1#4294967296)
2024-11-30T17:36:05.097775Z  INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 1
2024-11-30T17:36:05.118981Z  INFO bevy_input::gamepad: Gamepad 5v1#4294967301 connected.
2024-11-30T17:36:05.201686Z ERROR wgpu_core::device::global: surface configuration failed: incompatible window kind    
thread 'main' panicked at /home/kayzoka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-23.0.1/src/backend/wgpu_core.rs:719:18:
Error in Surface::configure: Validation Error

Caused by:
  Invalid surface

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::view::window::create_surfaces`!

Additional information

Graphics card: AMD Radeon R9 390 Video driver: amdgpu Vulkan runs fine WGPU examples run fine Winit examples run fine Bevy examples on main branch return the same error Bevy 0.13.2 runs fine

SystemInfo says that I have 8 cores, but i have 16 IIRC

This reddit post says that it's probably weird Vulkan configuration, but everything except Bevy works fine

hxYuki commented 1 day ago

Similar fault on wsl, updated from 0.14.0. But with one more error after Validation Error. Code here

2024-12-01T09:05:00.878557Z  WARN winit::platform_impl::platform::x11::xdisplay: error setting XSETTINGS; Xft options won't reload automatically
2024-12-01T09:05:01.066613Z  INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (AMD Radeon RX 6500 XT)", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "3.3 (Core Profi
le) Mesa 21.2.6", backend: Gl }
2024-12-01T09:05:01.182596Z  WARN bevy_core_pipeline::oit::resolve: OrderIndependentTransparencyPlugin not loaded. GPU lacks support: DownlevelFlags::FRAGMENT_WRITABLE_STORAGE.
2024-12-01T09:05:01.186403Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2024-12-01T09:05:01.187737Z  WARN winit::platform_impl::platform::x11::util::randr: XRandR reported that the display's 0mm in size, which is certifiably insane
2024-12-01T09:05:01.187895Z  INFO bevy_winit::system: Creating new window "App" (0v1#4294967296)
2024-12-01T09:05:01.188015Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
2024-12-01T09:05:01.213635Z ERROR wgpu_core::device::global: surface configuration failed: incompatible window kind    
thread 'Compute Task Pool (1)' panicked at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-23.0.1/src/backend/wgpu_core.rs:719:18:
Error in Surface::configure: Validation Error

Caused by:
  Invalid surface

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::view::window::create_surfaces`!
2024-12-01T09:05:01.265077Z ERROR wgpu_hal::gles: GLES: [API/Error] ID 1 : GL_INVALID_VALUE in glTexSubImage2D(yoffset 0 + height 560 > 160)    
thread 'main' panicked at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-23.0.1/src/device/resource.rs:185:14:
called `Option::unwrap()` on a `None` value
mockersf commented 1 day ago

can you try by forcing the backend to not be OpenGL?

with WGPU_BACKEND=vulkan or WGPU_BACKEND=dx12

hxYuki commented 1 day ago

I tried

.add_plugins(DefaultPlugins.set(RenderPlugin {
    render_creation: RenderCreation::Automatic(WgpuSettings {
        backends: Some(Backends::VULKAN),
        ..default()
    }),
    ..default()
}))

and get a mess

Logs ``` 2024-12-01T09:16:46.290717Z WARN winit::platform_impl::platform::x11::xdisplay: error setting XSETTINGS; Xft options won't reload automatically 2024-12-01T09:16:46.439241Z INFO bevy_render::renderer: AdapterInfo { name: "llvmpipe (LLVM 12.0.0, 256 bits)", vendor: 65541, device: 0, device_type: Cpu, driver: "llvmpipe", driver_info: "Me sa 21.2.6 (LLVM 12.0.0)", backend: Vulkan } 2024-12-01T09:16:46.439304Z WARN bevy_render::renderer: The selected adapter is using a driver that only supports software rendering. This is likely to be very slow. See https://bevyengine.org /learn/errors/b0006/ WARNING: lavapipe is not a conformant vulkan implementation, testing use only. 2024-12-01T09:16:46.623647Z WARN winit::platform_impl::platform::x11::util::randr: XRandR reported that the display's 0mm in size, which is certifiably insane 2024-12-01T09:16:46.623993Z INFO bevy_winit::system: Creating new window "App" (0v1#4294967296) 2024-12-01T09:16:46.624095Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1 thread '' panicked at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ash-0.38.0+1.3.281/src/extensions_generated.rs:2361:29: Unable to load cmd_begin_debug_utils_label_ext note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread '' panicked at core/src/panicking.rs:218:5: panic in a function that cannot unwind stack backtrace: 0: 0x7f619a68874a - std::backtrace_rs::backtrace::libunwind::trace::h392ec3763e4ee520 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 1: 0x7f619a68874a - std::backtrace_rs::backtrace::trace_unsynchronized::h52faccb7d9939779 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x7f619a68874a - std::sys::backtrace::_print_fmt::h4ca48f886ab6d023 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/sys/backtrace.rs:66:9 3: 0x7f619a68874a - ::fmt::h41650409cfcaa385 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/sys/backtrace.rs:39:26 4: 0x7f619a6d93d3 - core::fmt::rt::Argument::fmt::h3a0dfc0e2b206c6c at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/core/src/fmt/rt.rs:177:76 5: 0x7f619a6d93d3 - core::fmt::write::h124e50a41a614f35 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/core/src/fmt/mod.rs:1185:21 6: 0x7f619a67c293 - std::io::Write::write_fmt::h152c770d77d8200b at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/io/mod.rs:1887:15 7: 0x7f619a688592 - std::sys::backtrace::BacktraceLock::print::hb77a071b09f7b2d4 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/sys/backtrace.rs:42:9 8: 0x7f619a68abce - std::panicking::default_hook::{{closure}}::h2289b310e8f70172 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/panicking.rs:284:22 9: 0x7f619a68aa13 - std::panicking::default_hook::h6b36901e2a542246 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/panicking.rs:311:9 10: 0x7f619a68b387 - std::panicking::rust_panic_with_hook::hd7b2147b933d3e5b at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/panicking.rs:817:13 11: 0x7f619a68b0d6 - std::panicking::begin_panic_handler::{{closure}}::h529091dbfbeb0f88 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/panicking.rs:683:13 12: 0x7f619a688c29 - std::sys::backtrace::__rust_end_short_backtrace::h560f3f6f1bef32f3 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/sys/backtrace.rs:170:18 13: 0x7f619a68ad9d - rust_begin_unwind at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/panicking.rs:681:5 14: 0x7f619a6d582d - core::panicking::panic_nounwind_fmt::runtime::h17ba49224798318e at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/core/src/panicking.rs:117:22 15: 0x7f619a6d582d - core::panicking::panic_nounwind_fmt::hb277f20fa61f3f5e at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/core/src/intrinsics/mod.rs:3818:9 16: 0x7f619a6d58c2 - core::panicking::panic_nounwind::hd837752905532cca at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/core/src/panicking.rs:218:5 17: 0x7f619a6d5a86 - core::panicking::panic_cannot_unwind::h3b957602ac74bad9 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/core/src/panicking.rs:307:5 18: 0x7f61a01344b4 - ash::extensions_generated::ext::debug_utils::DeviceFn::load_erased::cmd_begin_debug_utils_label_ext::hea6bcec6f0de3939 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ash-0.38.0+1.3.281/src/extensions_generated.rs:2357:25 19: 0x7f61a0056e1b - ash::extensions::ext::debug_utils::::cmd_begin_debug_utils_label::h52accccd27a73cc6 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ash-0.38.0+1.3.281/src/extensions/ext/debug_utils.rs:34:9 20: 0x7f61a0056e1b - wgpu_hal::vulkan::command::::begin_debug_marker::h8966edf6811bd3eb at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-23.0.1/src/vulkan/command.rs:879:26 21: 0x7f61a0056e1b - wgpu_hal::vulkan::command::::begin_compute_pass::h209ddc1fc439f565 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-23.0.1/src/vulkan/command.rs:1103:22 22: 0x7f61a000d9c8 - ::begin_compute_pass::hc1950cd9ffaaf878 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-23.0.1/src/dynamic/command.rs:528:18 23: 0x7f619ff05dae - wgpu_core::command::compute::::compute_pass_end::hacb3a1b881e297b8 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-23.0.1/src/command/compute.rs:501:13 24: 0x7f619fed7d0e - ::compute_pass_end::hda1c2c6d297d4c2a at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-23.0.1/src/backend/wgpu_core.rs:2325:29 25: 0x7f619e9cc441 - core::ptr::drop_in_place::h818bf0005ef0025b at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:521:1 26: 0x7f619e9cc441 - core::ptr::drop_in_place::h80d3cdc35a6c8ad3 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:521:1 27: 0x7f619e9e85fd - ::run::h92d9091b0daaef5f at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_pbr-0.15.0/src/render/gpu_preprocess.rs:250:5 28: 0x7f619f6c48de - bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph::h580c6560fe4f46f4 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.15.0/src/renderer/graph_runner.rs:225:21 29: 0x7f619f6c30e1 - bevy_render::renderer::graph_runner::RenderGraphRunner::run::h20e5ad10a668ae5e at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.15.0/src/renderer/graph_runner.rs:80:9 30: 0x7f619f46e525 - bevy_render::renderer::render_system::h4e2110720b1eb167 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.15.0/src/renderer/mod.rs:40:15 31: 0x7f619f3ae6e7 - core::ops::function::FnMut::call_mut::h7eb2ed1a3bb115a7 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:166:5 32: 0x7f619f3ae6e7 - core::ops::function::impls:: for &mut F>::call_mut::h4fbb62f288b06916 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:294:13 33: 0x7f619f3ae6e7 - Out>>::run::call_inner::ha4f73d428b55fcd0 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/system/exclusive_function_system.rs:245:21 34: 0x7f619f3ae6e7 - Out>>::run::hbb33a72dea32664d at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/system/exclusive_function_system.rs:248:17 35: 0x7f619f3ae6e7 - as bevy_ecs::system::system::System>::run::{{closure}}::hba29076ef2aea2a8 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/system/exclusive_function_system.rs:129:23 36: 0x7f619f3ae6e7 - bevy_ecs::world::World::last_change_tick_scope::hb9746d715a31e52d at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/world/mod.rs:3187:9 37: 0x7f619f3ae6e7 - as bevy_ecs::system::system::System>::run::hccbbecd0bf0e2bae at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/system/exclusive_function_system.rs:121:9 38: 0x7f61a066e25a - bevy_ecs::schedule::executor::__rust_begin_short_backtrace::run::h43fd8364f9fb0ad3 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/schedule/executor/mod.rs:170:9 39: 0x7f61a05f2ce3 - bevy_ecs::schedule::executor::multi_threaded::ExecutorState::spawn_exclusive_system_task::{{closure}}::{{closure}}::h254d92ca703f0b52 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/schedule/executor/multi_threaded.rs:653:21 40: 0x7f61a05f2ce3 - core::ops::function::FnOnce::call_once::hf4e5a16d658e843a at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 41: 0x7f61a05f2ce3 - as core::ops::function::FnOnce<()>>::call_once::h0c44b5bdcdc2f58f at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9 42: 0x7f61a05f2ce3 - std::panicking::try::do_call::hefe7b311c5a62c30 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:40 43: 0x7f61a05f2ce3 - std::panicking::try::heb6b6d96d7215ba8 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:536:19 44: 0x7f61a05f2ce3 - std::panic::catch_unwind::h727907e088118bc5 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:358:14 45: 0x7f61a05f2ce3 - bevy_ecs::schedule::executor::multi_threaded::ExecutorState::spawn_exclusive_system_task::{{closure}}::hec9b9e6205101606 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/schedule/executor/multi_threaded.rs:652:27 46: 0x7f61a05f2ce3 - as core::future::future::Future>::poll::h83435d8513226362 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:297:9 47: 0x7f61a05f9080 - as core::future::future::Future>::poll::{{closure}}::he71f5d4533a85417 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.2.0/src/future.rs:588:42 48: 0x7f61a05f9080 - as core::ops::function::FnOnce<()>>::call_once::h286f984f24904dd3 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9 49: 0x7f61a05f9080 - std::panicking::try::do_call::hd86f92b446541664 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:40 50: 0x7f61a05f9080 - std::panicking::try::hdab59b560be10e12 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:536:19 51: 0x7f61a05f9080 - std::panic::catch_unwind::h56a3cb1876f3d18b at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:358:14 52: 0x7f61a05f9080 - as core::future::future::Future>::poll::h5cbbdfb9ef64f305 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.2.0/src/future.rs:588:9 53: 0x7f61a05f9080 - async_executor::Executor::spawn_inner::{{closure}}::h9b843de7139887d2 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.11.0/src/lib.rs:243:20 54: 0x7f61a05f3b30 - async_task::raw::RawTask::run::{{closure}}::h1e3cfd1e5ac2de21 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/raw.rs:550:21 55: 0x7f61a05f3b30 - core::ops::function::FnOnce::call_once::h9590c27759280b75 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 56: 0x7f61a05f3b30 - as core::ops::function::FnOnce<()>>::call_once::hf59934459e253982 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9 57: 0x7f61a05f3b30 - std::panicking::try::do_call::haa2568632f967c12 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:40 58: 0x7f61a05f3b30 - std::panicking::try::ha02a251f4670d65c at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:536:19 59: 0x7f61a05f3b30 - std::panic::catch_unwind::h84204a87736ec395 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:358:14 60: 0x7f61a05f3b30 - async_task::raw::RawTask::run::h50021e1ada4eba6c at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/raw.rs:549:23 61: 0x7f61a05f2429 - async_executor::Executor::tick::{{closure}}::h9f4d3ff9273509a3 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.11.0/src/lib.rs:331:9 62: 0x7f61a05f2429 - bevy_tasks::thread_executor::ThreadExecutorTicker::tick::{{closure}}::h5d4f27519e1cec5a at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.15.0/src/thread_executor.rs:103:39 63: 0x7f61a05f2429 - bevy_tasks::task_pool::TaskPool::execute_scope::{{closure}}::{{closure}}::{{closure}}::hd4872f9c34ef18c6 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.15.0/src/task_pool.rs:510:45 64: 0x7f61a05f2429 - as core::future::future::Future>::poll::h1469570ac4eec6a0 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:297:9 65: 0x7f61a05c6795 - as core::future::future::Future>::poll::{{closure}}::h106915bd60fe527d at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.2.0/src/future.rs:588:42 66: 0x7f61a05c6795 - as core::ops::function::FnOnce<()>>::call_once::heaf6d7dc88147609 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9 67: 0x7f61a05c6795 - std::panicking::try::do_call::hdc24fbe79beefac1 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:40 68: 0x7f61a05c6795 - std::panicking::try::h9ba2124a478cfdd9 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:536:19 69: 0x7f61a05c6795 - std::panic::catch_unwind::ha1a14e293b6ad2ce at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:358:14 70: 0x7f61a05c6795 - as core::future::future::Future>::poll::hfeb658c4a4bc0dc5 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.2.0/src/future.rs:588:9 71: 0x7f61a05c6795 - bevy_tasks::task_pool::TaskPool::execute_scope::{{closure}}::{{closure}}::he3556861fb6a1cdc at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.15.0/src/task_pool.rs:513:77 72: 0x7f61a05c6795 - as core::future::future::Future>::poll::h2bf8405236714d98 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.2.0/src/future.rs:446:33 73: 0x7f61a05c42d7 - bevy_tasks::task_pool::TaskPool::execute_scope::{{closure}}::hdc1f9a1a4ee8e16d at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.15.0/src/task_pool.rs:516:41 74: 0x7f61a05c42d7 - bevy_tasks::task_pool::TaskPool::scope_with_executor_inner::{{closure}}::h430c8e6925128154 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.15.0/src/task_pool.rs:427:85 75: 0x7f61a05c42d7 - futures_lite::future::block_on::{{closure}}::h7fb426353e5d8d48 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.2.0/src/future.rs:99:19 76: 0x7f61a05c42d7 - std::thread::local::LocalKey::try_with::hc61d825ecda915bc at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:308:12 77: 0x7f61a05c42d7 - std::thread::local::LocalKey::with::h6bcf498e3b5c35ef at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:272:9 78: 0x7f61a05c42d7 - futures_lite::future::block_on::h016ce30c326cc75b at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.2.0/src/future.rs:78:11 79: 0x7f61a06281bf - bevy_tasks::task_pool::TaskPool::scope_with_executor_inner::h3f8f4b6a0b70e7d8 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.15.0/src/task_pool.rs:381:13 80: 0x7f61a05e9b3d - bevy_tasks::task_pool::TaskPool::scope_with_executor::{{closure}}::hf2de21c46ea0243a 81: 0x7f61a05e9b3d - std::thread::local::LocalKey::try_with::h6c5490bcb5d3cacd at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:308:12 82: 0x7f61a05e9b3d - std::thread::local::LocalKey::with::h26aa55f43d00028d at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:272:9 83: 0x7f61a05e9b3d - bevy_tasks::task_pool::TaskPool::scope_with_executor::h13bd4323c417564b at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.15.0/src/task_pool.rs:307:31 84: 0x7f61a05e9b3d - ::run::hfe7bdfba1f4a99fb at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/schedule/executor/multi_threaded.rs:221:9 85: 0x7f61a05867ab - bevy_ecs::world::World::try_run_schedule::{{closure}}::h5a2eebe5a8fc29d1 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/world/mod.rs:3720:55 86: 0x7f61a05867ab - bevy_ecs::world::World::try_schedule_scope::h08fd63e69cf1b973 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/world/mod.rs:3653:21 87: 0x7f61a058f59b - bevy_ecs::world::World::schedule_scope::ha1b9128a9729aee1 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/world/mod.rs:3705:9 88: 0x7f61a058f59b - bevy_ecs::world::World::run_schedule::h9f9ce6ce149eb996 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.15.0/src/world/mod.rs:3734:9 89: 0x7f61a058f59b - bevy_app::sub_app::SubApp::run_default_schedule::h0fd9107100ae7b1c at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.15.0/src/sub_app.rs:136:24 90: 0x7f61a058f59b - bevy_app::sub_app::SubApp::update::hbd5bffb1b287b08e at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.15.0/src/sub_app.rs:142:9 91: 0x7f619f6e9b2b - ::cleanup::{{closure}}::hda283f9259fed2e9 at /home/yuki/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.15.0/src/pipelined_rendering.rs:169:21 92: 0x7f619f6e9b2b - std::sys::backtrace::__rust_begin_short_backtrace::h60e21abcba89eb5e at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/backtrace.rs:154:18 93: 0x7f619f6198bc - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h6343428d304a430d at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:561:17 94: 0x7f619f6198bc - as core::ops::function::FnOnce<()>>::call_once::h71b3842dc0e1bd78 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9 95: 0x7f619f6198bc - std::panicking::try::do_call::h601c274ce66f7d69 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:40 96: 0x7f619f6198bc - std::panicking::try::h0a31c5dd2e1cf28e at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:536:19 97: 0x7f619f6198bc - std::panic::catch_unwind::h7792fedacf202a97 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:358:14 98: 0x7f619f6198bc - std::thread::Builder::spawn_unchecked_::{{closure}}::h85e8f92c386ec094 at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/mod.rs:559:30 99: 0x7f619f6198bc - core::ops::function::FnOnce::call_once{{vtable.shim}}::h7b56b31edb0aff6d at /home/yuki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 100: 0x7f619a69513b - as core::ops::function::FnOnce>::call_once::h2d4f459373f7188f at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/alloc/src/boxed.rs:1970:9 101: 0x7f619a69513b - as core::ops::function::FnOnce>::call_once::h3f1517d5cf7a5e92 at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/alloc/src/boxed.rs:1970:9 102: 0x7f619a69513b - std::sys::pal::unix::thread::Thread::new::thread_start::hf9fb86827535111f at /rustc/7442931d49b199ad0a1cc0f8ca54e327b5139b66/library/std/src/sys/pal/unix/thread.rs:105:17 103: 0x7f619a25a609 - start_thread 104: 0x7f619a4c4133 - clone 105: 0x0 - thread caused non-unwinding panic. aborting. [1] 15840 abort cargo run ```
mockersf commented 1 day ago

two things to note from

AdapterInfo { name: "llvmpipe (LLVM 12.0.0, 256 bits)", vendor: 65541, device: 0, device_type: Cpu, driver: "llvmpipe", driver_info: "Me
sa 21.2.6 (LLVM 12.0.0)", backend: Vulkan }
AdapterInfo { name: "llvmpipe (LLVM 15.0.7, 256 bits)", vendor: 65541, device: 0, device_type: Cpu, driver: "llvmpipe", driver_info: "Mesa 24.2.7 - kisak-mesa PPA (LLVM 15.0.7)", backend: Vulkan }
mockersf commented 1 day ago

it's possible the error about cmd_begin_debug_utils_label_ext could go away in release mode, could you try?

hxYuki commented 1 day ago

With wsl distro updated, it will get Validation Error / Invalid surface on 0.14.0 and The selected version doesn't support Features(DYNAMIC_ARRAY_SIZE) on 0.15.0 by default (OpenGL). I guess wgpu dropped support for some old things that caused this issue.

After update: Vulkan will run but the content is scattered except when dragging the window. (Driver update fixed this) Before and after update: DX12 cannot find gpu. It maybe something wrong with the sub system.

it's possible the error about cmd_begin_debug_utils_label_ext could go away in release mode, could you try?

Cannot reproduce that since I updated my outdated wsl distro version.

AdapterInfo { name: "llvmpipe (LLVM 15.0.7, 256 bits)", vendor: 65541, device: 0, device_type: Cpu, driver: "llvmpipe", driver_info: "Mesa 23.2.1-1ubuntu3.1~22.04.2 (LLVM 15.0.7)", backend: Vulkan }
xenon615 commented 14 hours ago

it's possible the error about cmd_begin_debug_utils_label_ext could go away in release mode, could you try?

Yes, in release mode this error does not occur