# Assertion Failed NiagaraComponent.cpp in packaged game

**URL:** <https://forums.unrealengine.com/t/assertion-failed-niagaracomponent-cpp-in-packaged-game/619817>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 2, 2022, 1:38pm UTC](https://forums.unrealengine.com/t/assertion-failed-niagaracomponent-cpp-in-packaged-game/619817 "2022-08-02T13:38:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HorseFeathers55](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HorseFeathers55](https://forums.unrealengine.com/u/HorseFeathers55)\
**Post date:** [August 2, 2022, 1:38pm UTC](https://forums.unrealengine.com/t/assertion-failed-niagaracomponent-cpp-in-packaged-game/619817/1 "2022-08-02T13:38:27Z")

</div>

![image0 (6)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/9/a39091716149e56896851afd684a1a38a7f535ae.jpeg)  
So I have a listen server replicated game I am currently working on and this glitch occasionally pops up with players when playtesting. The error is pointing to that actual source code for NiagaraComponents so I am not sure if the issue is with what I made or an Unreal Engine 5 glitch. To give some background I have my game spawning blood effects on hit. The game also features artery bleeds which are niagara components, as well as sword trails that are niagara components on the weapons. In a future build I’m going to disable all components and leave the spawned blood effects at hit location to see if the error goes away with it. But I would love to hear any suggestions for this error and how to potentially fix it. Thanks for reading and I hope to hear from you.

---

<div class="post-metadata">

**Author:** ![HorseFeathers55](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HorseFeathers55](https://forums.unrealengine.com/u/HorseFeathers55)\
**Post date:** [August 2, 2022, 3:39pm UTC](https://forums.unrealengine.com/t/assertion-failed-niagaracomponent-cpp-in-packaged-game/619817/2 "2022-08-02T15:39:07Z")

</div>

Is it possible this has something to do with destroying actors and garbage collection? Maybe I need to deactivate all niagara components before destroying the parent actor?
