# PixelStreaming Memory Leak in 5.7+

**URL:** <https://forums.unrealengine.com/t/pixelstreaming-memory-leak-in-5-7/2712465>\
**Category:** Cinematics & Media\
**Tags:** memory-leak, unreal-engine, bug-report, Rendering, pixelstreaming, CPP\
**Created:** [April 8, 2026, 11:34am UTC](https://forums.unrealengine.com/t/pixelstreaming-memory-leak-in-5-7/2712465 "2026-04-08T11:34:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Embr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Embr](https://forums.unrealengine.com/u/Embr)\
**Post date:** [April 8, 2026, 11:34am UTC](https://forums.unrealengine.com/t/pixelstreaming-memory-leak-in-5-7/2712465/1 "2026-04-08T11:34:52Z")

</div>

When running PixelStreaming2 plugin and using h264 as the encoder, the application begins to leak and eventually crashes. This has been reported several times for past versions, but we didn’t experience this on 5.6, we started experiencing it after upgrading to 5.7 and I’ve tested the very latest on github ue5-main and it still has this issue, so I believe there’s been a regression of some kind. We have switched encoders but want to get back to h264 because it’s hardware encoded rather than software, and not all devices support AV1 still. Is anyone else dealing with this?

---

<div class="post-metadata">

**Author:** ![user\_e1e82e24d87d2a97544f9d9e9e9e340e2626be24aabba48baa57eb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_e1e82e24d87d2a97544f9d9e9e9e340e2626be24aabba48baa57eb](https://forums.unrealengine.com/u/user_e1e82e24d87d2a97544f9d9e9e9e340e2626be24aabba48baa57eb)\
**Post date:** [April 10, 2026, 4:38am UTC](https://forums.unrealengine.com/t/pixelstreaming-memory-leak-in-5-7/2712465/2 "2026-04-10T04:38:23Z")

</div>

You should seperate PixelStreaming S.S and APP .

---

<div class="post-metadata">

**Author:** ![Lym\_iii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lym_iii/32/1171385_2.png) [@Lym\_iii](https://forums.unrealengine.com/u/Lym_iii)\
**Post date:** [April 27, 2026, 7:47am UTC](https://forums.unrealengine.com/t/pixelstreaming-memory-leak-in-5-7/2712465/3 "2026-04-27T07:47:28Z")

</div>

I use 5.6 and PixelStreaming2 plugin. After running a UE project for an extended period, I encountered the following error: `LogPixelCapture: Error: Failed to obtain a produce buffer.` Have you ever encountered this issue before? How do you fix it?

---

<div class="post-metadata">

**Author:** ![MWillWallT1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MWillWallT1](https://forums.unrealengine.com/u/MWillWallT1)\
**Post date:** [May 26, 2026, 7:15am UTC](https://forums.unrealengine.com/t/pixelstreaming-memory-leak-in-5-7/2712465/4 "2026-05-26T07:15:17Z")

</div>

Hi there!

This memory leak is unfortunately a result of the recent Nvidia drivers.  
However, there is a workaround that will prevent the issue in the meantime.  
You can:  
Use `AVCodecs.NvEnc.D3D12UsesCUDA=true`as a launch arg for your project.  
or  
Add D3D12UsesCUDA=1 to the `AVCodecs.NvEnc` section of your `DefaultGame.ini`

There should be a fix for this in the near future, but this should help prevent any issues in the mean time.
