# \[PCG\] Spawn actor fails in game mode

**URL:** <https://forums.unrealengine.com/t/pcg-spawn-actor-fails-in-game-mode/2402956>\
**Category:** World Creation\
**Tags:** unreal-engine, bug-report\
**Created:** [March 20, 2025, 1:40pm UTC](https://forums.unrealengine.com/t/pcg-spawn-actor-fails-in-game-mode/2402956 "2025-03-20T13:40:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sid3way](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sid3way](https://forums.unrealengine.com/u/Sid3way)\
**Post date:** [March 20, 2025, 1:40pm UTC](https://forums.unrealengine.com/t/pcg-spawn-actor-fails-in-game-mode/2402956/1 "2025-03-20T13:40:08Z")

</div>

Hello,

I have discovered something and I’m unsure if it’s a bug in the engine or just me using this feature the wrong way.  
I narrowed it down to the Spawn Actor node in PCG Graph while starting the editor in game mode.  
I am using UE 5.5.3

**What I am trying to do**  
I am trying to start the editor in the command line in game mode (with the `-game` flag). It crashes with the following error:  
`[2025.03.20-13.15.34:195][0]LogWindows: Error: appError called: Assertion failed: GEditor [File:D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Subsystems\ActorEditorContextSubsystem.cpp] [Line: 15]`

**Repro steps**  
Open a new blank project.  
Create a PCG Instance with a grid and spawn actor (point light for example)

 ![Screenshot 2025-03-20 143228](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/0/dd04d1cba4b5ad2253138467653bca498b4c551e.png)  
Drop the graph in the level (so far it should work and display the lights)  
Cleanup the graph, save and close the editor.  
 ![Screenshot 2025-03-20 143303](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/4/89499d863337fc7ccef0bcae627bb70100cdc7bd.png)

Start the editor through command line with the -game flag (for example: `C:\Program Files\Epic Games\UE_5.5\Engine\Binaries\Win64> .\UnrealEditor-Cmd.exe "C:\Users\Damie\Documents\Unreal Projects\PCGActorSpawn\PCGActorSpawn.uproject" -game`

**Link to project**  
To facilitate bug reproduction, here is the link to the project:

> **[PCGActorSpawn.zip](https://drive.google.com/file/d/1qBtcnebpB9iVNGXlPP6L0Gy9qphdCeiV/view?usp=sharing)**
>
> Google Drive file.

It seems that it’s really the spawn action that is an issue because if you don’t cleanup the graph, it start like intended.

Any help or feedback is highly welcomed because this is a blocking issue for me.

---

<div class="post-metadata">

**Author:** ![Sid3way](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sid3way](https://forums.unrealengine.com/u/Sid3way)\
**Post date:** [April 1, 2025, 8:30am UTC](https://forums.unrealengine.com/t/pcg-spawn-actor-fails-in-game-mode/2402956/2 "2025-04-01T08:30:33Z")

</div>

I’m still stuck with this, anyone has any insight ?  
I’ll take even breadcrumbs of information at this point 🥹

---

<div class="post-metadata">

**Author:** ![Sid3way](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sid3way](https://forums.unrealengine.com/u/Sid3way)\
**Post date:** [April 11, 2025, 1:29pm UTC](https://forums.unrealengine.com/t/pcg-spawn-actor-fails-in-game-mode/2402956/3 "2025-04-11T13:29:09Z")

</div>

If anyone comes across this, it has been fixed in 5.5.4  
[5.5.4 Hotfix Released - General / Announcements - Epic Developer Community Forums](https://forums.unrealengine.com/t/5-5-4-hotfix-released/2385193)
