bevyengine / bevyengine/bevy

error: process didn't exit successfully: `target\debug\examples\breakout.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Open
#5,998 6 comments 0 reactions 0 assignees View on GitHub
C-Bug I-Crash O-Windows
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.8.1

## Relevant system information

If you cannot get Bevy to build or run on your machine, please include:

Rust version: rustc 1.65.0-nightly (happens with stable as well)

## What you did

I was following the setup instructions [here](https://bevyengine.org/learn/book/getting-started/setup/).
However, I wasn't able to `cargo run --features bevy/dynamic` successfully. Following [this issue](https://github.com/bevyengine/bevy/issues/1110), I added the following lines to my config.toml to disable share generics, but didn't see any change after re-running the sample:
```
[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=off"]
```

## What went wrong

When I ran cargo run --features bevy/dynamic, I got a segmentation fault:
error: process didn't exit successfully: `target\debug\examples\breakout.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
Segmentation fault

## Additional information

I don't see this issue when running an empty Hello World project with Bevy as a dependency. I'm also quite new to Rust so I could be missing something simple!

Edit: If I run the sample with nothing in my config.toml, I get the following error instead:
`note: LINK : fatal error LNK1189: library limit of 65535 objects exceeded`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.