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
- Property field override bar does not update transparency correctly when switching between valid and invalid GameObjects
- Project window selection is not updated when search term is changed
- Error when adding valid MonoBehaviour script to Prefab in Project window
- Editor Launch Screen will close when Enter is pressed on it
- ObjectPool's pool is destroyed when entering Play Mode without reloading Domain
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.