Search Issue Tracker

Fix In Review for 2021.1

Planned for 2018.4, 2019.4, 2020.1, 2020.2

Votes

0

Found in

2019.4

2020.1

2020.1.0f1

2020.2

Issue ID

1266322

Regression

No

Crash on mono_class_fill_runtime_generic_context when entering Play Mode repeatedly

Mono

-

Reproduction steps:
1. Open user's attached project
2. Open scene "Main"
3. Enter Play Mode
4. In the Game, press "Button", then "Run"
5. Press E to enter the rocket, move around with WASD and shoot with left-click
6. Exit Play Mode
7. Repeat steps 3-6 (reproducible 1/8 times)
-- observe crash

Reproducible with: 2019.4.6f1, 2020.1.1f1, 2020.2.0a20
Could not test with: 2018.4.26f1 (errors)

Note:
- Sometimes editor windows become blank and usually Unity crashes soon after.
- Sometimes Unity freezes while trying to enter Play Mode.

  1. Response avatar

    Resolution Note (fix version 2021.1):

    Fixed issue where thread statics that reused thread static slots would not adhere to type alignment. This would cause the garbage collector to incorrectly clean up thread static data because it would only scan pointer aligned memory for references. This would lead to memory becoming corrupted and inducing random crashes.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.