Search Issue Tracker
Fixed in 2021.3.9f1
Fixed in 2021.3.X, 2022.1.X, 2022.2.X, 2023.1.X, 2023.1.0a6
Votes
0
Found in
2021.3.7f1
2022.1.1f1
2022.2.0a13
2023.1.0a3
Issue ID
UUM-603
Regression
No
Crash on invoking function pointer (runtime_invoke_object) when type argument is a class
How to reproduce:
1. Open the attached project "function-pointers-corruption.zip"
2. In the Menu bar navigate to "TEST" > last option in the dropdown menu
Reproducible with: 2021.2.17f1, 2022.1.0b14, 2022.2.0a8
Couldn't test with: 2019.4.37f1, 2020.3.32f1 (Test scripts syntax errors)
First lines of the stack trace:
0x00007fffeb826962 (mono-2.0-bdwgc) \[mini-exceptions.c:917] get_method_from_stack_frame
0x00007fffeb827ead (mono-2.0-bdwgc) \[mini-exceptions.c:1381] mono_walk_stack_full
0x00007fffeb827851 (mono-2.0-bdwgc) \[mini-exceptions.c:1204] mono_walk_stack_with_ctx
0x00007fffeb6b1cac (mono-2.0-bdwgc) \[threads.c:4275] mono_unity_managed_callstack
0x00007ff686a97844 (Unity) MonoManager::ExtractStackTraceQuick
0x00007ff685cf0b9a (Unity) Debug_CUSTOM_ExtractStackTraceNoAlloc
0x000001b6e5c45ba8 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
0x000001b6e5c45a03 (Mono JIT Code) UnityEngine.StackTraceUtility:ExtractStackTrace ()
0x000001b6e2b380d5 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_object (object,intptr,intptr,intptr)
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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Resolution Note (fix version 2023.1):
Fixed crash that would occur when a generic class was passed through a function pointer.
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.16f1