# ThreadHeartbeat: fix ignored GameThreadHeartBeatStackWalk ini option 

**URL:** <https://forums.unrealengine.com/t/threadheartbeat-fix-ignored-gamethreadheartbeatstackwalk-ini-option/2699233>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [January 6, 2026, 4:16pm UTC](https://forums.unrealengine.com/t/threadheartbeat-fix-ignored-gamethreadheartbeatstackwalk-ini-option/2699233 "2026-01-06T16:16:44Z")\
**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:** [January 6, 2026, 4:16pm UTC](https://forums.unrealengine.com/t/threadheartbeat-fix-ignored-gamethreadheartbeatstackwalk-ini-option/2699233/1 "2026-01-06T16:16:44Z")

</div>

Hi, I wanted to call out a small PR I made with a fix for ThreadHeartBeat.cpp: [https://github.com/EpicGames/UnrealEngine/pull/14223](https://github.com/EpicGames/UnrealEngine/pull/14223)

CL 35262649 ([https://github.com/EpicGames/UnrealEngine/commit/8f1dde916b765f6d17ff5c8f9a63943a7e1bdfed](https://github.com/EpicGames/UnrealEngine/commit/8f1dde916b765f6d17ff5c8f9a63943a7e1bdfed)) updated the ini loading code to only run once, but accidentally caused it to short circuit if `GameThreadHeartBeatHitchDuration` is set in the .ini, leading it to leave `Config_StackWalk` defaulted to false, even if it is also set in the .ini. These changes preserve the run-once behavior and ensure the stackwalk setting is properly loaded.

We’ve made the fix locally but it would be great to get this upstreamed so we don’t have to maintain it. Thanks!

Reuben

[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:** [January 6, 2026, 4:16pm UTC](https://forums.unrealengine.com/t/threadheartbeat-fix-ignored-gamethreadheartbeatstackwalk-ini-option/2699233/2 "2026-01-06T16:16:48Z")

</div>

**Steps to Reproduce**  
Enable hitch detection in MyProject.Target.cs:

```auto
      GlobalDefinitions.Add("ALLOW_HITCH_DETECTION=1");
      GlobalDefinitions.Add("WALK_STACK_ON_HITCH_DETECTED=1");

```

In DefaultEngine.ini, add the following items:

```auto
[Core.System]
GameThreadHeartBeatHitchDuration=0.06666
GameThreadHeartBeatStackWalk=true

```

1. Put a breakpoint in FGameThreadHitchHeartBeatThreaded::InitSettings() where it initializes bReadFromConfig
2. Launch the game with a debugger
3. Observe when debugging that Config\_StackWalk remains defaulted to false
4. Enter “CauseHitches 1” in the console
5. Observe the log when a hitch is detected, no stack is printed  
[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![joshbadams](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joshbadams](https://forums.unrealengine.com/u/joshbadams)\
**Post date:** [January 6, 2026, 10:46pm UTC](https://forums.unrealengine.com/t/threadheartbeat-fix-ignored-gamethreadheartbeatstackwalk-ini-option/2699233/3 "2026-01-06T22:46:21Z")

</div>

Yep, that’s embarrassing! I will make this change right now.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![joshbadams](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joshbadams](https://forums.unrealengine.com/u/joshbadams)\
**Post date:** [January 13, 2026, 3:24pm UTC](https://forums.unrealengine.com/t/threadheartbeat-fix-ignored-gamethreadheartbeatstackwalk-ini-option/2699233/4 "2026-01-13T15:24:57Z")

</div>

Submitted to p4, changelist 49765589

[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:** [January 7, 2026, 5:50pm UTC](https://forums.unrealengine.com/t/threadheartbeat-fix-ignored-gamethreadheartbeatstackwalk-ini-option/2699233/5 "2026-01-07T17:50:33Z")

</div>

No problem, thank you!

[Attachment Removed]
