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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.