bevyengine / bevyengine/bevy

DefaultPlugins on Windows 11 & WSL Ubuntu causes Segmentation fault

Open
#3,152 14 comments 2 reactions 0 assignees View on GitHub
C-Startup I-Crash O-Windows S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version
0.5

## Operating system & version
Windows 11 and WSL with Ubuntu 20.04

## What you did
1. install WSL (on Windows 11, no additional configuration is needed in order to display native Linux GUIs)
2. `cargo new bevy_test`, `cd bevy_test`
3. add `bevy="0.5"` to Cargo.toml
4. in src/main.rs, insert the following code:
```rust
use bevy::prelude::*;
fn main() {
println!("Hello, world!");
App::build()
.add_plugins(DefaultPlugins)
.run();
}
```
5. `cargo run`

## What you expected to happen
Print "Hello, world!" and exit the program.

## What actually happened
"Hello, world!"
Segmentation fault

## Additional information
Everything works until DefaultPlugins are added.
Sadly, I haven't tested this with Windows 10 so I don't know if it was working before.

Contributor guide

Open the contributing guide

Research direction

Start with the minimal project described in Cargo.toml and src/main.rs, using Bevy 0.5 on Windows 11 with WSL Ubuntu 20.04, and run cargo run. Compare behavior with and without DefaultPlugins, then trace the platform-specific failure. Done means the example no longer segfaults in the reported environment while preserving the expected output and exit behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.