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
- UI Toolkit World UI Text Field unfocuses immediately when clicking on it using XR Controller
- Crash on CallWindowProcW when entering Play mode for the second time and running the Editor in the background while using System.Windows.Forms functions
- 2D Freeform Light shadows disappear when light center is offset from shape bounds
- Crash on MarkAllDependencies when opening scenes with Assets from the YarnSpinner package
- Crash on CollectAllSceneManagerAndObjectIDs when opening a specific Scene
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.