# \[BUG Crash\] Crash when Cloth is not master skeletal mesh component

**URL:** <https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302>\
**Category:** World Creation\
**Tags:** Cloth, unreal-engine, crash, bug-report, UE4, question\
**Created:** [March 18, 2017, 11:57am UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302 "2017-03-18T11:57:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iniside](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iniside/32/866315_2.png) [@iniside](https://forums.unrealengine.com/u/iniside)\
**Post date:** [March 18, 2017, 11:57am UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302/1 "2017-03-18T11:57:09Z")

</div>

Steps to reproduce:

1. Create new Character blueprint.  
2. Add new skeletal mesh component as Child to the default mesh  
component.  
3. Make sure that Mesh component DO NOT have any cloth simulated parts.  
4. Add mesh with cloth simulation to the newly added skeletal mesh  
component.  
5. In Blueprint construction script, make the new component as  
slave to Mesh Component.  
6. Place character in level.

Now it will crash. The crash is related to the fact, that if the clothing is added to slave component, there are not transforms copied.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [March 24, 2017, 5:22pm UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302/2 "2017-03-24T17:22:47Z")

</div>

Hi iniside,

I’m having some trouble reproducing this. I’m using the third person template project with a cloth mesh I imported onto the Mannequin . I’ve tried this with a brand new character BP and the existing character BP in that template, but I cannot reproduce the crash.

Do you have an example you could send me?

---

<div class="post-metadata">

**Author:** ![iniside](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iniside/32/866315_2.png) [@iniside](https://forums.unrealengine.com/u/iniside)\
**Post date:** [March 25, 2017, 10:05am UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302/3 "2017-03-25T10:05:07Z")

</div>

Hey

Here are all meshes + ready to go character blueprint.  
All you need to do, is to place character in level and press play.

Tested on Master:  
33fc9e16bfb437ddcd25e1f1f6b5b5509710ef91 (github).

Link:

> **[Meet Google Drive – One place for all your files](https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0B7yojerKVXhpOHR4bWMxdXhkbm8%2Fview?usp%3Dsharing&followup=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0B7yojerKVXhpOHR4bWMxdXhkbm8%2Fview?usp%3Dsharing)**
>
> Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [March 29, 2017, 8:37pm UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302/4 "2017-03-29T20:37:11Z")

</div>

Hey iniside,

I looked at your project and saw that your mesh with the cloth has more bones than the base mesh (leaf bones), which is fine, but does not play well when combining cloth and SetMasterPoseComponent. We had a bug a little while back that was marked as By Design/Won’t Fix because we have a method that we recommend over SetMasterPoseComponent. We generally recommend using Copy Pose from Mesh in AnimBPs.

See [UE-34182](https://issues.unrealengine.com/issue/UE-34182)

For your case, another alternative would be to treat your cloth as an attachment instead of part of the base itself. You can give it it’s own bone structure and attach it to the hips.

---

<div class="post-metadata">

**Author:** ![iniside](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iniside/32/866315_2.png) [@iniside](https://forums.unrealengine.com/u/iniside)\
**Post date:** [March 30, 2017, 8:30am UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302/5 "2017-03-30T08:30:12Z")

</div>

Hey thanks.  
Use of attachments seems pretty straight forward and I will definitely try it later to see how it works.

Could you give some example, how to solve it using Copy Pose from Mesh ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [March 30, 2017, 8:52pm UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302/6 "2017-03-30T20:52:59Z")

</div>

It’s actually pretty simple. Instead of using Skeletal Mesh components in your BP, you’ll use PoseableMesh components. You can then use the “Copy Pose from Skeletal Component” just like you would with a master pose node.

Another way is to use Copy Pose From Mesh in the AnimBP(with skeletal components, not poseable). You’ll need to cast back to your CharacterBP to get the parent mesh. [This thread](https://answers.unrealengine.com/questions/402512/how-to-use-copy-pose-from-mesh.html) has a basic set of screenshots on how to use it.

Note: These are two distinct ways of doing this. I don’t know how well the poseable meshes handle extra bones, but the AnimBP method should work.

---

<div class="post-metadata">

**Author:** ![iniside](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iniside/32/866315_2.png) [@iniside](https://forums.unrealengine.com/u/iniside)\
**Post date:** [March 31, 2017, 6:23pm UTC](https://forums.unrealengine.com/t/bug-crash-crash-when-cloth-is-not-master-skeletal-mesh-component/388302/7 "2017-03-31T18:23:03Z")

</div>

Hye thanks.Methotd with Poseable mesh doesn’;t work (no loth sim), but the methotd with anim blueprint works like a charm.
