# Calling hud\_message\_device.Show() too fast causes memory leak

**URL:** <https://forums.unrealengine.com/t/calling-hud-message-device-show-too-fast-causes-memory-leak/2606324>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, closed, fortnite\
**Created:** [July 16, 2025, 5:11am UTC](https://forums.unrealengine.com/t/calling-hud-message-device-show-too-fast-causes-memory-leak/2606324 "2025-07-16T05:11:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macilvoy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/macilvoy/32/942969_2.png) [@Macilvoy](https://forums.unrealengine.com/u/Macilvoy)\
**Post date:** [July 16, 2025, 5:11am UTC](https://forums.unrealengine.com/t/calling-hud-message-device-show-too-fast-causes-memory-leak/2606324/1 "2025-07-16T05:11:49Z")

</div>

### Summary

Using Hud Message Device’s Show() function inside loop with Sleep argument lower then 0.1 causes memory leak.  
I guess there is some hidden Minimum Show Duration value, which makes widgets stay longer than they should.

Here’s an example of the loop:

```auto
    ActivateTest(a:agent):void=
        for(i:=0..99):
            spawn{Test3(a)}

    TestThread(a:agent)<suspends>:void=
        loop:
            if(not BreakLoop?):
                HudMessageDevice.Show(a)
                Sleep(0.0)

```

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Devices

### Steps to Reproduce

1. Write a simple endless loop that will use hud\_message\_device.Show() with Sleep(0.0)
2. Subscribe this code to some Event that will activate it (for example, to Button’s .InteractedWithEvent )

- I also recommend adding Tick Rate Graph Device snippet to get visual representation of what is going on.

1. Launch with session with all devices ready and activate loop
2. Wait for 5-10 minutes

### Expected Result

Map doesn’t lag and performance stays normal, no matter how long session has lasted

### Observed Result

Performance will slowly go down and map will become laggy

### Platform(s)

PC

### Additional Notes

Changing Sleep to 0.1, even with an increased number of loops wont cause gradual performance degradation.  
I strongly recommend using Tick Rate Graph Device snippet, so it will be easier to see how map performance goes down.  
[https://dev.epicgames.com/community/snippets/D98/fortnite-tick-rate-graph-device](https://dev.epicgames.com/community/snippets/D98/fortnite-tick-rate-graph-device)

---

<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:** [January 12, 2026, 5:12am UTC](https://forums.unrealengine.com/t/calling-hud-message-device-show-too-fast-causes-memory-leak/2606324/4 "2026-01-12T05:12:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [July 27, 2026, 2:02pm UTC](https://forums.unrealengine.com/t/calling-hud-message-device-show-too-fast-causes-memory-leak/2606324/9 "2026-07-27T14:02:01Z")

</div>

FORT-936457 has been ‘Closed’. We’re unable to reproduce this issue.
