Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.4
2020.3
2020.3.15f2
2021.1
2021.2
2022.1
Issue ID
1362810
Regression
No
Crash with Marshalling::ArrayUnmarshaller when reloading a Scene
How to reproduce:
1. Open the user’s attached project
2. Enter play mode
3. Press the “ESC” key while in play mode and then press on the “Restart” button
4. If it didn’t crash, repeat step 3
Reproducible with: 2019.4.30f1, 2020.3.18f1, 2021.1.21f1, 2021.2.0b12, 2022.0a8
Stack trace:
#0 0x007fff2048a029 in _platform_memmove$VARIANT$Haswell
#1 0x0000010476d3ff in Marshalling::ArrayUnmarshaller<int, int>::ArrayUnmarshaller<std::__1::vector<unsigned int, stl_allocator<unsigned int, (MemLabelIdentifier)1, 16> > >(std::__1::vector<unsigned int, stl_allocator<unsigned int, (MemLabelIdentifier)1, 16> > const&)
#2 0x0000010476d21a in Mesh_CUSTOM_GetTrianglesImpl(ScriptingBackendNativeObjectPtrOpaque*, int, unsigned char)
#3 0x00000196dcc804 in (wrapper managed-to-native) UnityEngine.Mesh:GetTrianglesImpl (UnityEngine.Mesh,int,bool) {0x7fb5383f8ef8} + 0x74 (0x196dcc790 0x196dcc8bb) [0x148808960 - Unity Child Domain]
#4 0x00000148150cab in mono_jit_runtime_invoke
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Resolution Note:
The crash occurs because Unity runs out of memory. The project doubles an array in size each time the scene is reloaded because of a user script.