Closed joarfish closed 5 years ago
I've never had that issue, even when letting the game run for a while. Did you use the Speed Up button to accelerate the game ? That might break some things.
I encountered that too, but I think only while using a speed up. I think the non-finite transform part can happen when we have a divided by 0 coordinate.
Definitely, something we should investigate. Thanks for reporting!
The speed up button increases the time scale indefinitely. If you click it a lot, the time step of each update becomes so large that entities start jumping out of world bounds and stuff starts breaking down. We should find a way to mitigate that.
We could implement the speed up as making several dispatches in a single update instead of having a single dispatch with a larger time step.
To clarify: The crash reported occurs regardless of the speed up button being pressed.
Hmm, I really can't reproduce the issue. The game never crashes randomly like that on my side.
I tried to reproduce it with cargo run --release
but it seems that this only happens with debug.
Let me know if there is anything I can provide to get this clarified.
Ok, I was able to reproduce it when running in Debug. I'm working on it now.
I believe I've tracked the origin of the bug.
If I disable the EnforceBoundsSystem
, the crashes disappear. Maybe modifying the transform directly causes some parallelism issues.
I fixed this in #83, but #74 might be a better solution
Description
Evoli crashes after running for unspecific time (can be a few seconds, sometimes 10minutes). This happens even without any interaction.
Reproduction Steps
cargo run
My Environment
What You Expected to Happen
Evoli runs until I close it.
What Actually Happened
Evoli panics with this message:
thread '<unnamed>' panicked at 'Entity Entity(13, Generation(4)) had a non-finite
Transform', /Users/XXX/.cargo/registry/src/github.com-1ecc6299db9ec823/amethyst_core-0.5.0/src/transform/systems.rs:105:13
Additional Context
I tried to debug the issue and found that if you remove the Ixies from the game it does not crash. As the backtrace (see below) indicates there seems to be a problem with transforming the isometry to a matrix in the amethyst's transform system. So, maybe someting with the parenting of Ixie swarmlings triggers the crash.
Of course this might just as well be a problem with amethyst 0.10.0. I did not try to compile evoli with the current master of amethyst.
Backtrace