# Editor Crashing on Bake Material of Skeletal Mesh

**URL:** <https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978>\
**Category:** Rendering\
**Tags:** bug, baking, unreal-engine, skeletalmesh, Rendering, question\
**Created:** [November 3, 2018, 7:34pm UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978 "2018-11-03T19:34:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANURAGX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANURAGX](https://forums.unrealengine.com/u/ANURAGX)\
**Post date:** [November 3, 2018, 7:34pm UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/1 "2018-11-03T19:34:29Z")

</div>

Hi Epic team,  
I was just exploring the bake material feature, then I encountered a crash while baking material from skeletal mesh of paragon hero.

**Steps to reproduce**

1. Open Narbhash hero skeletal mesh.

2. Click on bake material and let the default settings be as it is and confirm.

3. Wait for few seconds, editor will crash.

Below I m attaching the screenshot from my PC.

 ![258468-basesettings.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/e/f4efe2082c3af8b0d1a239f2bcd731fc48b901f3.jpeg)

 ![258469-bakematerialcrash.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/a/50a6c8992a865521ea4cc3bd97b2421da85a3035.jpeg)

---

<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:** [November 5, 2018, 3:17pm UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/2 "2018-11-05T15:17:35Z")

</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

---

<div class="post-metadata">

**Author:** ![ANURAGX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANURAGX](https://forums.unrealengine.com/u/ANURAGX)\
**Post date:** [November 12, 2018, 12:50pm UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/3 "2018-11-12T12:50:38Z")

</div>

I have submitted the bug report for UE 4.20, then one the Epic engineer replied to me stating its been already fixed in UE 4.21.  
But in 4.21 also its crashing because of Array Index Out of bound exception. This is not acceptable, after fixing one thing its causing another crash.  
I also work in a product based company, if you have your product then make it bug free, everywhere UE crashes.  
I can also fix those bugs and crashes but I don’t have enough time to dedicate for bug and crash fixing.

Its really annoying, take my advice and please iterate UE 4.22 only for bug fixing, no feature addons only bug and crash fixing.

---

<div class="post-metadata">

**Author:** ![ANURAGX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANURAGX](https://forums.unrealengine.com/u/ANURAGX)\
**Post date:** [November 14, 2018, 7:35am UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/4 "2018-11-14T07:35:21Z")

</div>

This I have solved all by myself, the epic guys totally refused to solve this issue as it was only happening on my end as they stated. At least they should have given some tips to solve, but no they are indeed thick-skinned, arrogant and annoying.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [November 3, 2019, 2:51am UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/5 "2019-11-03T02:51:35Z")

</div>

So, how did you solve it? I am having the same issue.

---

<div class="post-metadata">

**Author:** ![ANURAGX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANURAGX](https://forums.unrealengine.com/u/ANURAGX)\
**Post date:** [November 3, 2019, 5:17pm UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/6 "2019-11-03T17:17:28Z")

</div>

I have just commented the line 414 in file MeshMergeUtilities.cpp and built the solution.

This is the line which is commented.  
const FSectionInfo& SectionInfo = UniqueSections[Pair.Key];

I don’t know what it does.

You can check that line 414 in that file.

---

<div class="post-metadata">

**Author:** ![ANURAGX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANURAGX](https://forums.unrealengine.com/u/ANURAGX)\
**Post date:** [November 3, 2019, 5:18pm UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/7 "2019-11-03T17:18:43Z")

</div>

I was using the source version of UE4.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [November 4, 2019, 2:59am UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/8 "2019-11-04T02:59:17Z")

</div>

I am getting different crash:

Assertion failed: (Index \>= 0) & (Index \< ArrayNum) [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 614] Array index out of bounds: 3 from an array of size 3

---

<div class="post-metadata">

**Author:** ![ANURAGX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANURAGX](https://forums.unrealengine.com/u/ANURAGX)\
**Post date:** [November 4, 2019, 3:44am UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/9 "2019-11-04T03:44:56Z")

</div>

If you see it properly, it is because of array out of bounds exception for TArray class.  
So MeshMergeUtilities.cpp is the source where it is trying to access elements out of bounds of limit.  
So if you comment out that line and recompile the engine it will work fine.

---

<div class="post-metadata">

**Author:** ![NextWorldVR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NextWorldVR](https://forums.unrealengine.com/u/NextWorldVR)\
**Post date:** [May 18, 2021, 7:27am UTC](https://forums.unrealengine.com/t/editor-crashing-on-bake-material-of-skeletal-mesh/436978/10 "2021-05-18T07:27:08Z")

</div>

HI. I have had trouble recently exporting ‘MetaHumans’ with good materials in 3ds Max,.

I found that if I COPY the skeletal mesh, then convert the copy to a static mesh (just for baking purposes) I am finally able to bake! (EXCITING!!!)

ALSO it can fail out, IF YOU DO NOT HAVE ENOUGH HARD DRIVE SPACE, on the drive UE4 is installed onto.

🙂 If you have any interest, come see my upcoming show ‘WORKING (while) IN VR!’ at: [youtube.com/NextWorldVR](http://youtube.com/NextWorldVR)

Subscribe for premiere announcement. 🙂 -Woody
