Search Issue Tracker
Fixed
Fixed in 2022.2.5f1, 2023.1.0b6, 2023.2.0a1
Votes
3
Found in
2022.1.24f1
2022.2.1f1
2023.1.0a23
2023.2.0a1
Issue ID
UUM-21880
Regression
Yes
IL2CPP build crashes when capturing memory snapshot
Reproduction steps:
# Open the attached project “BuildCrash“
# Press File>Build And Run
# Press Window>Analysis>Memory Profiler
# In the Memory Profiler window press Editor>Local>Windows Player>Select current build
# In the Memory Profiler window press Capture
Expected result: Memory Profiler successfully captures memory snapshot
Actual result: Build crashes
Reproducible with: 2022.1.0a16, 2022.1.24f1, 2022.2.1f1, 2023.1.0a23
Not reproducible with: 2020.3.42f1, 2021.3.15f1
Couldn't test with: 2022.1.0a15(The type or namespace name 'MultiColumnTreeView' could not be found)
Reproducible on: Windows 11
Note: Build crashes only if the “File>Build Settings>Script Debugging” option is selected
First lines of the stack trace:
0x00007FFE640EA84A (GameAssembly) [C:\Program Files\Unity\2022.1.24f1_709dddfb713f_x64\Data\il2cpp\libil2cpp\os\Win32\Assert.cpp:12] il2cpp_assert
0x00007FFE641495F5 (GameAssembly) [C:\Program Files\Unity\2022.1.24f1_709dddfb713f_x64\Data\il2cpp\libil2cpp\vm\Class.cpp:623] il2cpp::vm::Class::GetValueSize
0x00007FFE64075AEA (GameAssembly) [C:\Program Files\Unity\2022.1.24f1_709dddfb713f_x64\Data\il2cpp\libil2cpp\metadata\FieldLayout.cpp:101] il2cpp::metadata::FieldLayout::GetTypeSizeAndAlignment
0x00007FFE64076AF1 (GameAssembly) [C:\Program Files\Unity\2022.1.24f1_709dddfb713f_x64\Data\il2cpp\libil2cpp\metadata\FieldLayout.cpp:162] il2cpp::metadata::FieldLayout::LayoutFields
0x00007FFE6414BABF (GameAssembly) [C:\Program Files\Unity\2022.1.24f1_709dddfb713f_x64\Data\il2cpp\libil2cpp\vm\Class.cpp:985] il2cpp::vm::LayoutFieldsLocked
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
- Screen.resolutions returns resolutions that include the notch area when called on Macs with a notch
- Shader Graph Editor Throws Exception When Deleting Custom Function Node
- Outlines are visible on Mesh when Alpha Clipping is enabled and Surface Type is set to Opaque
- UI Elements are not getting focused when navigating through using arrow keys if they’re placed in a specific position
- Deleted scene selection is wonky in the Build Settings
Resolution Note (fix version 2023.1.0b6):
A fix has been applied to il2cpp to address the issue.