How to reproduce:
[Short repro]
- Switch between Lit, Unlit Mesh, Quad, Lit Quad outputs multiple times, ~10 should be good
- Along the way while switching change some random settings in Output Inspector
- Click Output Inspector then click on the graph view empty space continuously until you notice editor starts freezing and then crash
[Long repro]
- Open the attached project
- Convert Lit Mesh to Lit Mesh (yeah, lit mesh)
- Convert to Unlit Mesh (Observe inspector - It is a scriptable object of VFX Mesh Output; now take a look at the Output name - it says Lit Mesh Output)
- Convert Unlit Mesh
- Convert to Unlit Mesh
- Convert to Lit Mesh
- Convert to Unlit Mesh
- Convert to Lit Quad
- Convert to Mesh
- Check Transparent Depth Prepass in theInspector
- Check LOD box in the Inspector
- Undo everything
- Click Lit Mesh Output
- Click in Graph View empty space
- Click Lit Mesh Output
- [repeat 14-15 actions until it crash the Editor]
Obtained 3 stack frames.
#0 0x00000106577544 in VFXMemorySerializer::StoreObjects(dynamic_array<PPtr<MonoBehaviour>, 0ul>)
#1 0x0000010657894d in VFXMemorySerializerBindings::StoreObjectsToByteArray(dynamic_array<PPtr<MonoBehaviour>, 0ul>, CompressionLevel)
#2 0x000001042f940c in VFXMemorySerializer_CUSTOM_StoreObjectsToByteArray(ScriptingBackendNativeArrayPtrOpaque*, CompressionLevel, BindingsArrayHandleOnStack*)
Note:
- Crash is consistent but reproduction is quite unpredictable
- Visuals of repro are in the attachments section