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"

Actor Pending Kill for seemingly no reason?

This is an odd one, but basically actors that I place into my player controllers inventory are marking themselves as pending kill. I'm marking this as a bug report as I'm almost positive this should not be occurring.

Some things to note;

I have double checked all of the "Initial life span" sections on the actor bp's

This error has only occurred since I've made my game (and inventory system) multiplayer based

It only seems to occur after the actor is spawned into the game; When I spawn the item, wait a couple of seconds, then try and access the name variable inside the actor, it will give me the error.

But If I spawn it and access it ASAP it will give me the name once or twice (depending on how quickly I double click) but then shortly after be marked for pending kill again.

Here is the path the blueprints take from my "Interact" trace call to pick them up.

alt text alt text alt text alt text alt text

Here is the random item spawner

alt text

And here is an example of the error message

alt text

If this is not actually a bug and simply a mistake in the blueprint feel free to move this post to another section, but I can not for the life of me figure this out.

Any help is appreciated

Product Version: UE 4.10
more ▼

asked Jan 25 '16 at 05:05 AM in Bug Reports

avatar image

18 6 9 11

avatar image marsonmao Jan 25 '16 at 11:01 AM

maybe you should also include the codes that causing the error, i.e. the BP of InvItem.OnMouseButtonDoubleClick?

avatar image Timbo59 Jan 25 '16 at 02:41 PM

Here you go alt text

This is simply just a test function to see if I could access some variables from the widget.

As you can see the error arises when I try and access "Current Item Actor", which is the reference to the item in my widget. The other print string is a test to see if it was the widget that was pending kill, but that seems to fire off every time.

Now I could just put a IsValid there but it wouldn't fix the over-arching problem which is the actor flagging itself pending kill

I'm also positive it's not any function accessing its values that is causing the problem, it's somehow based on when the actor spawns .

avatar image JR4815 Jan 25 '16 at 06:31 PM

To avoid Actors getting garbage collected you could try attaching them to the root component of the controlled pawn

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

1 answer: sort voted first

That actually worked, wow. I did an 'attach actor to actor' and just plugged in the servers PC and it's now it's not getting flagged for collection. Thank you for the solution. I hope this was just due to some error I made,but I still think there's some bugginess going on.

Props to JR4815 for the answer

more ▼

answered Jan 25 '16 at 06:51 PM

avatar image

18 6 9 11

(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