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"

Path Following Component null after conversion to 4.17

Hello, i've recently updated to 4.17 and the first thing i've noticed is that my AI just crashes because the path following component is null, any idea of why this is? I've debugged the code and he's able to instantiate the path following component on the constructor, but for some reason it gets null after that.

Product Version: UE 4.17
Tags:
more ▼

asked Aug 31 '17 at 09:57 PM in Bug Reports

avatar image

xlar8or
1k 111 100 267

avatar image Wurmloch83 Sep 10 '17 at 03:18 PM

Are you still having this issue?

I had a similar problem just a second ago, but with a BoxComponent. It helped me to comment/remove the UPROPERT() macro from the variable, then rebuild, then start the editor/game -> now the component is not reset to null any longer.

I was then able to uncomment/re-add the UPROPERTY() macro, and it kept working.

I have no Idea what the issue was.

avatar image xlar8or Sep 11 '17 at 06:08 PM

Thanks for the reply, i just recreated the blueprint and it worked :)

avatar image rizzin Oct 24 '17 at 02:20 AM

I have had the same issue yesterday.

As soon as my NPCs received a MoveTo command, the Editor crashed with 100% repro rate. I work on a Windows machine and on a MacBook. Only the Windows machine (4.17 -> 4.17.2) had the problem, MacBook (4.17.1) worked fine. The project was up to date with our repository in both cases and had no local changes.

I have traced the problem up to here:

 void FObjectInitializer::PostConstructInit()
 {
     <...>
     if (bShouldInitializePropsFromArchetype)
     {
         UClass* BaseClass = (bIsCDO && !GIsDuplicatingClassForReinstancing) ? SuperClass : Class;
         if (BaseClass == NULL)
         {
             check(Class==UObject::StaticClass());
             BaseClass = Class;
         }
     
         UObject* Defaults = ObjectArchetype ? ObjectArchetype : BaseClass->GetDefaultObject(false); // we don't create the CDO here if it doesn't already exist
         InitProperties(Obj, BaseClass, Defaults, bCopyTransientsFromClassDefaults);
     }
 }

The InitProperties call copies values from the default object into the actual instance. And at that point my instance Obj had a non-null PathFollowingComponent after creating it inside its constructor, but the default AIController Defaults had it set to null.

I tried debugging a newly created empty AIController to that point, and its default PathFollowingComponent was non-null, so everything worked as expected.

And the last thing I did was check a normal clean blueprint against my broken AI Controller using the property editor.

Here's a normal one: Clean AI Controller

Here's my, broken one: Broken AI Controller

So in the end it seems that somehow my blueprint got corrupted and lost its default PathFollowingComponent value. I didn't find a way to restore it (I didn't try too hard), so I also recreated the AIController blueprint, and now it works fine.

aic-normal.png (13.2 kB)
aic-broken.png (9.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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