Encountered a panic in system `bevy_render::view::window‌::prepare_windows`!

⚓ rust    📅 2025-05-23    👤 surdeus    👁️ 3      

surdeus

Warning

This post was published 37 days ago. The information described in this article may have changed.

Hi, folks! :victory_hand:t3: I'm trying Bevy now.

Here's the source code:

xolatgames / Vasya go to Home · GitLab

And compilation process ends successfully, but when I tries to run compiled build I gets this error:

./Vasya-go-to-Home 
2025-05-23T12:07:26.904274Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux (Debian GNU/Linux 12)", kernel: "6.1.0-35-amd64", cpu: "Common KVM processor", core_count: "6", memory: "5.8 GiB" }    
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
2025-05-23T12:07:27.038311Z  INFO bevy_render::renderer: AdapterInfo { name: "llvmpipe (LLVM 15.0.6, 128 bits)", vendor: 65541, device: 0, device_type: Cpu, driver: "llvmpipe", driver_info: "Mesa 22.3.6 (LLVM 15.0.6)", backend: Vulkan }
2025-05-23T12:07:27.038468Z  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/
2025-05-23T12:07:27.683790Z  INFO bevy_render::batching::gpu_preprocessing: GPU preprocessing is fully supported on this device.
2025-05-23T12:07:27.725079Z  INFO bevy_winit::system: Creating new window Vasya go to his home (0v1)
2025-05-23T12:07:27.725966Z  INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 1
2025-05-23T12:07:27.736434Z ERROR bevy_asset::server: Path not found: /mnt/Projects/GitLab/vasya-go-to-home/target/debug/assets/images/backgrounds/grass.png
2025-05-23T12:07:28.000552Z ERROR winit::platform_impl::linux: X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
2025-05-23T12:07:28.000777Z ERROR winit::platform_impl::linux: X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}
2025-05-23T12:07:28.000857Z ERROR winit::platform_impl::linux: X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4,
}

thread 'Compute Task Pool (0)' panicked at /home/plyuha/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_render-0.16.0/src/view/window/mod.rs:275:17:
Couldn't get swap chain texture, operation unrecoverable: The swap chain has been lost and needs to be recreated
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::view::window::prepare_windows`!
2025-05-23T12:07:28.022433Z ERROR bevy_winit::state: winit event loop returned an error: os error at /home/plyuha/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.10/src/platform_impl/linux/x11/mod.rs:404: Xlib error: X error: BadMatch (invalid parameter attributes) (code: 8, request code: 149, minor code: 4)

How can I solve this issue? :thinking:

6 posts - 2 participants

Read full topic

🏷️ rust_feed