# Error Cannot access 'Cube1'. It is pending kill

**URL:** <https://forums.unrealengine.com/t/error-cannot-access-cube1-it-is-pending-kill/301528>\
**Category:** World Creation\
**Tags:** error, unreal-engine, Collision, editor, UE4, question, Blueprint\
**Created:** [December 14, 2014, 12:39am UTC](https://forums.unrealengine.com/t/error-cannot-access-cube1-it-is-pending-kill/301528 "2014-12-14T00:39:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayretek](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ayretek/32/88719_2.png) [@ayretek](https://forums.unrealengine.com/u/ayretek)\
**Post date:** [December 14, 2014, 12:39am UTC](https://forums.unrealengine.com/t/error-cannot-access-cube1-it-is-pending-kill/301528/1 "2014-12-14T00:39:37Z")

</div>

can run my blueprint fine for 1, 3 sometimes 4 times then I get this error:  
Error Cannot access ‘Cube1’. It is pending kill. Property: ‘Cube1’ from node Construction Script in blueprint Cube01  
is this the garbage collector & is there anything I can do about it or should I worry about it?

using the Unreal Editor 4.6 release

using an ‘on begin overlap’ event to destroy actor

destroy actor works fine if I use a projectile and ‘on component hit’ event and doesn’t create the error

‘Cube1’ is an imported static mesh, I use a box to trigger the events with the Cube1 being the root

thx for any help

---

<div class="post-metadata">

**Author:** ![Kazhiim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kazhiim](https://forums.unrealengine.com/u/Kazhiim)\
**Post date:** [December 23, 2014, 8:53am UTC](https://forums.unrealengine.com/t/error-cannot-access-cube1-it-is-pending-kill/301528/2 "2014-12-23T08:53:32Z")

</div>

I was receiving a similar error when trying to kill a particular actor as it left a volume. My solution was to change how I was destroying the actor; rather than using a “destroy actor” node, I set the actor’s “auto destroy when finished” bool to true. UE lets the actor finish up whatever it was doing (in this case, I was adding a rotation to the actor) before killing it.

---

<div class="post-metadata">

**Author:** ![call95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@call95](https://forums.unrealengine.com/u/call95)\
**Post date:** [February 12, 2016, 6:25pm UTC](https://forums.unrealengine.com/t/error-cannot-access-cube1-it-is-pending-kill/301528/3 "2016-02-12T18:25:47Z")

</div>

Hey, just wanted to say thanks a lot, that auto destroy when finished helped me solve a problem!
