# \[Sample Project Included ~ Demo Recording\] UE4 Permanently Hangs when run Demoplay from a BP console command

**URL:** <https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252>\
**Category:** Blueprint\
**Tags:** unreal-engine, crash, bug-report, editor, Blueprint, question\
**Created:** [April 15, 2016, 5:34am UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252 "2016-04-15T05:34:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 15, 2016, 5:34am UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/1 "2016-04-15T05:34:48Z")

</div>

Dear Epic,

#Issue

The only BP code in this project is this 1 picture, and it still causes the hang, in a BP only project

Test is a valid replay file that loads fine if I use the console directly. But if I try to use this console command BP node, (I am not using PIE but uproject-\>Launch Game with editor closed), **then the game permanently hangs!**

![86966-permahang.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/1/db171e15481b48eb1ef9853c5eb6d235f3999e38.jpeg)

If you try to use Demoplay via a ConsoleCommand blueprint node, it hangs the game forever!

This is a critical bug because it means the only way to play a demo is by telling players to type into the console, which means a non-shipping build.

**This bug basically prevents using demo recording in a full game release.**

#Repro

Make sure to do these tests only when editor is closed, by right clicking on .uproject and Launch Game

- record a replay, making sure to use open ?listen first, and then in the console type “demorec test”
- when satisified, do console command “demostop”
- reload the game, either with open ?listen or close and re-launch the game
- in console command type “demoplay test”
- everything will be fine!
- reload the game, and press p, game will hang forever, and all I did was ExecuteConsoleCommand “demoplay test” via blueprint node in custom player controller class

#Sample Project

I am providing you with a sample project that you can run to see this hang!  
[www.lightningfitness.org/misc/video/DemoPlayHang.zip](http://www.lightningfitness.org/misc/video/DemoPlayHang.zip)

I included the save folder in my sample project, you can simply run the game via right click on .uproject and “Launch Game/” then press P, and game will hang forever.

I already recorded the replay for you, its called “test”

If you want to do it yourself, you can follow my steps above!

In the editor, you can check out my PC blueprint under BP folder, it contains only this, which causes the hang:

#Conclusion ~ Demo Replay system totally unusable in 4.11

The demo replay system is unviable in a final product because users have to enter into the console directly, again I **am testing this in a bp-only project with a maximm of 2 custom nodes, key event and execute console command.**

#❤

Rama

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 15, 2016, 5:46am UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/2 "2016-04-15T05:46:43Z")

</div>

#More Info

#hang 2  
I wrote a BP node to call the GameInstance function directly, running that inside my player controller on key press ALSO permanently hangs the game

```
UFUNCTION(BlueprintCallable, Category = "PO BP Library",meta=(WorldContext="WorldContextObject" ))
	static void PlayReplay(UObject* WorldContextObject, FString ReplayName)
	{
		UWorld* const World = GEngine->GetWorldFromContextObject(WorldContextObject);
		if(!World) return ;
		   
		World->GetGameInstance()->PlayReplay(ReplayName);
	}

```

# Hang 3

Running this BP node from level BP ALSO crashes the game

#question

Why is it that the only way I can load a replay in 4.11 in a BP only project is via actually opening the console and typing in demoplay test?

If I try to do it any other way, the game perma-hangs

#Thanks! ❤

Rama

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [April 15, 2016, 5:55pm UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/3 "2016-04-15T17:55:57Z")

</div>

Hey Rama,

Thank you for the test project and all of the extra info. I was able to reproduce the issue, so I created JIRA UE-29545 and our developers will be looking into it further.

There is also another JIRA logged (UE-23342) that could be the root cause of this. I decided to create your JIRA instead of piggybacking on it because the repro is different.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 17, 2016, 4:46am UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/4 "2016-04-17T04:46:29Z")

</div>

Thank you very much for the update TJ!

#❤

Rama

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5dfb87c5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5dfb87c5](https://forums.unrealengine.com/u/anonymous_user_5dfb87c5)\
**Post date:** [May 10, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/5 "2016-05-10T15:39:10Z")

</div>

Hi,

As we’re having the same issue here, I’d like to know if you’ve found some fix or workaround ?  
You’re mentioning Jira bugtracker, but I’m not able to find a link to it. Is it private ?

Thans,

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [May 10, 2016, 4:11pm UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/6 "2016-05-10T16:11:37Z")

</div>

Hi jbg,

Yes, the JIRA system is currently private (although we do have plans to make this publicly visible in the future). This is currently fixed internally and if all goes well, it is on track to be included in the 4.12 release version.

As for a workaround, I’m not aware of one in the current version of the engine. But if you know of one @Rama, please feel free to chime in.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5dfb87c5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5dfb87c5](https://forums.unrealengine.com/u/anonymous_user_5dfb87c5)\
**Post date:** [May 11, 2016, 12:31pm UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/7 "2016-05-11T12:31:04Z")

</div>

Thanks !

I’ll stay tuned. I don’t think we’ll be able to wait for 4.12, but as soon as the fix is available on perforce, I’ll try to back port it.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [May 11, 2016, 6:40pm UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/8 "2016-05-11T18:40:49Z")

</div>

If you have Perforce access, here is the CL for the fix in the 4.12 Releases Stream.

CL-295331

If you need anything else, just let me know.

---

<div class="post-metadata">

**Author:** ![DoubleP90](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doublep90/32/1221172_2.png) [@DoubleP90](https://forums.unrealengine.com/u/DoubleP90)\
**Post date:** [March 5, 2017, 5:48pm UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/9 "2017-03-05T17:48:09Z")

</div>

I’m having this issue aswell in version 4.15

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 9, 2017, 4:11pm UTC](https://forums.unrealengine.com/t/sample-project-included-demo-recording-ue4-permanently-hangs-when-run-demoplay-from-a-bp-console-command/354252/10 "2017-03-09T16:11:04Z")

</div>

Hi DoubleP90,

I attempted to reproduce the issue from both of the JIRAs that I mentioned above and they are fixed in 4.15. This is likely a different issue altogether. Please post a new report in the Bug section and include exact repro steps and/or a test project.

Cheers,

TJ
