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
- PlayerPropertiesChanged event fires before Player Properties are applied
- Opening Media Pop-out in “Before You Start” Tutorial throws “Styles” and “Styles_Dark” messages in the Console window
- Play Mode Scenario selection/highlight is too long and out of its bounds when the Play Mode Scenario window is opened after maximizing
- Asset name is not shown in the Undo History window when a sprite is modified
- Moving a Tab to a floating window fails when floating windows are docked next to each other
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.