Stack Overflow
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version
Release 0.10.1 (1c5c947)
## What you did
For a 3D game, i implemented the struct Game who derive Default and Resource with this code:
```rs
#[derive(Default, Resource)]
pub struct Game {
pub player: Player
}
```
and ```rs
.init_ressource::()
```
in the main function
## What went wrong
This error occured:
```
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
fish: Job 1, 'cargo run' terminated by signal SIGABRT (Abandon)
```
## Additional information
When I reverse the list of derived traits, I get no error.
That's why when I set `Default` and then `Resource`, the error occurred. But the inversion does not give any error (code below)
```rs
#[derive(Resource, Default)]
pub struct Game {
pub player: Player
}
```
Contributor guide
Assessment
This issue has not been assessed yet.