Reproduction steps:
1. Open the attached project “Test”
2. Open “SampleScene” Scene
3. In the Hierarchy select “MapMagic” Game Object
4. In the Project Window find Assets/MapMagic/Demo/Graphs/SimpleGraph.asset
5. Drag SimpleGraph.asset to “Graph” under “Map Magic Object (Script)” in the Inspector
Expected result: Asset is successfully selected as “Graph”
Actual result: Editor crashes
Reproducible with: 2021.2.0a18, 2021.3.8f1, 2022.1.14f1, 2022.2.0b6, 2023.1.0a8
Not reproducible with: 2020.3.39f1, 2021.2.0a17
Reproducible on: MacOS 12.5 (M1 Max)
Not reproducible on: Windows 10
Note: Reproduces with Rosetta Editor
First lines of Stack Trace:
#0 0x00000163cad4b8 in lookup_pinvoke_call_impl
#1 0x00000163cadfc2 in mono_lookup_pinvoke_call_internal
#2 0x00000163aa7cf1 in mono_jit_compile_method_with_opt
#3 0x00000163b2f415 in common_call_trampoline
#4 0x00000163b2ee43 in mono_magic_trampoline