Search Issue Tracker
Fixed
Fixed in 6000.2.0a11
Votes
0
Found in
2021.3.34f1
2022.3.17f1
2023.2.7f1
2023.3.0b4
6000.0.0b11
6000.1.0a7
6000.2.0a1
Issue ID
UUM-61588
Regression
No
Crash fill_runtime_generic_context when entering the Play Mode in a specific project
Reproduction steps:
1. Open the attached project "CrashRepro"
2. Enter the Play mode
Expected result: Play mode starts
Actual result: Editor crashes
Reproducible with: 2021.3.34f1, 2022.3.17f1, 2023.2.7f1, 2023.3.0b4
Reproducible on: Windows 10
Not reproducible on: No other environment tested
First few lines of stack trace:
{noformat}0x00007ffb528ef0dd (mono-2.0-bdwgc) fill_runtime_generic_context (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-generic-sharing.c:2985)
0x00007ffb528ef3d9 (mono-2.0-bdwgc) mono_class_fill_runtime_generic_context (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-generic-sharing.c:3089)
0x00007ffb528de857 (mono-2.0-bdwgc) mono_rgctx_lazy_fetch_trampoline (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-trampolines.c:1020)
0x00000258db7308c6 ((<unknown>))
0x00000258408e626b (Mono JIT Code) System.Collections.Generic.List`1<T_REF>:GetEnumerator (){noformat}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Reflection Probe “Probe Scene Editing Mode:” text is barely visible
- [HDRP] Game view doesn’t refresh after changing Camera Background Type until mouse moves over it
- Some Shaders appear twice in Material Shader selection menu
- Editor freezes with a StackOverflowException when certain asset types are assigned to a managed component in a SubScene via AddComponentObject
- Text Script Importer Reference button links to a Missing Page when clicking the Reference Button in the Inspector
Resolution Note (fix version 6000.2.0a11):
This is partly a problem with user code. the method signature for InitializeOnEnterPlayMode does not match the required signature for InitializeOnEnterPlayMode.
To fix it now update the signature to match the documentation https://docs.unity3d.com/6000.0/Documentation/ScriptReference/InitializeOnEnterPlayModeAttribute.html
That we crash if the signature is not valid instead of giving a proper error message has been fix