Search Issue Tracker

Fixed in 2022.1.X

Votes

0

Found in

2019.4

2020.3

2021.1

2021.1.0f1

2021.2

2022.1

Issue ID

1343949

Regression

No

Editor crashes on Marshal.GetFunctionPointerForDelegate when the return type of the Delegate is int[]

Mono

-

How to reproduce:
1. Open the attached "1343949.zip" project
2. Open "SampleScene" Scene
3. Enter the Play mode

Expected result: The Editor does not crash
Actual result: The Editor crashes

Reproducible with: 2019.4.31f1, 2020.3.20f1, 2021.1.24f1, 2021.2.0b15, 2022.1.0a12

First lines of the crash stacktrace:
0x00007FFEC4193FE9 (KERNELBASE) RaiseException
0x00007FFE4DE4AF71 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\utils\mono-log-common.c:143] mono_log_write_logfile
0x00007FFE4DE36D29 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:172] monoeg_g_logv_nofree
0x00007FFE4DE36E0C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:215] monoeg_assertion_message
0x00007FFE4DE36E76 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:239] mono_assertion_message_unreachable

  1. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0b1

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.