Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo run command error in Windows 10 #60

Open
andrrff opened this issue Feb 16, 2021 · 2 comments
Open

Cargo run command error in Windows 10 #60

andrrff opened this issue Feb 16, 2021 · 2 comments

Comments

@andrrff
Copy link

andrrff commented Feb 16, 2021

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 andrrff changed the title Erro no comando cargo run --release no Windows 10 Cargo run --release command error in Windows 10 Feb 16, 2021
@andrrff andrrff changed the title Cargo run --release command error in Windows 10 Cargo run command error in Windows 10 Feb 16, 2021
@nikitalita
Copy link

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:
thetawavegame/thetawave-legacy#100

@Tobi34
Copy link

Tobi34 commented May 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants