x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Niagara crash on boot packged project

Hello everyone. I ran into some trouble trying to add a NiagaraSystem to my project. Basically everything appears to be working in editor but as soon as I package my build the app crashes on launch. Bear with me as I explain:

1) Try to spawn a NiagaraSystem when a bullet hits a wall. Runs in editor, packages build, crashes on packaged game launch. In this example I'm using a default explosion system just to simplify things -- alt text

The crash:

alt text

2) If I edit my code to the following, package my game, run the packaged game - success. No crash on boot. (no particle system either)

alt text

3) Throw the particle system in a level, (putting the system on loop so I can see it.) Compile, package, run packaged game - no crash in the packaged game, everything is fine. alt text

Here are my logs: link text

Product Version: UE 4.21
Tags:
more ▼

asked Mar 05 '19 at 01:51 AM in Everything Else

avatar image

Ethan_Sherr
31 1 2 4

avatar image Ethan_Sherr Mar 06 '19 at 03:30 AM

I think you just can't package a c++ game with niagara yet.

Here are some steps to reproduce:

1) Make a new C++ FirstPerson template project

2) Enable the Niagara & Niagara Extras plugin

3) Create a new NiagaraSystem (SimpleExplosion)

4) Open FirstPersonCharacter blueprint, add an EventTick, add a SpawnSystemAtLocation (use get actor location), Select SimpleExplosion from step 2...

5) Package game (I use project launcher -- here are my settings for the project: Build Config: Development & Build UAT: true, Cook By the Book (select WindowsNoEditor), Cook Maps: FirstPersonExampleMap, Package: package & store locally, Deploy: Do Not Deploy

6) Open the game & See the crash...

Tested on 4.21.0 & 4.21.2

(If you use a blueprint project btw, in step 1, everything works)

avatar image Ethan_Sherr Mar 07 '19 at 11:25 PM

In Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraTypes.h ~line 443 it's this line that crashes, the CastChecked<UScriptStruct>(Struct) part. The Struct variable is null here.

avatar image Noowai Mar 07 '19 at 03:16 PM

Same here. C++ project with niagara crashes packaged build

avatar image Ethan_Sherr Mar 07 '19 at 11:51 PM

Ah! Good, thanks for the sanity check. I'm surprised more people aren't having this issue.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

Hey! Just in case anyone stumbles onto this who's using UEngine <= 4.21; Cultrarius on the Epic Team informed me that this will be fixed in the upcoming 4.22 Release.

more ▼

answered Mar 08 '19 at 01:35 AM

avatar image

Ethan_Sherr
31 1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

hi, i have the same problem but in 4.22.1. But when we want to spawn niagara system at location and close the editor and restart it , It craches.

more ▼

answered May 03 '19 at 09:09 AM

avatar image

cvcf006
1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4.22.3, same issue when I set a Niagara bool variable from a C++ constructor.

more ▼

answered Jun 27 '19 at 07:58 PM

avatar image

disseminate
1 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi all, would like to clear up some confusion about this issue, currently tracked here: https://issues.unrealengine.com/issue/UE-71147

Currently UE4 loads the GameModeBase of a cooked project at a stage before any Plugins are loaded. If your project's GameModeBase hard references any UClass which itself may be hard referencing a Niagara asset, the Niagara asset will attempt to load before the Niagara plugin has been loaded which results in this cryptic error. (For more about "hard" and "soft" references, please refer to the documentation on asset references here: https://docs.unrealengine.com/en-US/Programming/Assets/ReferencingAssets/index.html)

To give a common example, if your default GameMode hard references your default Actor/Pawn, and your default Actor or Pawn hard references a Niagara System, you may experience this issue.

A resolution is in the works, but for now it is possible to work around this problem in content by loading your Niagara assets through soft object paths when needed. Please refer to this answerhub post for an example. https://answers.unrealengine.com/questions/896389/view.html

more ▼

answered Jul 11 '19 at 10:34 PM

avatar image

Noldstein
6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question