Search Issue Tracker


Fixed in 2023.3.0b7



Found in


Issue ID




The Editor crashes when removing material from Mesh Renderer



Steps to reproduce:
1. Open the attached “MaterialRemoveCrashBug” project
2. Open the “ShadowReceiverDemoScene” scene
3. In the Hierarchy window select Shadow Receivers → ShadowReceiverDoubleSided GameObject
4. In the Inspector window, under the Mesh Renderer → Materials remove OpaqueShadowReceiverDoubleSided material

Expected result: Removes the material
Actual result: The Editor crashes

Reproducible with: 2023.3.0a9, 2023.3.0b4
Not reproducible with: 2021.3.34f1, 2022.3.18f1, 2023.2.7f1, 2023.3.0a8

Testing environment: macOS Sonoma 14.2.1 (Intel), Windows 11 (Intel)
Not reproducible on: No other environment tested

First and last few lines of the stacktrace:
#0 0x000001614e78b5 in mono_unity_backtrace_from_context
#1 0x0000010daef859 in PrintStackTraceOSX(void*)
#2 0x0000010daee811 in HandleSignal(int, __siginfo*, void*)
#3 0x00000161540a38 in mono_chain_signal
#4 0x00000161463da0 in mono_sigsegv_signal_handler_debug
#5 0x007ff806b7a37d in _sigtramp
#6 0x0000016dac3750 in (Unknown)
#2520x00000000000000 in (Unknown)
#2530x0000010d1be905 in GPUDrivenProcessor::EnableGPUDrivenRenderingAndDispatchRendererData(core::array_ref<int>, ScriptingObjectPtr, ScriptingObjectPtr, ScriptingObjectPtr, ScriptingObjectPtr)
#2540x0000010ce0cbed in GPUDrivenProcessor_CUSTOM_EnableGPUDrivenRenderingAndDispatchRendererData(void*, BindingsManagedSpan*, ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
#2550x000001f4ab2f08 in (wrapper managed-to-native) UnityEngine.Rendering.GPUDrivenProcessor:EnableGPUDrivenRenderingAndDispatchRendererData_Injected …

  1. Resolution Note (fix version 2023.3.0b7):

    Fix assert and potential crash with 0 length parallel copy job when a mesh renderer has 0 materials in GPU Driven Rendering

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.