amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

Cannot run on Fedora 30 Wayland #106

Open pop opened 5 years ago

pop commented 5 years ago

I'm very interested in trying Evoli, but I can't get it to run! Please let me know if there is something I should install/configure, or if I've found a real bug.

Error message

Evoli compiles just fine with cargo build. When I try to run it with cargo run I get this error:

$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.19s
     Running `target/debug/evolution-island`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.11.1
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: 9709f4fdddffcfef4d17f342260b4bb0e976e9b1
[INFO][amethyst::app] Rustc version: 1.39.0-nightly Nightly
[INFO][amethyst::app] Rustc git commit: 72b2abfd65ba024e12d7fe51852a309419f494d8
[WARN][gfx_backend_vulkan] Unable to find layer: VK_LAYER_LUNARG_standard_validation
[WARN][rendy_factory::factory] Slow safety checks are enabled! Disable them in production by enabling the 'no-slow-safety-checks' feature!
[INFO][rendy_util::wrap] Slow safety checks are enabled! You can disable them in production by enabling the 'no-slow-safety-checks' feature!
[INFO][gfx_backend_vulkan] 
GENERAL [Loader Message (0)] : Device Extension: VK_KHR_8bit_storage (/usr/lib64/libvulkan_intel.so) version 0.0.1
object info: (type: INSTANCE, hndl: 94837343484112)

[INFO][gfx_backend_vulkan] 
GENERAL [Loader Message (0)] : Device Extension: VK_KHR_16bit_storage (/usr/lib64/libvulkan_intel.so) version 0.0.1
object info: (type: INSTANCE, hndl: 94837343484112)

[ ... snip ... ]

[INFO][gfx_backend_vulkan] 
GENERAL [Loader Message (0)] : Device Extension: VK_GOOGLE_hlsl_functionality1 (/usr/lib64/libvulkan_intel.so) version 0.0.1
object info: (type: INSTANCE, hndl: 94837343484112)

[INFO][gfx_backend_vulkan] 
GENERAL [Loader Message (0)] : Device Extension: VK_NV_compute_shader_derivatives (/usr/lib64/libvulkan_intel.so) version 0.0.1
object info: (type: INSTANCE, hndl: 94837343484112)

[ERROR][amethyst_assets::storage] "PREFAB": Asset "assets/ixie.glb" (handle id: Handle { id: 1 }) could not be loaded: Failed to load asset with name "assets/ixie.glb"
[ERROR][amethyst_assets::progress] Error loading handle 1, PREFAB, with name assets/ixie.glb: Failed to load asset with name "assets/ixie.glb"
caused by: Failed to load asset with name "assets/ixie.glb"
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Deserialize(Error("expected value", line: 1, column: 1)) } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/ixie.glb\"\'") } }), backtrace: None, error: Format("GLTFScene") } }), backtrace: None, error: Asset("assets/ixie.glb") } }
caused by: Format "GLTFScene" could not load asset
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Deserialize(Error("expected value", line: 1, column: 1)) } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/ixie.glb\"\'") } }), backtrace: None, error: Format("GLTFScene") } }

[ ... snip ... ]

Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Deserialize(Error("expected value", line: 1, column: 1)) } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/bush.glb\"\'") } }), backtrace: None, error: Format("GLTFScene") } }
caused by: Failed to import gltf scene '"assets/bush.glb"'
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Deserialize(Error("expected value", line: 1, column: 1)) } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/bush.glb\"\'") } }
caused by: Gltf import error
Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Deserialize(Error("expected value", line: 1, column: 1)) } }), backtrace: None, error: GltfImporterError } }
caused by: expected value at line 1 column 1
Error { inner: Inner { source: None, backtrace: None, error: Deserialize(Error("expected value", line: 1, column: 1)) } }
Exiting program because of 1 errors...
0: DecoderError

Full error message attached at the bottom of this issue.

System info

$ cargo --version
cargo 1.39.0-nightly (22f7dd049 2019-08-27)
$ rustc --version
rustc 1.39.0-nightly (72b2abfd6 2019-08-29)
$ uname -s -r -v -p -i -o
Linux 5.2.9-200.fc30.x86_64 #1 SMP Fri Aug 16 21:37:45 UTC 2019 x86_64 x86_64 GNU/Linux

I am running Wayland and not X.

Misc debugging info

All of my installed packages Full traceback logs

Electron-libre commented 5 years ago

@pop Looking at your backtrace, it seems that the asset can't be loaded.

I think you miss the Git LFS plugin:

  1. Install Git LFS https://git-lfs.github.com/ ( and don't forget to git install lfs )
  2. Clone the evoli repository
  3. cd evoli && cargo run
llebout commented 5 years ago

I could run it on Fedora 30 with Wayland, so it definitely is the issue @Electron-libre is talking about!

gtors commented 4 years ago

