Nannou: examples don't compile with current (0.9) master

Created on 4 Jun 2019  路  13Comments  路  Source: nannou-org/nannou

Hi there,

since 0.9 seems to be out of the door I tried to build the examples in the current master branch. The few I tried failed in a similar fashion.

rustmachine% cargo run --release --example simple_draw
   Compiling arrayvec v0.4.10
   Compiling libc v0.2.54
   Compiling cfg-if v0.1.7
   Compiling nodrop v0.1.13
   Compiling memoffset v0.2.1
   Compiling scopeguard v0.3.3
   Compiling lazy_static v1.3.0
   Compiling rayon-core v1.4.1
   Compiling rayon v1.0.3
   Compiling either v1.5.2
   Compiling proc-macro2 v0.4.29
   Compiling unicode-xid v0.1.0
   Compiling autocfg v0.1.2
   Compiling bitflags v1.0.5
   Compiling nix v0.13.0
   Compiling xml-rs v0.8.0
   Compiling semver-parser v0.7.0
   Compiling num-traits v0.2.6
   Compiling rand_core v0.4.0
   Compiling byteorder v1.3.1
   Compiling num-integer v0.1.39
   Compiling void v1.0.2
   Compiling syn v0.15.33
   Compiling siphasher v0.2.3
   Compiling num-bigint v0.2.2
   Compiling same-file v1.0.4
   Compiling num-rational v0.2.1
   Compiling downcast-rs v1.0.4
   Compiling serde v1.0.90
   Compiling stable_deref_trait v1.1.1
   Compiling linked-hash-map v0.5.2
   Compiling pkg-config v0.3.14
   Compiling rustc-serialize v0.3.24
   Compiling num-complex v0.2.1
   Compiling num-iter v0.1.37
   Compiling fixedbitset v0.1.9
   Compiling piston-float v0.3.0
   Compiling adler32 v1.0.3
   Compiling smallvec v0.6.9
   Compiling ordermap v0.3.5
   Compiling num-derive v0.2.5
   Compiling xdg v2.2.0
   Compiling slab v0.4.2
   Compiling ryu v0.2.8
   Compiling failure_derive v0.1.5
   Compiling vulkano v0.12.0
   Compiling color_quant v1.0.1
   Compiling lzw v0.10.0
   Compiling scoped_threadpool v0.1.9
   Compiling percent-encoding v1.0.1
   Compiling half v1.3.0
   Compiling lazycell v1.2.1
   Compiling cgmath v0.16.1
   Compiling instant v0.1.1
   Compiling rustc-demangle v0.1.14
   Compiling vk-sys v0.4.0
   Compiling fnv v1.0.6
   Compiling approx v0.1.1
   Compiling itoa v0.4.4
   Compiling hashbrown v0.2.2
   Compiling sample v0.10.0
   Compiling conrod_winit v0.65.0
   Compiling find_folder v0.3.0
   Compiling crossbeam-utils v0.2.2
   Compiling log v0.4.6
   Compiling crossbeam-utils v0.6.5
   Compiling proc-macro2 v0.2.3
   Compiling rand_pcg v0.1.2
   Compiling rand_chacha v0.1.1
   Compiling rand v0.6.5
   Compiling backtrace v0.3.15
   Compiling semver v0.9.0
   Compiling rand_core v0.3.1
   Compiling rand_jitter v0.1.4
   Compiling phf_shared v0.7.24
   Compiling walkdir v2.2.7
   Compiling owning_ref v0.4.0
   Compiling piston-viewport v0.5.0
   Compiling inflate v0.3.4
   Compiling inflate v0.4.5
   Compiling petgraph v0.4.13
   Compiling x11-dl v2.18.3
   Compiling alsa-sys v0.1.2
   Compiling gif v0.9.2
   Compiling gif v0.10.1
   Compiling crossbeam-channel v0.3.8
   Compiling crossbeam-queue v0.1.2
   Compiling rand_isaac v0.1.1
   Compiling rand_xorshift v0.1.1
   Compiling rand_hc v0.1.0
   Compiling phf v0.7.24
   Compiling rustc_version v0.2.3
   Compiling quote v0.4.2
   Compiling lock_api v0.1.5
   Compiling daggy v0.5.0
   Compiling daggy v0.6.0
   Compiling num_cpus v1.10.0
   Compiling rand_os v0.1.3
   Compiling rand v0.4.6
   Compiling iovec v0.1.2
   Compiling memmap v0.7.0
   Compiling net2 v0.2.33
   Compiling shared_library v0.1.9
   Compiling inotify-sys v0.1.3
   Compiling filetime v0.2.5
   Compiling crossbeam-epoch v0.3.1
   Compiling crossbeam-epoch v0.7.1
   Compiling ordered-float v1.0.2
   Compiling approx v0.3.2
   Compiling line_drawing v0.7.0
   Compiling num-complex v0.1.43
   Compiling num-traits v0.1.43
   Compiling pennereq v0.3.0
   Compiling stb_truetype v0.2.6
   Compiling rustc-hash v1.0.1
   Compiling deflate v0.7.19
   Compiling rosc v0.1.6
   Compiling ether-dream v0.2.2
   Compiling quote v0.6.12
   Compiling syn v0.12.15
   Compiling parking_lot_core v0.4.0
   Compiling mio v0.6.19
   Compiling rand v0.3.23
   Compiling inotify v0.6.1
   Compiling crossbeam-deque v0.2.0
   Compiling crossbeam-deque v0.7.1
   Compiling enum_primitive v0.1.1
   Compiling num-bigint v0.1.44
   Compiling cpal v0.8.2
   Compiling wayland-scanner v0.21.12
   Compiling mio-extras v2.0.5
   Compiling phf_generator v0.7.24
   Compiling num-derive v0.1.44
   Compiling rusttype v0.7.6
   Compiling crossbeam v0.7.1
   Compiling png v0.11.0
   Compiling png v0.14.1
   Compiling num-rational v0.1.42
   Compiling wayland-client v0.21.12
   Compiling wayland-protocols v0.21.12
   Compiling phf_codegen v0.7.24
   Compiling notify v4.0.12
   Compiling andrew v0.2.1
   Compiling num v0.1.42
   Compiling palette v0.2.1
   Compiling parking_lot v0.7.1
   Compiling num v0.2.0
   Compiling serde_derive v1.0.90
   Compiling conrod_derive v0.65.0
   Compiling synstructure v0.10.2
   Compiling derive_more v0.14.1
   Compiling spirv_headers v1.3.4
   Compiling cc v1.0.36
   Compiling jpeg-decoder v0.1.15
   Compiling tiff v0.2.2
   Compiling image v0.18.0
   Compiling image v0.21.1
   Compiling libloading v0.5.0
   Compiling cmake v0.1.40
   Compiling backtrace-sys v0.1.28
   Compiling spirv-reflect v0.2.1
   Compiling pistoncore-input v0.24.0
   Compiling serde_json v1.0.39
   Compiling toml v0.4.10
   Compiling shaderc-sys v0.5.0
   Compiling conrod_core v0.65.0
   Compiling noise v0.5.1
   Compiling dlib v0.4.1
   Compiling wayland-sys v0.21.12
   Compiling failure v0.1.5
   Compiling lasy v0.2.4
   Compiling wayland-commons v0.21.12
   Compiling smithay-client-toolkit v0.4.5
   Compiling winit v0.19.1
   Compiling vulkano-win v0.12.0
   Compiling shaderc v0.5.0
   Compiling vulkano-shaders v0.12.0
   Compiling shade_runner v0.1.0
