# D3D12 UniformBuffer Access Violation Crash in UE 5.5.4 Packaged Builds 

**URL:** <https://forums.unrealengine.com/t/d3d12-uniformbuffer-access-violation-crash-in-ue-5-5-4-packaged-builds/2516551>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, crash, Rendering\
**Created:** [May 18, 2025, 1:23pm UTC](https://forums.unrealengine.com/t/d3d12-uniformbuffer-access-violation-crash-in-ue-5-5-4-packaged-builds/2516551 "2025-05-18T13:23:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hizxc8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hizxc8](https://forums.unrealengine.com/u/hizxc8)\
**Post date:** [May 18, 2025, 1:23pm UTC](https://forums.unrealengine.com/t/d3d12-uniformbuffer-access-violation-crash-in-ue-5-5-4-packaged-builds/2516551/1 "2025-05-18T13:23:09Z")

</div>

### Summary

Crash Details  
The application crashes with an access violation when trying to read from an invalid UniformBuffer pointer:  
Unhandled exception thrown: read access violation.  
InBuffer was 0xFFFFFFFFFFFFFFBF.

The crash occurs at this line:  
uint32 UniformBufferHash = InUniformBuffer-\>GetLayout().GetHash();

### Please select what you are reporting on:

Creative

### What Type of Bug are you experiencing?

Other

### Steps to Reproduce

The crash occurs in packaged builds (both Development and Shipping configurations) and is more frequent when teleporting between different locations in the game.

### Expected Result

Not crash.

### Observed Result

Call Stack  
The crash happens in the ValidateBoundUniformBuffer function when binding shader parameters:  
[Inline Frame] MyGame.exe!ValidateBoundUniformBuffer(FD3D12UniformBuffer \* InUniformBuffer, FRHIShader \* InShaderRHI, unsigned int InBufferIndex) Line 54  
MyGame.exe!BindUniformBuffer(FD3D12CommandContext & Context, FRHIShader \* Shader, EShaderFrequency ShaderFrequency, unsigned int BufferIndex, FD3D12UniformBuffer \* InBuffer) Line 67  
MyGame.exe!SetShaderParametersOnContext(FD3D12CommandContext & Context, FRHIShader \* Shader, EShaderFrequency ShaderFrequency, TArrayView\<unsigned char const ,int\> InParametersData, TArrayView\<FRHIShaderParameter const ,int\> InParameters, TArrayView\<FRHIShaderParameterResource const ,int\> InResourceParameters, TArrayView\<FRHIShaderParameterResource const ,int\> InBindlessParameters) Line 1101  
MyGame.exe!FD3D12CommandContext::RHISetShaderParameters(FRHIComputeShader \* Shader, TArrayView\<unsigned char const ,int\> InParametersData, TArrayView\<FRHIShaderParameter const ,int\> InParameters, TArrayView\<FRHIShaderParameterResource const ,int\> InResourceParameters, TArrayView\<FRHIShaderParameterResource const ,int\> InBindlessParameters) Line 1148  
MyGame.exe!FRHICommandSetShaderParameters::Execute(FRHICommandListBase & CmdList) Line 124  
[Inline Frame] MyGame.exe!FCpuProfilerTrace::FEventScope::{ctor}(unsigned int &) Line 171  
MyGame.exe!FRHICommand\<FRHICommandSetShaderParameters,FRHICommandSetShaderParametersString1640\>::ExecuteAndDestruct(FRHICommandListBase & CmdList) Line 1473  
MyGame.exe!FRHICommandListBase::Execute() Line 426  
MyGame.exe!FRHICommandListExecutor::FTranslateState::Translate(FRHICommandListBase \* CmdList) Line 906

Debugging Findings  
Through debugging, I’ve discovered:  
1.The InBuffer parameter in BindUniformBuffer is 0xdddddddddddddddd (uninitialized memory marker)  
2.When examining InResourceParameters in the debugger:

- InResourceParameters[0].Resource is a valid pointer (0x000001af6d0348a0)
- But its ResourceType is RRT\_None and bCommitted is 0
- The OwnerName shows as Illegal name (block index out of range)  
1.The issue appears to be that FD3D12CommandContext::RetrieveObject(Parameter.Resource, GpuIndex) is returning an invalid pointer  
2.The crash is more likely to occur during level transitions or when teleporting between different areas, suggesting it might be related to resource loading/unloading or memory management during these transitions.  
3.The issue only manifests in packaged builds (both Development and Shipping), not in the editor.

### Platform(s)

Windows 11

---

<div class="post-metadata">

**Author:** ![hizxc8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hizxc8](https://forums.unrealengine.com/u/hizxc8)\
**Post date:** [May 27, 2025, 6:20am UTC](https://forums.unrealengine.com/t/d3d12-uniformbuffer-access-violation-crash-in-ue-5-5-4-packaged-builds/2516551/2 "2025-05-27T06:20:22Z")

</div>

> [@Intermittent D3D12 UniformBuffer Access Violation Crash in UE 5.5.4 Packaged Builds](https://forums.unrealengine.com/t/intermittent-d3d12-uniformbuffer-access-violation-crash-in-ue-5-5-4-packaged-builds/2516552):
>
> Hello Unreal Engine community, I’m experiencing an intermittent crash in our UE 5.5.4 project related to UniformBuffer handling in the D3D12 RHI. The crash occurs in packaged builds (both Development and Shipping configurations) and is more frequent when teleporting between different locations in the game. I’ve spent considerable time debugging this issue and would appreciate any insights from the community. Crash Details The application crashes with an access violation when trying to read fro…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 14, 2025, 1:23pm UTC](https://forums.unrealengine.com/t/d3d12-uniformbuffer-access-violation-crash-in-ue-5-5-4-packaged-builds/2516551/3 "2025-11-14T13:23:14Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
