Unity Issue Tracker - Crash on ComponentMatchesRequirement_ByScriptingClassNoInterface when calling GameObject.Instantiate function
Closed
UUM-5764
Crash on ComponentMatchesRequirement_ByScriptingClassNoInterface when calling GameObject.Instantiate function
Unity: Scene Management
Won't Fix
6.0.X
2023.3.X
2023.2.X
2023.1.X
Cancelling this port, as the issue will be addressed in the 6000.0.x port
Closing, as this Unity version will no longer be getting updates.
Closing, as this Unity version will no longer be getting updates.
How to reproduce:
1. Open the user’s attached project
2. Open the "_StylizedTerrain" Scene
3. Enter the Play mode
4. Hold the R2 button on the controller until the biker crashes
5. Hold the Y button on the controller to call the “GameObject.Instantiate” function
6. Repeat step 5 a dozen times
Expected result: The Editor doesn’t crash
Actual result: The Editor crashes
Reproducible with: 2020.3.36f1, 2021.3.6f1, 2022.1.5f1, 2022.2.0a17, 2023.1
Could not test with: 2019.4.40f1 - due to errors in the Console window
Note:
The issue was reproduced using the Xbox One controller
First lines of stack trace:
0x00007ff647250698 (Unity) ComponentMatchesRequirement_ByScriptingClassNoInterface
0x00007ff647250230 (Unity) GetComponentsOfTypeFromGameObject<1,0>
0x00007ff6472554b9 (Unity) ScriptingGetComponentsOfTypeFromGameObject
0x00007ff6472558c6 (Unity) ScriptingGetComponentsOfTypeFromGameObjectFastPath
0x00007ff64636c1b8 (Unity) GameObject_CUSTOM_TryGetComponentFastPath
Prioritise and Follow this issue
Have a workaround or additional info about this issue?