Search Issue Tracker

Won't Fix

Votes

0

Found in

2022.3.19f1

2023.2.12f1

2023.3.0b9

6000.0.0b11

Issue ID

UUM-65227

Regression

No

Crash on Rendering.ScriptableRenderContext:Submit_Internal_Injected when enabling a GameObject in scene

--

-

Reproduction steps:
1. Open the attached project ("IN-66107_C...Unity")
2. Open scene ("Assets -> Scenes -> Tests -> Missile AI")
3. Enter Play mode
4. In Scene Hierarchy, enable the "Missiles" GameObject

Expected result: The GameObject gets enabled in the scene
Actual result: The Editor crashes

Reproducible with: 2022.3.19f1, 2023.2.12f1, 2023.3.0b9
Couldn't test with: 2021.3.35f1 (Issues with packages)

Reproducible on: macOS 14.3.1 (Intel), Windows 11 (User)
Not reproducible on: No other environment tested

Stacktrace:
at UnityEngine.Rendering.ScriptableRenderContext:Submit_Internal_Injected <0x000e0>
at UnityEngine.Rendering.ScriptableRenderContext:Submit_Internal <0x00072>
at UnityEngine.Rendering.ScriptableRenderContext:Submit <0x000d2>
at UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera <0x01bb2>
at UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack <0x03572>
at UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render <0x00d9a>

  1. Resolution Note:

    This issue comes from user scripts (Outline.cs) changing the material list of the VisualEffect renderer. For VFX Graph, this is not supported. The issue can be avoided by checking the renderer type on the user script before modifying the sharedMaterials list (i.e. filtering to only apply for MeshRenderers).

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.