Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.3.X, 2022.1.X
Votes
0
Found in
2019.4
2020.3
2021.2
2022.1
2022.1.0a16
Issue ID
1390445
Regression
No
Crash on mono_log_write_logfile when calling Marshal.GetFunctionPointerForDelegate on a delegate with a Nullable<T> return value
Reproduction steps:
1. Open the project "1390445.zip"
2. Drag "Test.cs" script onto any object in the Hierarchy
3. Enter Play Mode
Reproducible with: 2019.4.34f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
========== OUTPUTTING STACK TRACE ==================
0x00007FFD79224F69 (KERNELBASE) RaiseException
0x00007FFCED2D064C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\utils\mono-log-common.c:143] mono_log_write_logfile
0x00007FFCED2BC4A2 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:172] monoeg_g_logv_nofree
0x00007FFCED2BC57C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:215] monoeg_assertion_message
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a11. A patch to the Unity fork of Mono has merged to throw the proper exception when creating a function pointer to a managed method with a generic return type. The Unity editor crash will be avoided. https://github.com/Unity-Technologies/mono/pull/1561
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.4f1
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.4f1