kvark / blade

Sharp and simple graphics library
MIT License
545 stars 36 forks source link

Blade crash at init in Gentoo AMD #208

Open OpenAzienda opened 1 day ago

OpenAzienda commented 1 day ago

ON lenovo yoga amd 8840hs (Radeon 730m)

"os_name": "Linux Wayland", "os_version": "gentoo 2.17", "architecture": "x86_64",

 ~/CRATES/blade $ RUST_BACKTRACE=full cargo run --release --example bunnymark
warning: `/home/pop/CRATES/blade/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
warning: use of deprecated method `winit::event_loop::EventLoop::<T>::create_window`: use `ActiveEventLoop::create_window` instead
   --> examples/bunnymark/main.rs:368:29
    |
368 |     let window = event_loop.create_window(window_attributes).unwrap();
    |                             ^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: use of deprecated method `winit::event_loop::EventLoop::<T>::run`: use `EventLoop::run_app` instead
   --> examples/bunnymark/main.rs:397:10
    |
397 |         .run(|event, target| {
    |          ^^^

warning: `blade` (example "bunnymark") generated 2 warnings
    Finished `release` profile [optimized] target(s) in 0.27s
     Running `target/release/examples/bunnymark`
xkbcommon: ERROR: couldn't find a Compose file for locale "C.UTF8" (mapped to "C.UTF8")
DeviceInformation { is_software_emulated: false, device_name: "AMD Radeon Graphics", driver_name: "AMD proprietary driver", driver_info: "(LLPC)" }
warning: queue 0x5603951b5120 destroyed while proxies still attached:
  wl_registry#41 still attached
warning: queue 0x5603950761d0 destroyed while proxies still attached:
  wl_registry#42 still attached
thread 'main' panicked at blade-graphics/src/vulkan/surface.rs:154:18:
called `Result::unwrap()` on an `Err` value: ERROR_UNKNOWN
stack backtrace:
   0:     0x56039034ed75 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h1b9dad2a88e955ff
   1:     0x560390375d7b - core::fmt::write::h4b5a1270214bc4a7
   2:     0x56039034c30f - std::io::Write::write_fmt::hd04af345a50c312d
   3:     0x56039034fec1 - std::panicking::default_hook::{{closure}}::h96ab15e9936be7ed
   4:     0x56039034fb9c - std::panicking::default_hook::h3cacb9c27561ad33
   5:     0x560390350521 - std::panicking::rust_panic_with_hook::hfe205f6954b2c97b
   6:     0x560390350387 - std::panicking::begin_panic_handler::{{closure}}::h6cb44b3a50f28c44
   7:     0x56039034f239 - std::sys::backtrace::__rust_end_short_backtrace::hf1c1f2a92799bb0e
   8:     0x560390350014 - rust_begin_unwind
   9:     0x56038ff22ac3 - core::panicking::panic_fmt::h3d8fc78294164da7
  10:     0x56038ff22f36 - core::result::unwrap_failed::hfa79a499befff387
  11:     0x5603901c17a0 - blade_graphics::hal::surface::<impl blade_graphics::hal::Context>::reconfigure_surface::hfd26aea5efa24fb0
  12:     0x56038ff6e6a6 - blade_graphics::<impl blade_graphics::hal::Context>::create_surface_configured::hc31651a2950c1c28
  13:     0x56038ff5990e - bunnymark::main::h01fdad5e48df7084
  14:     0x56038ff6f4f3 - std::sys::backtrace::__rust_begin_short_backtrace::h207b8ad29c52b98b
  15:     0x56038ff6ac39 - std::rt::lang_start::{{closure}}::h41a8b11adf61e824
  16:     0x560390345600 - std::rt::lang_start_internal::h5e7c81cecd7f0954
  17:     0x56038ff5adc5 - main
  18:     0x7f73e30af200 - <unknown>
  19:     0x7f73e30af2b9 - __libc_start_main
  20:     0x56038ff23275 - _start
  21:                0x0 - <unknown>
kvark commented 3 hours ago

Oh wow, interesting! Would you be able to repeat the experiment with a few changes?

  1. build/run without "--release". We need debug symbols.
  2. install Vulkan validation layers

In addition, please confirm if vkcube works (from vulkan-tools package). Also, please attach the output of your vulkaninfo call.