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

Mono

-

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

  1. 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

  2. Resolution Note (fix version 2022.1):

    Fixed in: ​​​​​​​2022.1.4f1

  3. Resolution Note (fix version 2021.3):

    Fixed in: 2021.3.4f1

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.