Similar problem on Arch Linux / Sway (Wayland) / Rust 1.41

     Running `target/release/evolution-island`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.11.1
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: 9709f4fdddffcfef4d17f342260b4bb0e976e9b1
[INFO][amethyst::app] Rustc version: 1.41.0 Stable
[INFO][amethyst::app] Rustc git commit: 5e1a799842ba6ed4a57e91f7ab9435947482f7d8
[WARN][rendy_factory::factory] Slow safety checks are enabled! Disable them in production by enabling the 'no-slow-safety-checks' feature!
[INFO][rendy_util::wrap] Slow safety checks are enabled! You can disable them in production by enabling the 'no-slow-safety-checks' feature!
[ERROR][amethyst_assets::storage] "PREFAB": Asset "assets/Topplegrass.gltf" (handle id: Handle { id: 1 }) could not be loaded: Failed to load asset with name "assets/Topplegrass.gltf"
[ERROR][amethyst_assets::progress] Error loading handle 1, PREFAB, with name assets/Topplegrass.gltf: Failed to load asset with name "assets/Topplegrass.gltf"
caused by: Failed to load asset with name "assets/Topplegrass.gltf"
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }), backtrace: None, error: StringError("Failed to open file \"/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf\"") } }), backtrace: None, error: Source } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/Topplegrass.gltf\"\'") } }), backtrace: None, error: Format("GLTFScene") } }), backtrace: None, error: Asset("assets/Topplegrass.gltf") } }
caused by: Format "GLTFScene" could not load asset
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }), backtrace: None, error: StringError("Failed to open file \"/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf\"") } }), backtrace: None, error: Source } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/Topplegrass.gltf\"\'") } }), backtrace: None, error: Format("GLTFScene") } }
caused by: Failed to import gltf scene '"assets/Topplegrass.gltf"'
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }), backtrace: None, error: StringError("Failed to open file \"/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf\"") } }), backtrace: None, error: Source } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/Topplegrass.gltf\"\'") } }
caused by: Gltf import error
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }), backtrace: None, error: StringError("Failed to open file \"/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf\"") } }), backtrace: None, error: Source } }), backtrace: None, error: GltfImporterError } }
caused by: Failed to load bytes from source
Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }), backtrace: None, error: StringError("Failed to open file \"/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf\"") } }), backtrace: None, error: Source } }
caused by: Failed to open file "/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf"
Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }), backtrace: None, error: StringError("Failed to open file \"/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf\"") } }
caused by: No such file or directory (os error 2)
Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }
[ERROR][amethyst_assets::prefab::system] Failed loading sub asset: [AssetErrorMeta { error: Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }), backtrace: None, error: StringError("Failed to open file \"/home/gtors/.src/evoli/resources/assets/Topplegrass.gltf\"") } }), backtrace: None, error: Source } }), backtrace: None, error: GltfImporterError } }), backtrace: None, error: StringError("Failed to import gltf scene \'\"assets/Topplegrass.gltf\"\'") } }), backtrace: None, error: Format("GLTFScene") } }), backtrace: None, error: Asset("assets/Topplegrass.gltf") } }, handle_id: 1, asset_type_name: "PREFAB", asset_name: "assets/Topplegrass.gltf" }]
[ERROR][amethyst_assets::storage] "PREFAB": Asset "prefabs/creatures/topplegrass.ron" (handle id: Handle { id: 7 }) could not be loaded: Failed to load asset with name "prefabs/creatures/topplegrass.ron"
[ERROR][amethyst_assets::progress] Error loading handle 7, PREFAB, with name prefabs/creatures/topplegrass.ron: Failed to load asset with name "prefabs/creatures/topplegrass.ron"
caused by: Failed to load asset with name "prefabs/creatures/topplegrass.ron"
Error { inner: Inner { source: Some(Error { inner: Inner { source: None, backtrace: None, error: StringError("Failed loading sub asset") } }), backtrace: None, error: Asset("prefabs/creatures/topplegrass.ron") } }
caused by: Failed loading sub asset
Error { inner: Inner { source: None, backtrace: None, error: StringError("Failed loading sub asset") } }

Only a black window with background music appeared

p.s.:

-rw-r--r-- 1 gtors gtors 223K фев 16 17:15 resources/assets/topplegrass.bin
-rw-r--r-- 1 gtors gtors 5,0K фев 16 17:15 resources/assets/topplegrass.gltf
-rw-r--r-- 1 gtors gtors  487 фев 16 17:15 resources/prefabs/creatures/topplegrass.ron
-rw-r--r-- 1 gtors gtors 8,0K фев 16 17:15 src/systems/experimental/topplegrass.rs
gtors commented 4 years ago

Hm.. After renaming Topplegrass to topplegrass (resources/prefabs/creatures/topplegrass.ron) everything works well

Jazarro commented 4 years ago

Hm.. After renaming Topplegrass to topplegrass (resources/prefabs/creatures/topplegrass.ron) everything works well

Woops, sorry, that's my bad. In my defence, Windows is really annoying about filename capitalisation. :)

I'll post a pull request with a fix tonight.