# FXSystem memory leak 

**URL:** <https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [January 30, 2026, 10:22am UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557 "2026-01-30T10:22:18Z")\
**Posts on this page:** 9\
**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:** [January 30, 2026, 10:22am UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/1 "2026-01-30T10:22:18Z")

</div>

Hello,

in UE5.7 we noticed a memory leak in GlobalDistanceField, which causes out of memory crashes in some of our games, on consoles.

It can be easily reproduced in the Lyra project, in editor; in Samples/Games/Lyra/Config/DefaultEngine.ini set r.RayTracing=False, so that GlobalDistanceField.PageObjectGridBuffer gets allocated. Then start and stop the Lyra PIE game more times, moving a little bit around. Each time, a new GlobalDistanceField.PageObjectGridBuffer is allocated, with the same size and parameters (we saw this with r.DumpBufferPoolMemory).

The reason seems to be that the refcount hold by FXSystems is not decremented after FFXSystemSet::OnMarkPendingKill() is called, since FXSystems are not destroyed.

Which is the correct place where calling FXSystem / FXSystemSet destructors?

Thanks, best regards,

Marco

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![km.stu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@km.stu](https://forums.unrealengine.com/u/km.stu)\
**Post date:** [February 6, 2026, 1:04am UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/2 "2026-02-06T01:04:56Z")

</div>

Hi,

Could you integrate CL 50207022 to see if that fixes it?

Thanks,

Stu

[Attachment 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:** [February 6, 2026, 8:31am UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/3 "2026-02-06T08:31:51Z")

</div>

Hi, yes, this CL, removing the refcount on the buffers, solves the main leak, and for us this is enough (we had out of memory crashes). It seems that the FXSystem / FXSystemSet classes are not destroyed yet, this leaves a minor leak.

Thanks, Marco

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![km.stu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@km.stu](https://forums.unrealengine.com/u/km.stu)\
**Post date:** [February 9, 2026, 8:07pm UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/4 "2026-02-09T20:07:10Z")

</div>

You shouldn’t see any leaks (that’s the case for us at least), so it implies something is still holding the reference.

It might be worthwhile adding some logging in to track that down, perhaps there’s a component which still has an instance which is registered?

Thanks,

Stu

[Attachment 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:** [February 10, 2026, 8:28am UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/5 "2026-02-10T08:28:55Z")

</div>

Thanks Stuart, we will check.

Best regards, Marco

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![km.stu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@km.stu](https://forums.unrealengine.com/u/km.stu)\
**Post date:** [February 21, 2026, 12:27am UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/6 "2026-02-21T00:27:58Z")

</div>

Which regards to what you said Daniel, is the buffer called GPUBufferFloat? If so that comes from a data set, and they come from a system instance, regarless of the second part it may mean you have a leaking system instance / component somewhere. Now as for the second part I just ran some tests and I think I see it leaking also, so I’ve made some local changes to fix that but I need to run some pretty extensive tests to confirm it won’t introduce another issue.

I’ll hopefully have some conclusion early next week.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![km.stu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@km.stu](https://forums.unrealengine.com/u/km.stu)\
**Post date:** [February 26, 2026, 4:50pm UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/7 "2026-02-26T16:50:55Z")

</div>

Sounds like you have done something similar to what I have in CL 51168522.

I didn’t push this into the FSceneInterface, that’s something I may follow up on in the future.

Thanks,

Stu

[Attachment 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:** [February 19, 2026, 2:03pm UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/8 "2026-02-19T14:03:21Z")

</div>

Hi, we are also running into significant leaks due to FXSystems not being destroyed - not related to the global distance field, but GPUBufferFloats which have leftover reference counts to SRVs from FNiagaraGpuComputeDispatch.

I’m finding that world’s FXSystemSet returned by FFXSystemInterface::Create is never destroyed and is holding on to shared refs to the FXSystem and FNiagaraGpuComputeDispatch.

I’m struggling to find how the FXSystemSet is intended to be destroyed, since it doesn’t seem to ever be made into a shared pointer nor is it being explicitly deleted.

Am I missing something, or maybe FFXSystemInterface::Create should return a TSharedRef, and be stored as TSharedPtr on the world or FScene?

[Attachment 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:** [February 23, 2026, 12:52pm UTC](https://forums.unrealengine.com/t/fxsystem-memory-leak/2709557/9 "2026-02-23T12:52:32Z")

</div>

Yes, the buffer comes from a system instance whose lifetime is the same as the world, and the buffer is being leaked when the world is unloaded. I believe I tracked down that the only reference keeping it alive was an SRV referenced by FNiagaraGpuComputeDispatch::SimulationsToSort (FNiagaraGPUSortInfo::AllocationInfo.BufferSRV), and fixing the FXSystemSet leak by making the UWorld reference a TSharedPtr has fixed it.

[Attachment Removed]
