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"

Fatal Error! after spawning a blueprint.

Hi there,

for more information see the posts starting here.

I'm starting with the project here, this one is working, the other one (located here) does crash.

To get the error, follow this:

Hook Spawn Actor from class to beginplay from BP_RTS_Controller with a default transform and class BP_RTS_Previewbuilding.

Compile,save, test, exit.

Restart and you get the error.

Am i doing something wrong or is this a bug?


Product Version: Not Selected
more ▼

asked Nov 23 '14 at 06:16 PM in Bug Reports

avatar image

71 3 8 9

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

2 answers: sort voted first

Hey Thommie-

The crash is caused from an circular reference being created when the controller spawns the PreviewBuilding BP instance. The OwnerPC variable creates a reference to the controller that is spawning the PreviewBuilding BP which creates the OwnerPC variable (and down the rabbit hole you go). The simplest solution would be to do the location calculation in the Controller and have the controller tell the actor where it is and if it can spawn there.


Doug Wilson

more ▼

answered Nov 24 '14 at 08:46 PM

avatar image Thommie Nov 25 '14 at 03:36 PM

Right, thanks Doug i'll give it a try. If OwnerPC would be a PlayerController would this still happen? I know i don't really need a reference to the PC with what i'm currently doing but i'm just curious.

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

Ill get situations like you've mentioned. Touch interfaces can cause crashes too, but everytime its been an error that i created. Id duplicate your blue print then start deleting stuff or reset settings to default until it will run. Maybe you can identify the problem. Thats what i do.

more ▼

answered Nov 23 '14 at 07:29 PM

avatar image

Stunt Thumper
185 13 19 34

avatar image Thommie Nov 24 '14 at 04:07 PM

Thanks for the suggestions, i tried that and thought that fixed it. Turns out it didn't and i'll start all over again in case i've missed something.

(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