# Freeze/Crash when hitting breakpoint

**URL:** <https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [August 16, 2022, 5:42pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682 "2022-08-16T17:42:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jbl86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jbl86](https://forums.unrealengine.com/u/Jbl86)\
**Post date:** [August 16, 2022, 5:42pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/1 "2022-08-16T17:42:12Z")

</div>

Hello,

I recently switched to UE5 and I find that I experience freezes whenever I hit a breakpoint, which as you can imagine makes debugging very tedious.  
I really don’t know what happens and I’m positive I did not have that in UE4. The engine gets completely stuck and the only way out is to kill it via Ctrl+Alt+Del, where it is listed as not responding.  
Most often the freeze is instant, sometimes I get to click a few times on “next” before it happens. I had it on simple nodes like Branch or Casts.  
I looked at the log and the last entries are basically a bunch of “Can’t call UnrealScript […] while stopped at breakpoint.” which as far as I know should not cause issues. Most of them are UMG related.

Anyway, is this a known issue?

---

<div class="post-metadata">

**Author:** ![ShawnHiddenLeaf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShawnHiddenLeaf](https://forums.unrealengine.com/u/ShawnHiddenLeaf)\
**Post date:** [April 7, 2023, 11:59pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/2 "2023-04-07T23:59:15Z")

</div>

I recently upgraded my project to 5.1.2 and see the same thing. Once it stops at a blueprint it freezes trying to pull up some search widget constantly. It makes debugging not work well. Hopefully someone from Epic has a fix for this.

---

<div class="post-metadata">

**Author:** ![xXSoccerMom420Xx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xXSoccerMom420Xx](https://forums.unrealengine.com/u/xXSoccerMom420Xx)\
**Post date:** [June 17, 2023, 2:48am UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/3 "2023-06-17T02:48:02Z")

</div>

I’m having this same issue in 5.2. I tried using pulling the same project from the market in 4.27 and have no issues, the breakpoints don’t cause any freezing but it seems to hang when pulling up variable info for sometimes up to 30 minutes. Since I cannot downgrade my main project to 4.27 the only other option is to start over, which I really do not want to do.

---

<div class="post-metadata">

**Author:** ![UUCyberSteve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UUCyberSteve](https://forums.unrealengine.com/u/UUCyberSteve)\
**Post date:** [July 5, 2023, 3:01pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/4 "2023-07-05T15:01:59Z")

</div>

Try editing your UE5 Installation Options (via the Epic Games Launcher) and check that “Editor symbols for debugging” is enabled. Breakpoints should work as expected after it is installed.

---

<div class="post-metadata">

**Author:** ![192445](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/192445/32/739979_2.png) [@192445](https://forums.unrealengine.com/u/192445)\
**Post date:** [July 9, 2023, 1:06pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/5 "2023-07-09T13:06:12Z")

</div>

same bug with this

> [@Severe UE5 Memory leak BP visual debugging](https://forums.unrealengine.com/t/severe-ue5-memory-leak-bp-visual-debugging/590362):
>
> Having huge issue with UE5 where it has a memory leak (tested on multiple PCs 32GB ram). After 5.0.0 where there was an addition to this new visual debug mode where you can preview variable data it just memory leaks until your project freezes. Not sure how this got past QA but its impossible to debug in runtime via BP. \> [Inline Frame] UnrealEditor-Core.dll!FGenericPlatformMemory::OnOutOfMemory::\_\_l2::void \<lambda\>(void)::\_\_l27::\<lambda\_96d8046d44123cb81654a8bdfef218a3\>::()::\_\_l9::\<lambda\_3715…

---

<div class="post-metadata">

**Author:** ![marister](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marister](https://forums.unrealengine.com/u/marister)\
**Post date:** [August 5, 2023, 1:06pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/6 "2023-08-05T13:06:39Z")

</div>

[https://github.com/EpicGames/UnrealEngine/commit/3d6246d201ffa0e7ce7480ac9deb8b0a55b59858](https://github.com/EpicGames/UnrealEngine/commit/3d6246d201ffa0e7ce7480ac9deb8b0a55b59858)  
I dont understand what this means. Do you mean that we have to pull the engine from source and cherry pick a specific commit to our build just to get around this problem? Would this even work? What happens when the engine updates the version or adds fixes or something?

_Try editing your UE5 Installation Options (via the Epic Games Launcher) and check that “Editor symbols for debugging” is enabled. Breakpoints should work as expected after it is installed._  
This also does not fix this

There are other posts online that says you should downgrade to let the engine use DirectX11 and not DirectX12. This also does not fix this.  
Link to other post:

> [@\[FEATURE REQUEST\] or \[Bug\] Blueprint Debugger could make editor freeze or crash](https://forums.unrealengine.com/t/feature-request-or-bug-blueprint-debugger-could-make-editor-freeze-or-crash/622922/2):
>
> I have the same issue, starting after upgrading a project from 5.0 over 5.1 to 5.2. Logically, the project is working fine, but as soon as I start visually debugging a character reference in a Blueprint Editor and hovering over the node that this reference is returned from, the engine freezes endlessly, until I close it from the Windows Task Manager. During the freeze the engine uses 1-3% CPU and ~16 GB memory, but my system is never going above ~32 / 96 GB total memory.

Does anyone in the world has any information on this?

---

<div class="post-metadata">

**Author:** ![pickersZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pickersZ](https://forums.unrealengine.com/u/pickersZ)\
**Post date:** [August 6, 2023, 1:02am UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/7 "2023-08-06T01:02:50Z")

</div>

If the computer freezes or reboot for no good reason when/after using unreal, try using MSI afterburner to finetune your graphics card performance. Definitely seems like a bug with the engine.

Typical coding errors should only result in giving unreal error messages.

---

<div class="post-metadata">

**Author:** ![192445](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/192445/32/739979_2.png) [@192445](https://forums.unrealengine.com/u/192445)\
**Post date:** [August 6, 2023, 1:32am UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/8 "2023-08-06T01:32:13Z")

</div>

This works  
[https://github.com/EpicGames/UnrealEngine/commit/3d6246d201ffa0e7ce7480ac9deb8b0a55b59858](https://github.com/EpicGames/UnrealEngine/commit/3d6246d201ffa0e7ce7480ac9deb8b0a55b59858)

---

<div class="post-metadata">

**Author:** ![yizhendongfeng](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yizhendongfeng/32/476063_2.png) [@yizhendongfeng](https://forums.unrealengine.com/u/yizhendongfeng)\
**Post date:** [August 6, 2023, 2:49pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/9 "2023-08-06T14:49:49Z")

</div>

5.2.1，same problem, really annoying 😅

---

<div class="post-metadata">

**Author:** ![yizhendongfeng](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yizhendongfeng/32/476063_2.png) [@yizhendongfeng](https://forums.unrealengine.com/u/yizhendongfeng)\
**Post date:** [August 7, 2023, 2:18pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/11 "2023-08-07T14:18:54Z")

</div>

5.3 fixes this bug!

---

<div class="post-metadata">

**Author:** ![marister](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marister](https://forums.unrealengine.com/u/marister)\
**Post date:** [August 7, 2023, 5:28pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/12 "2023-08-07T17:28:38Z")

</div>

that sounds amazing I will test it.  
Any idea when 5.3 is meant to be released?

---

<div class="post-metadata">

**Author:** ![192445](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/192445/32/739979_2.png) [@192445](https://forums.unrealengine.com/u/192445)\
**Post date:** [September 8, 2023, 2:05am UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/13 "2023-09-08T02:05:17Z")

</div>

Yesterday

---

<div class="post-metadata">

**Author:** ![Kevin\_Gittens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kevin\_Gittens](https://forums.unrealengine.com/u/Kevin_Gittens)\
**Post date:** [January 11, 2024, 4:56am UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/14 "2024-01-11T04:56:04Z")

</div>

Upgrading to 5.3 may not be an option for some people.

I have found a workaround in 5.2 that in some limited use seems to reduce the frequency of the editor freezing, but doesn’t totally eliminate the problem in my experience.

- Spread your blueprint nodes out from each other.

The workaround seems silly, but the more nodes next to each other around where the triggered breakpoint is at(ie too much spaghetti nodes) seems to increase the chances that the editor will freeze up.

---

<div class="post-metadata">

**Author:** ![192445](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/192445/32/739979_2.png) [@192445](https://forums.unrealengine.com/u/192445)\
**Post date:** [January 21, 2024, 3:15pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/15 "2024-01-21T15:15:25Z")

</div>

You can reference this commit and modify your engine code.

---

<div class="post-metadata">

**Author:** ![nteymory](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nteymory](https://forums.unrealengine.com/u/nteymory)\
**Post date:** [February 18, 2024, 10:26pm UTC](https://forums.unrealengine.com/t/freeze-crash-when-hitting-breakpoint/629682/16 "2024-02-18T22:26:03Z")

</div>

Still seeing this problem in 5.3. Appears to be some kind of deadlock?

The game thread attempts to FlushRenderingCommands and the render thread is stuck in WaitForRHIThreadTasks

If anyone from Epic is interested, I can try to provide further debug information.
