Search Issue Tracker

Fixed

Fixed in 2021.3.45f1, 2022.3.48f1, 6000.0.18f1, 7000.0.0a1

Votes

0

Found in

2021.3.39f1

2022.3.33f1

6000.0.7f1

7000.0.0a1

Issue ID

UUM-74045

Regression

No

Crash on ParticleSystemRenderer::UpdateVertexInputLayout when copying and pasting a Prefab containing a specific Particle System

--

-

Reproduction steps:
1. Open the attached “ReproProj” project
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. In the Hierarchy, copy and paste the “Forest Tile 1“ Prefab

Expected result: The Prefab is copied
Actual result: The Editor crashes

Reproducible with: 2021.3.39f1, 2022.3.33f1, 6000.0.7f1

Reproducible on: macOS 14.5 (M1 Max)
Not reproducible on: No other environment tested

Note: Doesn’t crash when the Particle System GO is disabled in the Prefab

First few lines of the stack trace:
{{#0 0x000001057bd27c in ParticleSystemRenderer::UpdateVertexInputLayout(bool, bool, ParticleSystemRenderer::VertexInputLayoutMode, ParticleSystemVertexStreamsRendererData&, MeshVertexFormat**, VertexAttributeFormats*)}}
{{#1 0x000001069c1144 in ParticleSystemGeometryJob::ScheduleJobs(BaseRenderer**, unsigned long, RendererCullingCallbackProperties const&)}}
{{#2 0x00000104a54d14 in DispatchGeometryJobs(dynamic_array<BaseRenderer*, 0ul>*, RendererCullingCallbackProperties const&)}}
{{#3 0x00000104c360f0 in CullScriptable(ScriptableRenderContext const&, ScriptableCullingParameters const&, ScriptableCullingAdditionalParameters const*)}}
{{#4 0x000001044925f4 in ScriptableRenderContext_CUSTOM_Internal_Cull_Injected(ScriptableCullingParameters&, ScriptableRenderContextManaged const&, void*)}}
{{#5 0x0000034709f46c in (wrapper managed-to-native) UnityEngine.Rendering.ScriptableRenderContext:Internal_Cull_Injected (UnityEngine.Rendering.ScriptableCullingParameters&,UnityEngine.Rendering.ScriptableRenderContext&,intptr) [{0x2c03c10d0} + 0x7c] (0x34709f3f0 0x34709f4d0) [0x12f902a80 - Unity Child Domain]}}

Comments (1)

  1. PaulDemeulenaere

    Jul 03, 2024 15:38

    FYI, the root cause of this issue is a Render invoked within the OnEnable of a parent component.
    Nevertheless, It shouldn't crash.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.