Skip to content

Building the tutorial code with bevy/dynamic on Windows 10 raises error #2006

Open
@mattdeboard

Description

Bevy version

0.5

Operating system & version

Windows 10 Version Dev (OS Build 21364.1000)

What you did

cargo run --features bevy/dynamic running against the code that is set up as directed on this page of the book.

What you expected to happen

The code would have run exactly the same as if I'd left off --features bevy/dynamic, but compile slower.

What actually happened

The code compiled about as fast but it raises this error:

error: process didn't exit successfully: `target\debug\shodokan.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

Additional information

The repo in question.

Here is my .cargo/config.toml file (Note: "-Zshare-generics=off"; I did that because I was having same issue from #1110. Setting generics=off seemed to resolve my LNK1189 problem for the time being.):

[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]

# NOTE: you must manually install https://github.com/michaeleisel/zld on mac. you can easily do this with the "brew" package manager:
# `brew install michaeleisel/zld/zld`
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]

[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=off"]

Here is my Cargo.toml:

[package]
name = "shodokan"
version = "0.1.0"
authors = ["Matt DeBoard <matt.deboard@gmail.com>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# bevy = { version = "0.5", features = ["dynamic"] }
bevy = "0.5"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Build-SystemRelated to build systems or continuous integrationC-BugAn unexpected or incorrect behaviorC-StartupA crash that occurs when first attempting to run a Bevy appO-WindowsSpecific to the Windows desktop operating systemP-CrashA sudden unexpected crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions