# Fix BinkMediaTextureResource command list crash on UE 5.6 

**URL:** <https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334>\
**Category:** Rendering\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [May 16, 2025, 9:01pm UTC](https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334 "2025-05-16T21:01:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 16, 2025, 9:01pm UTC](https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334/1 "2025-05-16T21:01:15Z")

</div>

Bink will create textures without a required UAV access flag. Upon finding the crash and logging the command list resource barriers, we’ll see something like this:

BARRIER (CmdList: 0000021089DEF230, Queue: 3D) 3/3: Bink:BK\_IntroPlayer\_Tex 00000210A1DA4AB0 (Sub: 4294967295), D3D12\_RESOURCE\_STATE\_NON\_PIXEL\_SHADER\_RESOURCE | D3D12\_RESOURCE\_STATE\_PIXEL\_SHADER\_RESOURCE -\> D3D12\_RESOURCE\_STATE\_RENDER\_TARGET

LogRHI: Error: Incompatible Transition State for Resource Bink:BK\_IntroPlayer\_Tex - D3D12\_RESOURCE\_STATE\_UNORDERED\_ACCESS requires D3D12\_RESOURCE\_FLAG\_ALLOW\_UNORDERED\_ACCESS.

One way to fix this is to modify FBinkMediaTextureResource::InitRHI to include UAV.

`const FRHITextureCreateDesc Desc = FRHITextureCreateDesc::Create2D(DebugName) .SetExtent(w, h) .SetFormat(PixelFormat) // FIX Add UAV access flag .SetFlags(TexCreateFlags | ETextureCreateFlags::RenderTargetable | ETextureCreateFlags::ShaderResource | ETextureCreateFlags::UAV) // FIX .SetInitialState(ERHIAccess::SRVMask);`

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 16, 2025, 9:01pm UTC](https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334/2 "2025-05-16T21:01:19Z")

</div>

**Steps to Reproduce**  
Import a Bink-encoded movie and play it through a FBinkMediaTextureResource. As soon as the texture resource is refreshed on load and the next FlushRenderingCommands happens, FD3D12CommandList::Close will crash with ID3D12GraphicsCommandList::Close returning E\_INVALIDARG

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 16, 2025, 9:03pm UTC](https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334/3 "2025-05-16T21:03:38Z")

</div>

Observed callstack in this crash:

[Inlined] UE::Logging::Private::BasicFatalLogV(const FLogCategoryBase &, const UE::Logging::Private::FStaticBasicLogRecord \*, void \*, char \*) StructuredLog.cpp:1600

UE::Logging::Private::BasicFatalLog(const FLogCategoryBase &,const UE::Logging::Private::FStaticBasicLogRecord \*,…) StructuredLog.cpp:1609

[Inlined] FD3D12DynamicRHI::HandleFailedD3D12Result::\_\_l2::\<lambda\_1\>::operator()(bool) D3D12Util.cpp:1014

FD3D12DynamicRHI::HandleFailedD3D12Result(HRESULT, ID3D12Device \*, bool, const wchar\_t \*) D3D12Util.cpp:1076

D3D12RHI::VerifyD3D12Result(HRESULT, const char \*, const char \*, unsigned int, ID3D12Device \*, FString) D3D12Util.cpp:1088

FD3D12CommandList::Close() D3D12CommandList.cpp:278

[Inlined] FD3D12ContextCommon::CloseCommandList() D3D12CommandContext.cpp:435

FD3D12CommandContext::CloseCommandList() D3D12CommandContext.cpp:446

[Inlined] FD3D12BindlessResourceManager::FinalizeContext(FD3D12CommandContext &) D3D12BindlessDescriptors.cpp:555

[Inlined] FD3D12BindlessDescriptorManager::FinalizeContext(FD3D12CommandContext &) D3D12BindlessDescriptors.cpp:839

FD3D12CommandContext::Finalize(TArray\<…\> &) D3D12CommandContext.cpp:512

[Inlined] FD3D12DynamicRHI::RHIFinalizeContext::\_\_l2::\<lambda\_1\>::operator()(FD3D12CommandContext \*, FD3D12FinalizedCommands &) D3D12Submission.cpp:225

FD3D12DynamicRHI::RHIFinalizeContext(FDynamicRHI::FRHIFinalizeContextArgs &&, TRHIPipelineArray\<…\> &) D3D12Submission.cpp:253

`FRHICommandListExecutor::FTranslateState::Finalize’::`2’::\<lambda\_1\>::operator()() RHICommandList.cpp:1148

[Inlined] UE::Core::Private::Function::TFunctionRefBase::operator()() Function.h:471

FRHICommandListExecutor::FTaskPipe::Execute(FRHICommandListExecutor::FTaskPipe::FTask \*, const TRefCountPtr\<…\> &) RHICommandList.cpp:722

[Inlined] UE::Core::Private::Function::TFunctionRefBase::operator()(Type, const TRefCountPtr\<…\> &) Function.h:471

[Inlined] TFunctionGraphTaskImpl::DoTaskImpl(TUniqueFunction\<…\> &, Type, const TRefCountPtr\<…\> &) TaskGraphInterfaces.h:1123

[Inlined] TFunctionGraphTaskImpl::DoTask(Type, const TRefCountPtr\<…\> &) TaskGraphInterfaces.h:1104

TGraphTask::ExecuteTask() TaskGraphInterfaces.h:706

UE::Tasks::Private::FTaskBase::TryExecuteTask() TaskPrivate.h:527

[Inlined] FBaseGraphTask::Execute(TArray\<…\> &, Type, bool) TaskGraphInterfaces.h:505

FNamedTaskThread::ProcessTasksNamedThread(int, bool) TaskGraph.cpp:779

FNamedTaskThread::ProcessTasksUntilQuit(int) TaskGraph.cpp:667

FRHIThread::Run() RenderingThread.cpp:270

FRunnableThreadWin::Run() WindowsRunnableThread.cpp:156

FRunnableThreadWin::GuardedRun() WindowsRunnableThread.cpp:71

---

<div class="post-metadata">

**Author:** ![EnduringStephenK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/enduringstephenk/32/1216749_2.png) [@EnduringStephenK](https://forums.unrealengine.com/u/EnduringStephenK)\
**Post date:** [May 19, 2025, 6:42pm UTC](https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334/4 "2025-05-19T18:42:06Z")

</div>

Hello,

Thank you for reaching out.

I’ve been assigned this issue, and we will be looking into this crash for you.

Can you please send us a minimal test project that demonstrates the crash?

The guide for test projects: [Content removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 20, 2025, 3:45pm UTC](https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334/5 "2025-05-20T15:45:16Z")

</div>

Hi, Stephen!

Thanks for the response! Reproducing the crash is very simple: Create a Bink Media Player asset and open it. After saving and compiling the asset, the editor should crash with a stack like the one above.

I’ve included a fix in this ticket (see changes to FBinkMediaTextureResource), but let me know if there is a different way you’d prefer this to be patched.

Thanks!

D’

---

<div class="post-metadata">

**Author:** ![EnduringStephenK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/enduringstephenk/32/1216749_2.png) [@EnduringStephenK](https://forums.unrealengine.com/u/EnduringStephenK)\
**Post date:** [May 23, 2025, 7:27pm UTC](https://forums.unrealengine.com/t/fix-binkmediatextureresource-command-list-crash-on-ue-5-6/2570334/6 "2025-05-23T19:27:09Z")

</div>

Hello,

Thank you for the extra information and for reporting this.

I can confirm this issue can be reproduced as described in the latest CL, and have opened a bug report:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE%5C-289895)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

The tracker will be visible after it is approved internally at Epic Games and is publicly accessible.

If you have any further questions, please let us know.
