Infinite life particle(with no update modules,just some random particle)
and placed it under a static mesh like
No physic enable,just static,all default setting,random crash when PIE like:
Assertion failed: SystemInstance->IsSolo()
I tried enable force solo,but not helping.
Also I tried set solo = true in niagara’s instance every tick by C++,still not working,still got random crash when PIE
It would be appreciated if you could help or provide some information about this bug.
Heya, so I just came across this issue in the full release of UE5.
I have a Niagara system added as a component to a actor, what I did was disable auto activation and instead manually activate it on begin play and I no longer encounter this issue.
Not sure what the gritty details are as to why, I feel like it’s defo trying to perform a check before the instance is ready and this happens during activation.
Hopefully as a workaround this helps unless you found something within the system itself to be the cause.
Still happening in 4.27. We have a ton of Niagara components like this so its gonna be a bit of a pain to fix but just wanted to give people a heads up.
I had just added a new blood Niagara effect too from the “Blood Splatter Blueprint System”, but it seems like the blueprints already have Auto-Active OFF, and the creator is using “Event Begin Play”. I’ve added a lot of new stuff recently so I’m scouring all Niagara effects I use. Will try to post an update if I find one that was set to auto-activate.
Wow, so this issue / potential solution seems to fit my case exactly.
Right after I typed my previous post, I found an actor that players can spawn which has a Niagara particle effect set to Auto-Activate from the “Portals_VFXPack”. I’ve added it very recently, so the timeline fits. I even have a screenshot from a player attempting to spawn that actor while crashing right at that moment! The particle effect that was set to Auto-Activate is the small purple circle that just got created:
It will take some time to test in my case, but this seems very promising! @Sononeo Thank you so much for posting your potential fix!
Interesting enough this was occurring in my packaged game and I’ve narrowed it down to a blood trail system that spawns decals on the ground. When I removed that I haven’t seen the issue anymore. This blood trail system only activated when the weapon hits an enemy.
Can someone help me with a similar issue?
I’ve tried disabling auto activate and it still keeps crashing randomly.
I have a muzzle flash, projectile and impact fx (all Niagara). I can’t isolate which one is causing the crash. I tried allowing only one Niagara system at a time but it won’t crash with just one system enabled. This is really getting on my nerve since I don’t know why its doing this.
Have you tried checking the box to Force Solo and seeing if that works?
There’s something that the engine automatically does, I think akin to batching for particle systems but forcing it to be solo would ensure that the sim will be created anew.
I’ve found there are cases, such as object pooled instances in my particular issue where particle systems need to be forced solo. I think due to the way an object is loaded/instantiated with a niagara system component attached may have issues if auto-activate is enabled.
I checked the Force Solo box and that seems to have fixed the issue. I’ve been working on it since you posted and hasn’t crashed for that reason since checking that box.
Thank you!
Had something similar here, the cause was the NiagaraComponent was set to replicate and IsSolo was off.
When the server activates the component, the ActorComponent bIsActive is replicated to the client. On the client, OnRep_IsActive() in the ActorComponent enables ticking. Then the NiagaraComponent Tick function hits that check because it’s not supposed to tick if IsSolo is off. Niagara wants to control the ticking via IsSolo but the actor component it’s based on bypasses that and enables ticking, but only when the active flag is replicated, so only the client crashes.
In this case the effect was being triggered on the server and client anyway so had no need to replicate, just unticked the replicates box on the component.