# UE 5.1.1 - How to resolve crash when clicking "Use Custom Primitive Data" on a Material?

**URL:** <https://forums.unrealengine.com/t/ue-5-1-1-how-to-resolve-crash-when-clicking-use-custom-primitive-data-on-a-material/1133878>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, crash, bug-report, editor, question\
**Created:** [April 19, 2023, 9:38pm UTC](https://forums.unrealengine.com/t/ue-5-1-1-how-to-resolve-crash-when-clicking-use-custom-primitive-data-on-a-material/1133878 "2023-04-19T21:38:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![StagPoint](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stagpoint/32/677943_2.png) [@StagPoint](https://forums.unrealengine.com/u/StagPoint)\
**Post date:** [April 19, 2023, 9:38pm UTC](https://forums.unrealengine.com/t/ue-5-1-1-how-to-resolve-crash-when-clicking-use-custom-primitive-data-on-a-material/1133878/1 "2023-04-19T21:38:25Z")

</div>

The UE 5.1.1 editor crashes when I click on Use Custom Primitive Data on a Material Parameter.

The crash is 100% consistent and reproducible.

Is this common? Is there a workaround?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/d/d1de119bd183c8455e658769de7f5d6f899e0712.jpeg "Unreal Engine 5.1.1 - Crash when clicking Use Custom Primitive Data") ](https://www.youtube.com/watch?v=ejc2o-AndHw)

Crash Reporter log below:

````auto
Assertion failed: CurrentGPUVirtualAddress != 0 [File:D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12DescriptorCache.cpp] [Line: 609]

UnrealEditor_D3D12RHI!FD3D12DescriptorCache::SetConstantBuffers<3>() [D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12DescriptorCache.cpp:609]
UnrealEditor_D3D12RHI!FD3D12StateCache::ApplyResources() [D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12StateCache.cpp:727]
UnrealEditor_D3D12RHI!FD3D12StateCache::ApplyState<0>() [D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12StateCache.cpp:543]
UnrealEditor_D3D12RHI!FD3D12CommandContext::RHIDrawIndexedPrimitive() [D:\build\++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Commands.cpp:2001]
UnrealEditor_RHI!FRHICommandDrawIndexedPrimitive::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandListCommandExecutes.inl:236]
UnrealEditor_SlateRHIRenderer!FRHICommand<FRHICommandDrawIndexedPrimitive,FRHICommandDrawIndexedPrimitiveString1148>::ExecuteAndDestruct() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandList.h:855]
UnrealEditor_RHI!FRHICommandListBase::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:438]
UnrealEditor_RHI!<lambda_d9c5c35f8ce97cb91cdbe1d4918d55a5>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:744]
UnrealEditor_RHI!TGraphTask<TFunctionGraphTaskImpl<void __cdecl(void),0> >::ExecuteTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:1348]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksNamedThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:760]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:649]
UnrealEditor_RenderCore!FRHIThread::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:332]
UnrealEditor_Core!FRunnableThreadWin::Run() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]```

**[Edit]** This doesn't happen on every material, for whatever that's worth, but it is 100% consistent on that particular material and at least one other.
````

---

<div class="post-metadata">

**Author:** ![dorusoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorusoftware](https://forums.unrealengine.com/u/dorusoftware)\
**Post date:** [April 19, 2023, 11:35pm UTC](https://forums.unrealengine.com/t/ue-5-1-1-how-to-resolve-crash-when-clicking-use-custom-primitive-data-on-a-material/1133878/2 "2023-04-19T23:35:58Z")

</div>

try disconnecting the node before applying that option. then reconnect the node again.

maybe you get lucky.

---

<div class="post-metadata">

**Author:** ![StagPoint](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stagpoint/32/677943_2.png) [@StagPoint](https://forums.unrealengine.com/u/StagPoint)\
**Post date:** [April 20, 2023, 12:03am UTC](https://forums.unrealengine.com/t/ue-5-1-1-how-to-resolve-crash-when-clicking-use-custom-primitive-data-on-a-material/1133878/3 "2023-04-20T00:03:42Z")

</div>

Wow, I really thought that worked at first, lol.

It didn’t crash when I set it this time (after having disconnected the node), but then crashed when I re-connected it.

That’s surely significant, though I can’t think of what it signifies.

---

<div class="post-metadata">

**Author:** ![dorusoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorusoftware](https://forums.unrealengine.com/u/dorusoftware)\
**Post date:** [April 20, 2023, 9:01am UTC](https://forums.unrealengine.com/t/ue-5-1-1-how-to-resolve-crash-when-clicking-use-custom-primitive-data-on-a-material/1133878/4 "2023-04-20T09:01:34Z")

</div>

till you reconnect the node the node unreal will “ignore” it. once you connect it it will rebuild stuff behind which obviously fail.

because is crashing that is clearly a bug but maybe is related with other stuff you have in the material.

so first try to create the simplest material you can and add only that node with the issue. see if it crashes or not. if not, then try adding new nodes as in the material with issues till you get to the one that will react with the problematic node and will crash unreal.

you can also rebuild the material as a new separate file, maybe it got corrupted somehow.

in any case you should report the bug but I guess if they fix it, it will be weeks or months from now