error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/reflection.rs:11:5
   |
11 | use std::convert::TryFrom;
   |     ^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
 --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:4:5
  |
4 | use std::convert::TryFrom;
  |     ^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:24:5
   |
24 |     type Error = Error;
   |     ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:25:5
   |
25 | /     fn try_from(d: DescriptorDescInfo) -> Result<Self, Self::Error> {
26 | |         use sr::types::ReflectDescriptorType as SR;
27 | |         use DescriptorDescTy as VK;
28 | |         match d.descriptor_type {
...  |
52 | |         .map_err(Error::Layout)
53 | |     }
   | |_____^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:23:6
   |
23 | impl TryFrom<DescriptorDescInfo> for SpirvTy<DescriptorDescTy> {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:57:5
   |
57 |     type Error = Error;
   |     ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:58:5
   |
58 | /     fn try_from(d: sr::types::ReflectImageTraits) -> Result<Self, Self::Error> {
59 | |         let conv_array_layers = |a, d| {
60 | |             if a != 0 {
61 | |                 DescriptorImageDescArray::Arrayed {
...  |
77 | |         Ok(SpirvTy { inner: t })
78 | |     }
   | |_____^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:56:6
   |
56 | impl TryFrom<sr::types::ReflectImageTraits> for SpirvTy<DescriptorImageDesc> {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:82:5
   |
82 |     type Error = Error;
   |     ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:83:5
   |
83 | /     fn try_from(d: sr::types::ReflectImageTraits) -> Result<Self, Self::Error> {
84 | |         let conv_array_layers = |a, d| {
85 | |             if a != 0 {
86 | |                 DescriptorImageDescArray::Arrayed {
...  |
97 | |         Ok(SpirvTy { inner: t })
98 | |     }
   | |_____^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:81:6
   |
81 | impl TryFrom<sr::types::ReflectImageTraits> for SpirvTy<DescriptorDescTy> {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:101:5
    |
101 |     type Error = Error;
    |     ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:102:5
    |
102 | /     fn try_from(d: sr::types::variable::ReflectDimension) -> Result<Self, Self::Error> {
103 | |         use sr::types::variable::ReflectDimension::*;
104 | |         use DescriptorImageDescDimensions::*;
105 | |         match d {
...   |
113 | |         .map_err(Error::Layout)
114 | |     }
    | |_____^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:100:6
    |
100 | impl TryFrom<sr::types::variable::ReflectDimension> for SpirvTy<DescriptorImageDescDimensions> {
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:172:5
    |
172 |     type Error = Error;
    |     ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:173:5
    |
173 | /     fn try_from(f: sr::types::ReflectFormat) -> Result<Self, Self::Error> {
174 | |         use sr::types::ReflectFormat::*;
175 | |         use Format::*;
176 | |         let t = match f {
...   |
191 | |         Ok(SpirvTy { inner: t })
192 | |     }
    | |_____^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:171:6
    |
171 | impl TryFrom<sr::types::ReflectFormat> for SpirvTy<Format> {
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:25:56
   |
25 |     fn try_from(d: DescriptorDescInfo) -> Result<Self, Self::Error> {
   |                                                        ^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:58:67
   |
58 |     fn try_from(d: sr::types::ReflectImageTraits) -> Result<Self, Self::Error> {
   |                                                                   ^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
  --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:83:67
   |
83 |     fn try_from(d: sr::types::ReflectImageTraits) -> Result<Self, Self::Error> {
   |                                                                   ^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:102:75
    |
102 |     fn try_from(d: sr::types::variable::ReflectDimension) -> Result<Self, Self::Error> {
    |                                                                           ^^^^^^^^^^^

error[E0658]: use of unstable library feature 'try_from' (see issue #33417)
   --> /foo/bar/.cargo/registry/src/github.com-1ecc6299db9ec823/shade_runner-0.1.0/src/srvk.rs:173:62
    |
173 |     fn try_from(f: sr::types::ReflectFormat) -> Result<Self, Self::Error> {
    |                                                              ^^^^^^^^^^^

error: aborting due to 22 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `shade_runner`.
warning: build failed, waiting for other jobs to finish...
error: build failed

This should be fixed before announcing the release.

Cheers,
tpltnt

Most helpful comment

apt install mesa-vulkan-drivers vulkan-utils fixed it. Thank you @freesig for the hint.

All 13 comments

Thanks for the report! I just want to double check before looking into this - have you run cargo update since pulling in the latest master?

Also, could you let me know what rustc --version returns? We might be using some feature that requires a very recent version of rust. If that's the case, it should be pretty easy to update rustc using rustup, e.g. rustup update.

rustc --version
rustc 1.33.0 (2aa4c46cf 2019-02-28)

Same error after cargo update.

I ran rustup update and there is progress of some sort.

rustmachine% cargo run --release --example simple_draw
   Compiling arrayvec v0.4.10
   Compiling nodrop v0.1.13
   Compiling cfg-if v0.1.9
   Compiling libc v0.2.58
   Compiling lazy_static v1.3.0
   Compiling scopeguard v0.3.3
   Compiling memoffset v0.2.1
   Compiling rayon-core v1.4.1
   Compiling rayon v1.0.3
   Compiling either v1.5.2
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling autocfg v0.1.4
   Compiling rand_core v0.4.0
   Compiling semver-parser v0.7.0
   Compiling byteorder v1.3.1
   Compiling xml-rs v0.8.0
   Compiling nix v0.13.0
   Compiling bitflags v1.0.4
   Compiling syn v0.15.34
   Compiling void v1.0.2
   Compiling num-bigint v0.2.2
   Compiling siphasher v0.2.3
   Compiling pkg-config v0.3.14
   Compiling serde v1.0.92
   Compiling rustc-serialize v0.3.24
   Compiling downcast-rs v1.0.4
   Compiling num-complex v0.2.1
   Compiling stable_deref_trait v1.1.1
   Compiling linked-hash-map v0.5.2
   Compiling num-rational v0.2.1
   Compiling same-file v1.0.4
   Compiling fixedbitset v0.1.9
   Compiling adler32 v1.0.3
   Compiling smallvec v0.6.9
   Compiling ordermap v0.3.5
   Compiling xdg v2.2.0
   Compiling num-derive v0.2.5
   Compiling piston-float v0.3.0
   Compiling failure_derive v0.1.5
   Compiling lzw v0.10.0
   Compiling ryu v0.2.8
   Compiling color_quant v1.0.1
   Compiling vulkano v0.12.0
   Compiling slab v0.4.2
   Compiling lazycell v1.2.1
   Compiling fnv v1.0.6
   Compiling instant v0.1.1
   Compiling vk-sys v0.4.0
   Compiling cgmath v0.16.1
   Compiling scoped_threadpool v0.1.9
   Compiling percent-encoding v1.0.1
   Compiling half v1.3.0
   Compiling rustc-demangle v0.1.15
   Compiling approx v0.1.1
   Compiling itoa v0.4.4
   Compiling find_folder v0.3.0
   Compiling hashbrown v0.2.2
   Compiling conrod_winit v0.65.0
   Compiling sample v0.10.0
   Compiling crossbeam-utils v0.2.2
   Compiling log v0.4.6
   Compiling crossbeam-utils v0.6.5
   Compiling proc-macro2 v0.2.3
   Compiling rand_core v0.3.1
   Compiling rand_jitter v0.1.4
   Compiling rand_chacha v0.1.1
   Compiling num-traits v0.2.8
   Compiling rand_pcg v0.1.2
   Compiling num-integer v0.1.41
   Compiling rand v0.6.5
   Compiling num-iter v0.1.39
   Compiling backtrace v0.3.30
   Compiling semver v0.9.0
   Compiling phf_shared v0.7.24
   Compiling owning_ref v0.4.0
   Compiling x11-dl v2.18.3
   Compiling alsa-sys v0.1.2
   Compiling walkdir v2.2.7
   Compiling inflate v0.3.4
   Compiling inflate v0.4.5
   Compiling petgraph v0.4.13
   Compiling piston-viewport v0.5.0
   Compiling gif v0.9.2
   Compiling gif v0.10.2
   Compiling rand_hc v0.1.0
   Compiling rand_isaac v0.1.1
   Compiling rand_xorshift v0.1.1
   Compiling crossbeam-channel v0.3.8
   Compiling crossbeam-queue v0.1.2
   Compiling quote v0.4.2
   Compiling phf v0.7.24
   Compiling lock_api v0.1.5
   Compiling rustc_version v0.2.3
   Compiling daggy v0.5.0
   Compiling daggy v0.6.0
   Compiling crossbeam-epoch v0.3.1
   Compiling crossbeam-epoch v0.7.1
   Compiling num_cpus v1.10.0
   Compiling rand_os v0.1.3
   Compiling rand v0.4.6
   Compiling iovec v0.1.2
   Compiling memmap v0.7.0
   Compiling net2 v0.2.33
   Compiling shared_library v0.1.9
   Compiling inotify-sys v0.1.3
   Compiling filetime v0.2.5
   Compiling syn v0.12.15
   Compiling quote v0.6.12
   Compiling stb_truetype v0.2.6
   Compiling rustc-hash v1.0.1
   Compiling deflate v0.7.19
   Compiling ether-dream v0.2.2
   Compiling rosc v0.1.6
   Compiling parking_lot_core v0.4.0
   Compiling crossbeam-deque v0.7.1
   Compiling crossbeam-deque v0.2.0
   Compiling mio v0.6.19
   Compiling inotify v0.6.1
   Compiling rand v0.3.23
   Compiling wayland-scanner v0.21.12
   Compiling approx v0.3.2
   Compiling ordered-float v1.0.2
   Compiling line_drawing v0.7.0
   Compiling num-traits v0.1.43
   Compiling num-complex v0.1.43
   Compiling pennereq v0.3.0
   Compiling cpal v0.8.2
   Compiling num-derive v0.1.44
   Compiling crossbeam v0.7.1
   Compiling phf_generator v0.7.24
   Compiling mio-extras v2.0.5
   Compiling rusttype v0.7.6
   Compiling enum_primitive v0.1.1
   Compiling num-bigint v0.1.44
   Compiling wayland-client v0.21.12
   Compiling wayland-protocols v0.21.12
   Compiling phf_codegen v0.7.24
   Compiling notify v4.0.12
   Compiling andrew v0.2.1
   Compiling num-rational v0.1.42
   Compiling png v0.11.0
   Compiling png v0.14.1
   Compiling serde_derive v1.0.92
   Compiling synstructure v0.10.2
   Compiling conrod_derive v0.65.0
   Compiling derive_more v0.14.1
   Compiling palette v0.2.1
   Compiling parking_lot v0.7.1
   Compiling cc v1.0.37
   Compiling jpeg-decoder v0.1.15
   Compiling num v0.1.42
   Compiling num v0.2.0
   Compiling tiff v0.2.2
   Compiling libloading v0.5.1
   Compiling cmake v0.1.40
   Compiling backtrace-sys v0.1.28
   Compiling spirv-reflect v0.2.1
   Compiling image v0.18.0
   Compiling spirv_headers v1.3.4
   Compiling image v0.21.1
   Compiling pistoncore-input v0.24.0
   Compiling toml v0.4.10
   Compiling serde_json v1.0.39
   Compiling shaderc-sys v0.5.0
   Compiling conrod_core v0.65.0
   Compiling noise v0.5.1
   Compiling dlib v0.4.1
   Compiling wayland-sys v0.21.12
   Compiling failure v0.1.5
   Compiling lasy v0.2.4
   Compiling wayland-commons v0.21.12
   Compiling smithay-client-toolkit v0.4.5
   Compiling winit v0.19.1
   Compiling vulkano-win v0.12.0
   Compiling shaderc v0.5.0
   Compiling vulkano-shaders v0.12.0
   Compiling shade_runner v0.1.0
   Compiling conrod_vulkano v0.65.0
   Compiling nannou v0.9.0 (/foo/bar/nannou)
    Finished release [optimized] target(s) in 15m 06s
     Running `target/release/examples/simple_draw`
thread 'main' panicked at 'failed to create vulkan instance: IncompatibleDriver', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

With stacktrace:

cargo run --release --example simple_draw
    Finished release [optimized] target(s) in 0.31s
     Running `target/release/examples/simple_draw`
thread 'main' panicked at 'failed to create vulkan instance: IncompatibleDriver', src/libcore/result.rs:997:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:59
             at src/libstd/panicking.rs:197
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:211
   4: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:474
   5: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:381
   6: rust_begin_unwind
             at src/libstd/panicking.rs:308
   7: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
   8: core::result::unwrap_failed
   9: nannou::app::Builder<M,E>::run
  10: nannou::sketch
  11: std::rt::lang_start::{{closure}}
  12: std::panicking::try::do_call
             at src/libstd/rt.rs:49
             at src/libstd/panicking.rs:293
  13: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:87
  14: std::rt::lang_start_internal
             at src/libstd/panicking.rs:272
             at src/libstd/panic.rs:388
             at src/libstd/rt.rs:48
  15: main
  16: __libc_start_main
  17: _start

Looks like vulkan isn't setup correctly. What system is this?

This VM is Debian 9.9

apt install mesa-vulkan-drivers vulkan-utils fixed it. Thank you @freesig for the hint.

Thanks @tpltnt, maybe we should add a Vulkan section to the platform-specific setup under the Linux section here?

@mitchmindtree done that already. See PR 11 in the guide repo.

:woman_facepalming: sorry I missed that! I'm still making my way through all my github notifications. Thanks so much @tpltnt, looks great at a glance, I'll take a closer look later :)

no problem :)

@tpltnt's suggestion worked for me on Debian 9.9.

Thanks for the prompt responses and for supporting such an exciting project. I'm hoping to present a demo at an upcoming art/tech/creative coding meetup. :crossed_fingers:

@ethagnawl let us know how it went. Maybe on slack :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

capogreco picture capogreco  路  4Comments

mitchmindtree picture mitchmindtree  路  4Comments

sulram picture sulram  路  6Comments

tpltnt picture tpltnt  路  6Comments

kvark picture kvark  路  3Comments