# Dangling pointer on FD3D12SyncPoint::DebugName when flushing landscape layers 

**URL:** <https://forums.unrealengine.com/t/dangling-pointer-on-fd3d12syncpoint-debugname-when-flushing-landscape-layers/2715449>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [February 19, 2026, 8:29pm UTC](https://forums.unrealengine.com/t/dangling-pointer-on-fd3d12syncpoint-debugname-when-flushing-landscape-layers/2715449 "2026-02-19T20:29:18Z")\
**Posts on this page:** 5\
**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:** [February 19, 2026, 8:29pm UTC](https://forums.unrealengine.com/t/dangling-pointer-on-fd3d12syncpoint-debugname-when-flushing-landscape-layers/2715449/1 "2026-02-19T20:29:18Z")

</div>

Our project has reproduced this lifetime bug with custom tooling that calls `ALandscape::ForceLayersFullUpdate()`. This results in a call to `FLandscapeEditLayerReadback::FlushAllReadbackTasks()` and intermittent crash on the rendering thread with the attached callstack. Using `-stompmalloc` makes reproduction consistent. Our studio has made this change to mitigate the issue: [https://github.com/EpicGames/UnrealEngine/pull/14443\](https://github.com/EpicGames/UnrealEngine/pull/14443%5C).

[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, 8:29pm UTC](https://forums.unrealengine.com/t/dangling-pointer-on-fd3d12syncpoint-debugname-when-flushing-landscape-layers/2715449/2 "2026-02-19T20:29:23Z")

</div>

**Steps to Reproduce**  
Our project has reproduced this lifetime bug with custom tooling that calls `ALandscape::ForceLayersFullUpdate()`. This results in a call to `FLandscapeEditLayerReadback::FlushAllReadbackTasks()` and intermittent crash on the rendering thread with the attached callstack. Using `-stompmalloc` makes reproduction consistent. Our studio has made this change to mitigate the issue: [https://github.com/EpicGames/UnrealEngine/pull/14443\](https://github.com/EpicGames/UnrealEngine/pull/14443%5C).

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![lukethatcher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lukethatcher/32/1043265_2.png) [@lukethatcher](https://forums.unrealengine.com/u/lukethatcher)\
**Post date:** [March 4, 2026, 11:12am UTC](https://forums.unrealengine.com/t/dangling-pointer-on-fd3d12syncpoint-debugname-when-flushing-landscape-layers/2715449/3 "2026-03-04T11:12:28Z")

</div>

Hi Jack,

Thanks for reporting this. Your fix will work, but I think there’s an opportunity to avoid the FString construction by making a larger change where we replace the debug name TCHAR\* on FD3D12SyncPoint with an FName instead. My colleague who worked on this recently is current out of office, but I’ve forwarded this to them to take a look when they’re back.

Cheers,

Luke

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![daniele\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daniele\_eg](https://forums.unrealengine.com/u/daniele_eg)\
**Post date:** [March 16, 2026, 8:18pm UTC](https://forums.unrealengine.com/t/dangling-pointer-on-fd3d12syncpoint-debugname-when-flushing-landscape-layers/2715449/4 "2026-03-16T20:18:20Z")

</div>

Hi Jack, In CL 51784715 in UE5 Main, I have the FD3D12SyncPoint using FName instead of raw pointer as Luke suggested.

That should cover your lifetime issue, please let me if you have more problem about this.

Thanks.,

Daniele

[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:** [March 5, 2026, 5:50pm UTC](https://forums.unrealengine.com/t/dangling-pointer-on-fd3d12syncpoint-debugname-when-flushing-landscape-layers/2715449/5 "2026-03-05T17:50:28Z")

</div>

Thanks Luke! Looking forward to having an upstream fix we can integrate.

[Attachment Removed]
