2D Starter VkError

(Kiffin Gish) #1

Hi there. I cloned the 2d starter and ran cargo run but get the following error. Anyone know why?

$ RUST_BACKTRACE=full cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/amethyst-starter-2d`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.13.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: 
[INFO][amethyst::app] Rustc version: 1.39.0 Stable
[INFO][amethyst::app] Rustc git commit: 4560ea788cb760f0a34127156c78e2552949f734
[INFO][winit::platform::platform::x11::window] Guessed window DPI factor: 1
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_xlib_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_xcb_surface
[WARN][gfx_backend_vulkan] Unable to find extension: VK_KHR_wayland_surface
thread 'main' panicked at 'Unable to create Vulkan instance: VkError(ERROR_INCOMPATIBLE_DRIVER)', src/libcore/result.rs:1165:5
stack backtrace:
   0:     0x55db47e68e34 - backtrace::backtrace::libunwind::trace::hda41dbcdfba36aa0
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/libunwind.rs:88
   1:     0x55db47e68e34 - backtrace::backtrace::trace_unsynchronized::h1a8d6e1f8cb3f5d4
                               at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.37/src/backtrace/mod.rs:66
   2:     0x55db47e68e34 - std::sys_common::backtrace::_print_fmt::h610c4127487e10da
                               at src/libstd/sys_common/backtrace.rs:76
   3:     0x55db47e68e34 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0722dc552e01bd1d
                               at src/libstd/sys_common/backtrace.rs:60
   4:     0x55db47e8bc3c - core::fmt::write::h01edf6dd68a42c9c
                               at src/libcore/fmt/mod.rs:1030
   5:     0x55db47e65d77 - std::io::Write::write_fmt::hf15985f193f03c04
                               at src/libstd/io/mod.rs:1412
   6:     0x55db47e6b325 - std::sys_common::backtrace::_print::hd8d5d08a1795e743
                               at src/libstd/sys_common/backtrace.rs:64
   7:     0x55db47e6b325 - std::sys_common::backtrace::print::hf89a79e3921a2366
                               at src/libstd/sys_common/backtrace.rs:49
   8:     0x55db47e6b325 - std::panicking::default_hook::{{closure}}::h3a8f42beb3bb8ae3
                               at src/libstd/panicking.rs:196
   9:     0x55db47e6b016 - std::panicking::default_hook::h8f803b0bc31a5c37
                               at src/libstd/panicking.rs:210
  10:     0x55db47e6ba25 - std::panicking::rust_panic_with_hook::h825f041245da8739
                               at src/libstd/panicking.rs:473
  11:     0x55db47e6b5c2 - std::panicking::continue_panic_fmt::hbe0378e33481e81b
                               at src/libstd/panicking.rs:380
  12:     0x55db47e6b4b6 - rust_begin_unwind
                               at src/libstd/panicking.rs:307
  13:     0x55db47e87aea - core::panicking::panic_fmt::h527855ce0bc891f6
                               at src/libcore/panicking.rs:85
  14:     0x55db47e87be7 - core::result::unwrap_failed::ha8b77e6004f0ba38
                               at src/libcore/result.rs:1165
  15:     0x55db47602601 - core::result::Result<T,E>::expect::had4b3b336727fdfa
                               at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/result.rs:960
  16:     0x55db475f4e85 - gfx_backend_vulkan::Instance::create::h3253de4347cf2814
                               at /home/kiffin/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx-backend-vulkan-0.2.3/src/lib.rs:375
  17:     0x55db46eef1a0 - rendy_factory::factory::init::h2cff65211913bccf
                               at /home/kiffin/.cargo/registry/src/github.com-1ecc6299db9ec823/rendy-factory-0.3.1/src/factory.rs:1032
  18:     0x55db46ef4c6a - <amethyst_rendy::system::RenderingSystem<B,G> as shred::system::RunNow>::setup::h126529f7c9bd4ee6
                               at /home/kiffin/.cargo/registry/src/github.com-1ecc6299db9ec823/amethyst_rendy-0.3.0/src/system.rs:148
  19:     0x55db47d906a0 - shred::dispatch::dispatcher::Dispatcher::setup::h3c1abaacd221980a
                               at /home/kiffin/.cargo/registry/src/github.com-1ecc6299db9ec823/shred-0.9.3/src/dispatch/dispatcher.rs:27
  20:     0x55db4722745f - <amethyst::game_data::GameDataBuilder as amethyst::game_data::DataInit<amethyst::game_data::GameData>>::build::h2a69ee745a20aa98
                               at /home/kiffin/.cargo/registry/src/github.com-1ecc6299db9ec823/amethyst-0.13.0/src/game_data.rs:481
  21:     0x55db46fba729 - amethyst::app::ApplicationBuilder<S,T,E,X>::build::h09af1f0e04cddfc2
                               at /home/kiffin/.cargo/registry/src/github.com-1ecc6299db9ec823/amethyst-0.13.0/src/app.rs:894
  22:     0x55db46fb842e - amethyst::app::CoreApplication<T,E,R>::new::hf31382f04d21c392
                               at /home/kiffin/.cargo/registry/src/github.com-1ecc6299db9ec823/amethyst-0.13.0/src/app.rs:201
  23:     0x55db470b6352 - amethyst_starter_2d::main::h9260e209a43f3942
                               at src/main.rs:33
  24:     0x55db4711f1c0 - std::rt::lang_start::{{closure}}::h12a15295bfa5b329
                               at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/rt.rs:64
  25:     0x55db47e6b453 - std::rt::lang_start_internal::{{closure}}::ha04574f12d97cbe2
                               at src/libstd/rt.rs:49
  26:     0x55db47e6b453 - std::panicking::try::do_call::h7c2a8488f72db90c
                               at src/libstd/panicking.rs:292
  27:     0x55db47e6f8da - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:80
  28:     0x55db47e6bfdd - std::panicking::try::hc3a9b5da4250385d
                               at src/libstd/panicking.rs:271
  29:     0x55db47e6bfdd - std::panic::catch_unwind::hf27600bf8c37809a
                               at src/libstd/panic.rs:394
  30:     0x55db47e6bfdd - std::rt::lang_start_internal::h409d4f2fe51133b0
                               at src/libstd/rt.rs:48
  31:     0x55db4711f199 - std::rt::lang_start::h44eb7efc212b2043
                               at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/rt.rs:64
  32:     0x55db470b651a - main
  33:     0x7f671b8b4b97 - __libc_start_main
  34:     0x55db46ca026a - _start
  35:                0x0 - <unknown>
(Kiffin Gish) #2

I was able to fix this by installing vulkan on my system first.

3 Likes