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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

AI Perception crashes every time the Stimuli Source registers as Source

Hi, I was just checking out the AI Perception system in v4.8 and noticed that the editor always crashes when the 'AIPerceptionStimuliSource' adds an element for 'Register as Source for senses'. I've reproduced it in the base Top Down template with no other changes. Just add the AIPerceptionStimuliSource for the TopDown Character and press add in Register as source for senses.

I've attached a screenshot of the same and a text file containing the crash report data.

AIPerception

CrashReportData

Product Version: UE 4.8
Tags:
more ▼

asked Jun 23 '15 at 03:05 PM in Bug Reports

avatar image

Stormrage256
1k 83 75 118

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

1 answer: sort voted first

Too late, this has already been fixed ;P

The reason it "crashes" is that the piece of code processing the array in question treats null values as invalid, while it's a common case while editing the array. The workaround would be to uncheck the Auto Register as Source flag, modify the array and enable the flag back.

A side note, Pawns get always auto-registered as sight-sources, so if that's your reason to play around with that then stop, it's already done automagically :)

Cheers,

--mieszko

more ▼

answered Jun 23 '15 at 03:15 PM

avatar image

MieszkoZ STAFF
7.3k 223 57 412

avatar image Stormrage256 Jun 23 '15 at 04:21 PM

Glad to hear that it's fixed. In cases like these, it's better to hear that I'm late :P Thanks for the workaround. I'll try that out.

avatar image Xanen0 Nov 10 '15 at 12:55 AM

Looks like the AIPerceptionStimuliSourceComponent still has a bug (which is why this "crash" was happening in the first place). In OnRegister, it's doing this: RegisterAsSourceForSenses.RemoveAllSwap([](TSubclassOf SenseClass){ return SenseClass != nullptr; });

but the comparison should be SenseClass == nullptr. That is, assuming the intention was to remove all null entries from the RegisterAsSourceForSenses TArray.

The current implementation ONLY keeps null Senses in the array. So, the check(SenseClass) was actually the right thing to do! We just need to fix the RemoveAllSwap comparison.

(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