Description

When using move component to to move a component, and then calling Destroy Actor when the actor overlaps another actor, a crash occurs.

In this case, the user was attempting to move their static mesh component, and on Actor Begin Overlap, they were casting to their other cube actor and destroying self.

Found in 4.10.2 binary. Reproduced in 4.11 Preview 4 and Main CL 2843442

Steps to Reproduce

1. Open the attached project
2. PIE

Full Steps:

1. Open the editor
2. Create an actor blueprint called Colliding Actor
3. Add a box component and a cube component
4. Make the Box the root component
5. Set the collision to OverlapAllDynamic for the Box and BlockAllDynamic for the Cube
6. Compile
7. Create another new actor blueprint called TestActor
8. Add a Box component and a Cube component, and set the collisions the same as in step 5.
9. On Event Begin Play, add a Move Component To node, and attach a reference to the Cube component to the Component pin. Set the Target Relative Location to a value that would allow it to collide with where your Colliding Actor would be in the level.
10. Add an Event ActorBeginOverlap.
11. Cast to CollidingActor
12. Pull off of the execution pin of the cast, and add a Destroy Actor node.
13. Compile
14. Place an instance of each blueprint in the level
15. PIE

Result: When the actors overlap, the editor crashes.

Expected: The editor would not crash when the actors overlap.

Callstack

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:767]
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

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions4.104.114.12
Target Fix4.11
Fix Commit2850868
Main Commit2857187
Release Commit2850868
CreatedJan 29, 2016
ResolvedFeb 1, 2016
UpdatedApr 27, 2018
View Jira Issue