space-menace icon indicating copy to clipboard operation
space-menace copied to clipboard

Cargo run command error in Windows 10

Open andrrff opened this issue 3 years ago • 2 comments

Command: cargo run --release

My changes:

cargo.toml

Before

[dependencies.amethyst]
version = "0.15.0"
default-features = false
features = ["json", "animation"]

[features]
default = ["metal"]
metal = ["amethyst/metal"]
vulkan = ["amethyst/vulkan"]

After

[dependencies.amethyst]
version = "0.15.0"
default-features = false
features = ["json", "animation", "no-slow-safety-checks"]

[features]
default = ["vulkan"]
empty = ["amethyst/empty"]
metal = ["amethyst/metal"]
vulkan = ["amethyst/vulkan"]

Log:

warning: unused import: GenericBox

src\entities\flier.rs:15:28 | 15 | Directions, Flier, GenericBox, Motion, | ^^^^^^^^^^ | = note: #[warn(unused_imports)] on by default

warning: 1 warning emitted

Finished release [optimized] target(s) in 4m 03s
 Running `target\release\space-menace.exe`

[INFO][amethyst::app] Initializing Amethyst... [INFO][amethyst::app] Version: 0.15.0 [INFO][amethyst::app] Platform: x86_64-pc-windows-msvc [INFO][amethyst::app] Amethyst git commit: UNKNOWN [INFO][amethyst::app] Rustc version: 1.51.0-nightly Nightly [INFO][amethyst::app] Rustc git commit: a2f8f6281817d430e20726128b739d3c6708561c [INFO][winit::platform::platform::window] Guessed window DPI factor: 1 thread '' panicked at 'attempted to leave type linked_hash_map::Node<u32, rusttype::gpu_cache::Row> uninitialized, which is invalid', C:\Users\andre.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\mem\mod.rs:671:9 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace [ERROR][rendy_resource::escape] Terminal must be dropped after all Escapes [ERROR][rendy_resource::escape] Terminal must be dropped after all Escapes [ERROR][rendy_resource::escape] Terminal must be dropped after all Escapes [ERROR][rendy_resource::escape] Terminal must be dropped after all Escapes [ERROR][rendy_resource::escape] Terminal must be dropped after all Escapes [ERROR][rendy_resource::escape] Terminal must be dropped after all Escapes [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(196608) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(1024) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(524288) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(131072) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(32768) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(4194304) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(110592) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(262144) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(933888) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(1048576) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(229376) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(8192) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(65536) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(425984) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(4096) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(2097152) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(180224) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(131072) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(2048) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(1048576) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(256) is still used [ERROR][rendy_memory::allocator::dynamic] Memory leak: SizeEntry(16384) is still used [ERROR][rendy_descriptor::allocator] Not all descriptor sets were deallocated [ERROR][rendy_descriptor::allocator] Descriptor pool is still in use during allocator disposal. DescriptorPool { size: 64, free: 62, freed: 0 } [ERROR][rendy_descriptor::allocator] Not all descriptor sets were deallocated [ERROR][rendy_descriptor::allocator] Descriptor pool is still in use during allocator disposal. DescriptorPool { size: 64, free: 63, freed: 0 } [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? [ERROR][rendy_resource::escape] Escape was dropped after a Terminal? error: process didn't exit successfully: target\release\space-menace.exe (exit code: 101)

Note:

It opens the game window, but then it closes, and I tested it without the flag --release the error persisted

Version OS: Windows 10 20H2 19042.804

andrrff avatar Feb 16 '21 16:02 andrrff

I have the same issue. It looks like it's similar to this issue here in theta-wave, which fixed it in its develop branch: https://github.com/amethyst/theta-wave/issues/100

nikitalita avatar Mar 03 '21 01:03 nikitalita

I had a similar problem with windows 10. This looks like a dependency problem (just guessing). I did the following to make it work:

  1. Changed the cargo.TOML: ` [dependencies.amethyst] version = "0.15.3" default-features = false features = ["json", "animation", "no-slow-safety-checks"]

[features] default = ["vulkan"] metal = ["amethyst/metal"] vulkan = ["amethyst/vulkan"] `

  1. Deleted the "Cargo.lock" file. This allows to select newer crates.

  2. Adjusted the resolution in resources\display_config.ron

Run it from with "cargo run" otherwise the programm will not find its resource and asset folder.

Tobi34 avatar May 01 '21 21:05 Tobi34