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"

Calling 'SetPaused' on a Niagara Component crashes the engine.

Steps to Reproduce:

  1. Activate a Niagara Component

  2. Deactivate the Component

  3. Call 'Set Paused' on the Component.


Result:

NiagaraSystemSimulation will crash on line 807, with the following check() being triggered:

 int32 SystemIndex = Instance->SystemInstanceIndex;
 check(SystemInstances.IsValidIndex(SystemIndex));
Product Version: UE 4.22
Tags:
more ▼

asked Jun 15 '19 at 11:33 AM in C++ Programming

avatar image

TheJamsh
820 60 97 140

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

1 answer: sort voted first

You always want to check that the component is valid before calling any functions like SetPaused()

This would look like:

     if(MyComponent){
           MyComponent->SetPaused(true);
     }

But I'm pretty certain that deactivating the Niagra component will disable it so you can't call any functions on it. By this manner, just make sure to call all your functions (like SetPaused) before deactivating.

more ▼

answered Jun 16 '19 at 01:05 AM

avatar image

kevincvanhorn
63 3 4 8

avatar image TheJamsh 6 days ago

Yeah it's guarded already, and I even tried checking if it's not been deactivated just in case.

It seems strange to block calls to functions to the component if it's been deactivated. Deactivating cascade components is the right way to stop a cascade system emitting new particles and not having to create a new component each time you want it activated.

(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