Skip to content

Bevy can't create a window #16572

Closed
Closed
@KayZoka

Description

@KayZoka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions