# GrabComponent crash

**URL:** <https://forums.unrealengine.com/t/grabcomponent-crash/445878>\
**Category:** World Creation\
**Tags:** physics-handle, grab, crash-on-play, unreal-engine, bug-report, CPP, question\
**Created:** [March 24, 2019, 10:00am UTC](https://forums.unrealengine.com/t/grabcomponent-crash/445878 "2019-03-24T10:00:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d7cf234d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d7cf234d](https://forums.unrealengine.com/u/anonymous_user_d7cf234d)\
**Post date:** [March 24, 2019, 10:00am UTC](https://forums.unrealengine.com/t/grabcomponent-crash/445878/1 "2019-03-24T10:00:27Z")

</div>

When I use a PhysicsHandle-\>GrabComponent in an actor component, it crashes Ue4 when I click Play. There are no errors when compiling. it only crashes when I include the code in Tick Component, but when I remove it, it runs fine but without me being able to use the physics handle.

`void UGrabberr::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction\* ThisTickFunction)  
{  
///

Super::TickComponent(DeltaTime, TickType, ThisTickFunction);

```
// if the physics handle is attached
CheckGrabbedComponent();

```

}

void UGrabberr::CheckGrabbedComponent()  
{  
// move the object that we’re holding  
PhysicsHandle-\>SetTargetLocation(GetReachLineEnd());

}`

If you want a zip of the code or more info, answer and ask 🙂

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [March 25, 2019, 3:34pm UTC](https://forums.unrealengine.com/t/grabcomponent-crash/445878/2 "2019-03-25T15:34:32Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

Thanks
