# Moving an actor to a goal using MoveComponentTo causing editor crash while collision

**URL:** <https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805>\
**Category:** World Creation\
**Tags:** moving, unreal-engine, crash, Collision, UE4, Blueprint, question\
**Created:** [December 18, 2015, 5:48am UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805 "2015-12-18T05:48:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnubhaBanerjee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnubhaBanerjee](https://forums.unrealengine.com/u/AnubhaBanerjee)\
**Post date:** [December 18, 2015, 5:48am UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/1 "2015-12-18T05:48:14Z")

</div>

When I try to destroy the actor when it collides with an object while moving (using MoveComponentTo)- the editor crashes.  
When the actor is moving towards a goal, if it collides with a block of cube, I destroy the actor - but editor crashes every time.

This is the sample blueprint to move :

![71113-movecompnentto.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/5/1a520cd22dfad1e5d07c0c9bc616f0e2f7c5abdb.png)

And this is to destroy it when it collides with any cube :

 ![71114-destroyactor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/3/8238d30ecd3086f3dc4f2c43aa2a9b1c5b50f62e.png)

Noted that when the actor has stopped moving (reached goal) and then if a cube drops on top of it, then editor does not crash after the actor is destroyed - seems like the ‘MoveComponentTo’ is referencing the static mesh component even after it is destroyed somewhere.

But one more thing I noted that if I remove collision altogether and just destroy the actor by key press when it is moving to goal, then this issue does not occur.  
Not able to figure out what I am doing wrong, Any help will be appreciated.

The crash logs :

```
Access violation - code c0000005 (first/second chance not available)
""
UE4Editor_Engine!USceneComponent::SetRelativeRotation() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\components\scenecomponent.cpp:763]
UE4Editor_Engine!FInterpolateComponentToAction::UpdateOperation() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\interpolatecomponenttoaction.h:115]
UE4Editor_Engine!FLatentActionManager::TickLatentActionForObject() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\latentactionmanager.cpp:139]
UE4Editor_Engine!FLatentActionManager::ProcessLatentActions() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\latentactionmanager.cpp:99]
UE4Editor_Engine!UWorld::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\leveltick.cpp:1207]
UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\editor\unrealed\private\editorengine.cpp:1347]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\editor\unrealed\private\unrealedengine.cpp:361]
UE4Editor!FEngineLoop::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\launchengineloop.cpp:2427]
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\launch.cpp:142]
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
kernel32
ntdll
```

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 26, 2016, 6:46pm UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/2 "2016-01-26T18:46:41Z")

</div>

Hello,

I have reproduced this crash in 4.10.2, but I haven’t been able to reproduce it in 4.11. Could you download the 4.11 Preview and see if you are able to reproduce the crash in that version?

---

<div class="post-metadata">

**Author:** ![AnubhaBanerjee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnubhaBanerjee](https://forums.unrealengine.com/u/AnubhaBanerjee)\
**Post date:** [January 27, 2016, 11:24am UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/3 "2016-01-27T11:24:38Z")

</div>

Hi,  
I will verify if the bug is reproducing in 4.11 preview once it has finished installing.

---

<div class="post-metadata">

**Author:** ![AnubhaBanerjee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnubhaBanerjee](https://forums.unrealengine.com/u/AnubhaBanerjee)\
**Post date:** [January 28, 2016, 4:42am UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/4 "2016-01-28T04:42:45Z")

</div>

Found that the crash was reproduced in 4.11.0 ‘Preview 4’ also. This is the blueprint for moving component :

 ![76312-crash.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/2/b1248be526e4b0784d71f7fd421621ae9a5ff541.png)

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 28, 2016, 1:33pm UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/5 "2016-01-28T13:33:19Z")

</div>

Could you provide screenshots of your collision settings for your StaticMeshComponent, your Box Component, and your Cube\_BP please? I’d like to ensure I am setting my collision settings to match yours.

---

<div class="post-metadata">

**Author:** ![AnubhaBanerjee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnubhaBanerjee](https://forums.unrealengine.com/u/AnubhaBanerjee)\
**Post date:** [January 29, 2016, 4:21am UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/6 "2016-01-29T04:21:25Z")

</div>

![76454-details.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/a/5ca6ea0dac921553b98c99d240783374e9fe80a7.png)

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 29, 2016, 2:20pm UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/7 "2016-01-29T14:20:13Z")

</div>

Hello,

I have been able to reproduce your issue, and have entered a bug report (UE-26203). Thank you for your report. I will provide updates on this report as they become available.

Have a great day

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [February 2, 2016, 6:56pm UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/8 "2016-02-02T18:56:14Z")

</div>

Hello,

This issue has been fixed internally, and the fix will be released in a future engine update. Thanks again for your report.

Have a great day

---

<div class="post-metadata">

**Author:** ![AnubhaBanerjee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnubhaBanerjee](https://forums.unrealengine.com/u/AnubhaBanerjee)\
**Post date:** [February 3, 2016, 3:47am UTC](https://forums.unrealengine.com/t/moving-an-actor-to-a-goal-using-movecomponentto-causing-editor-crash-while-collision/341805/9 "2016-02-03T03:47:14Z")

</div>

Thank You : )
