Search Issue Tracker

Fixed

Fixed in 2023.2.14f1, 2023.3.0b10, 7000.0.0a1

Votes

0

Found in

2023.2.8f1

2023.3.0b5

7000.0.0a1

Issue ID

UUM-62295

Regression

Yes

Crash on mono_log_write_logfile when using the MethodBase.GetParameters() method

--

-

Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. Enter Play Mode
4. Observe the crash

Reproducible with: 2023.2.0a10, 2023.2.8f1, 2023.3.0b5
Not reproducible with: 2021.3.34f1, 2022.3.19f1, 2023.2.0a9

Reproduced on: Windows 10, Windows 11 (by reporter)
Not reproducible on: No other environment tested

Notes:
1. Not reproducible in Player
2. The following error is logged in the Editor.log file:

(Filename: Assets/NewBehaviourScript.cs Line: 55)
mono_class_from_mono_type_internal: implement me 0x00
Assertion: should not be reached at C:\build\output\Unity-Technologies\mono\mono\metadata\class.c:2224
Crash!!!

3. Commenting out line “var parameters = methodInfo.GetParameters();“ in the NewBehaviourScript.cs stops the crash from occurring

First few lines of the stack trace:
0x00007FFFB2D1CF19 (KERNELBASE) RaiseException
0x00007FFEDBCF0C0C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\utils\mono-log-common.c:143] mono_log_write_logfile
0x00007FFEDBCDC822 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:172] monoeg_g_logv_nofree
0x00007FFEDBCDC8FC (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:217] monoeg_assertion_message
0x00007FFEDBD3A642 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\class.c:2224] mono_class_from_mono_type_internal

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.