# \[4.5.1 Physics Crash\] Setting AttachTo and Simulate Physics causes instant crash, Repro Content-Only Project for you!

**URL:** <https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751>\
**Category:** World Creation\
**Tags:** unreal-engine, crash, editor, question\
**Created:** [October 30, 2014, 9:27pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751 "2014-10-30T21:27:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 30, 2014, 9:27pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/1 "2014-10-30T21:27:11Z")

</div>

Dear Friends at Epic,

Please see my pic below!

I’ve created a easy repro case for you as a downloadable content-only project!

#Download Size 20 mb

> **[Cahoots — Ann Arbor tech coworking](https://cahoots.com)**
>
> Cahoots is the new coworking and event space in downtown Ann Arbor dedicated to amplifying the vibrant tech startup community.

#Pic

 ![19591-physicscrash45.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/8/02898f753fbefd33183f26fbf293ff65c1eb8c72.jpeg)

If you want you can repro whole thing without download, it is all contained in this one picture!

#Issue

Setting AttachTo with new body welding code involved (even though it is not even checked!) and turning physics simulating off

is causing an instant crash for me in a BP-only project!

Hourences and I encountered this crash in Solus but **my repro project is reliably crashing every time I press B key**

I am not even getting to try and press CTRL B to then detach object!

**Just pressing B crashes editor every time.**

* * *

#This Has to be Addressed, cost me 6 hours of debugging time

I spent 6 hours debugging this issue, starting in c++, only to realize it was BP, to then realize I could even repro it outside of Solus.

Please take this very seriously, it is a major engine instability issue!

#Second Crash

I tried using component level version of attach to and set simulate,

I still get crash!

If I disconnect attach to node, then crash does not happen.

 ![19590-crash2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/9/f196f15f81cb2bfe9a28a331b1bc71da83cb6148.jpeg)

**So it is interaction of Set Simulate and Attach To that is causing crash!**

PS:

Again you can simply download my 4.5.1 repro project I made for you during this 6 hour ordeal

#Download Size 20MB

> **[Cahoots — Ann Arbor tech coworking](https://cahoots.com)**
>
> Cahoots is the new coworking and event space in downtown Ann Arbor dedicated to amplifying the vibrant tech startup community.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 30, 2014, 9:31pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/2 "2014-10-30T21:31:22Z")

</div>

#Better Picture

Here’s a better picture in case you want to repro without downloading

 ![19594-physicscrash45.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c3852b1f20f7e820cc4de2f8107d1daa24c071b.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [October 31, 2014, 6:29pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/3 "2014-10-31T18:29:32Z")

</div>

Hey ,

Thanks for setting up test project and providing these details. I was able to reproduce issue in 4.5.1 as well as our internal build, so I have entered a bug report for developers (UE-4873). I will let you know when I see any updates on it. Thanks for report!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [November 1, 2014, 2:40am UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/4 "2014-11-01T02:40:16Z")

</div>

Thanks !

This has made Solus very unstable so it is really important that a fix come along for 4.6, because 4.5 is causing other crashes for me I’ve never seen in 4.4 and prior, and related parts of code base are same! I am quite convinced its all related to body welding / attaching of actors!

Have fun today !

🙂

---

<div class="post-metadata">

**Author:** ![\_Epic\_Ori\_Cohen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Epic\_Ori\_Cohen](https://forums.unrealengine.com/u/_Epic_Ori_Cohen)\
**Post date:** [November 3, 2014, 4:35pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/5 "2014-11-03T16:35:59Z")

</div>

Hi ,

This is actually unrelated to attachment or welding code. problem here seems to be a PhysX bug with way CCD flag works. For example if you remove your attachment code and replace it with a call to SetActorLocation you’ll get same crash.

I’ve submitted a temporary fix for this while I await NVIDIA’s response to make sure we’re not doing something else wrong. You could avoid this issue by turning CCD off on your simulated object, or you can grab my change from github.

Thanks for repro steps.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [November 4, 2014, 9:33pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/6 "2014-11-04T21:33:18Z")

</div>

#Yay For Ori!

I can verify that turning off CCD on my static meshes does remove crash!

Great detective work Ori!

Thanks for this info and near future fix!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [January 1, 2015, 8:36pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/7 "2015-01-01T20:36:56Z")

</div>

“I’ve submitted a temporary fix for this while I await NVIDIA’s response to make sure we’re not doing something else wrong. You could avoid this issue by turning CCD off on your simulated object, or you can grab my change from github.”

Any update on this matter? Sjoerd is reporting Solus is still getting crashes due to attachments, just wondering if anything new has happened on your end 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 3, 2015, 12:07am UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/8 "2015-01-03T00:07:20Z")

</div>

Hey ,

Ori won’t get back until Monday, so I’ll ask him then. Does turning off CCD not work anymore?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 6, 2015, 7:56pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/9 "2015-01-06T19:56:03Z")

</div>

Hi ,

I checked with Ori, and he said temporary fix is in 4.7 and he thinks NVIDIA fix will be in 4.8.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [January 7, 2015, 7:11am UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/10 "2015-01-07T07:11:47Z")

</div>

Thank you for info !

#❤

---

<div class="post-metadata">

**Author:** ![nopunintendo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nopunintendo](https://forums.unrealengine.com/u/nopunintendo)\
**Post date:** [January 24, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/11 "2015-01-24T21:10:32Z")

</div>

I believe that I’m encountering this bug as well, is temporary fix available in current 4.7 preview?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 26, 2015, 9:05pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/12 "2015-01-26T21:05:17Z")

</div>

It should be. You can create a copy of your project to test it in 4.7 Preview 4. Let us know if you still have this problem!

---

<div class="post-metadata">

**Author:** ![nopunintendo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nopunintendo](https://forums.unrealengine.com/u/nopunintendo)\
**Post date:** [June 3, 2015, 9:03pm UTC](https://forums.unrealengine.com/t/4-5-1-physics-crash-setting-attachto-and-simulate-physics-causes-instant-crash-repro-content-only-project-for-you/297751/13 "2015-06-03T21:03:40Z")

</div>

Hey there, sorry I missed your response. Before you responded, I was still encountering bug in 4.7 preview 4. I’ve just now converted my project to 4.8 preview 4, and bug seems to be fixed!!

I can finally continue working on my game! Woohoo!
