# UE4 4.21 Material Editor BUG

**URL:** <https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064>\
**Category:** Rendering\
**Tags:** unreal-engine, crash, bug-report, question\
**Created:** [November 21, 2018, 6:36pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064 "2018-11-21T18:36:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabirobi03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabirobi03](https://forums.unrealengine.com/u/Gabirobi03)\
**Post date:** [November 21, 2018, 6:36pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/1 "2018-11-21T18:36:28Z")

</div>

Hi!

I’ve been using 4.19 for a big project I’m doing work for hire for and the studio decided to switch to 4.21.

Thing is, everything works fine EXCEPT, the material editor.  
I’ve been working exactly the same way I was before and with the same materials and it worked perfectly previously.

Issues with 4.21:

First of all, materials are compiling REALLY and I mean REALLY slow, I have to wait at least a minute to compile simple shaders that in 4.19 took 5/6 seconds.

Second, when I make changes to any material, they won’t be visible in the preview mesh in the top left viewport, they take like two minutes to show up, in 4.19 that was almost instant.

Last thing, switch parameters are sort of messed up. On my end, the engine is crashing each time I do the following:

- use a switch parameter in a material (false value as default)
- compile the material
- create an instance of that material
- change the value of that static parameter in the instance to true (this will remove the parameters that are not connected to the true chain - like if the switch was actually working - except that it does not change anything and ignore it
- a few seconds later the engine just crashes

I’d appreciate anyone who sheds any light in my path.

Thanks!

---

<div class="post-metadata">

**Author:** ![Kmack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kmack/32/706181_2.png) [@Kmack](https://forums.unrealengine.com/u/Kmack)\
**Post date:** [November 21, 2018, 6:45pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/2 "2018-11-21T18:45:03Z")

</div>

I would recommend starting by clearing out your Intermediate directory and your derived data cache. It’s possible that you have intermediate artifacts from shader compilation on 4.19 that aren’t compatible with 4.21. Very often when you encounter unexplained-seeming errors after an update, they’re caused by leftover build artifacts.

---

<div class="post-metadata">

**Author:** ![Gabirobi03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabirobi03](https://forums.unrealengine.com/u/Gabirobi03)\
**Post date:** [November 23, 2018, 2:40pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/3 "2018-11-23T14:40:29Z")

</div>

Hey good idea, I’ll try that today I’ll tell you how that goes thanks!

---

<div class="post-metadata">

**Author:** ![Gabirobi03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabirobi03](https://forums.unrealengine.com/u/Gabirobi03)\
**Post date:** [November 25, 2018, 8:14pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/4 "2018-11-25T20:14:56Z")

</div>

didn’t work ☹ thanks for the idea though!

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [November 26, 2018, 12:02am UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/5 "2018-11-26T00:02:44Z")

</div>

Shaders compiling slower is a result of changes in the engine between mentioned versions. And it is pretty terrible. I suggest that you properly report the crash though.

---

<div class="post-metadata">

**Author:** ![Gabirobi03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabirobi03](https://forums.unrealengine.com/u/Gabirobi03)\
**Post date:** [November 26, 2018, 7:16pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/6 "2018-11-26T19:16:46Z")

</div>

that’s exactly what I didn’t want to hear lol  
I hope they fix that soon - insert have some faith meme here -

---

<div class="post-metadata">

**Author:** ![nico77950](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nico77950](https://forums.unrealengine.com/u/nico77950)\
**Post date:** [November 29, 2018, 4:06pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/7 "2018-11-29T16:06:15Z")

</div>

I’ve got exactly the same problem ! All works fine in 4.19 version but not on the 4.21.0 😕

---

<div class="post-metadata">

**Author:** ![Gabirobi03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabirobi03](https://forums.unrealengine.com/u/Gabirobi03)\
**Post date:** [November 30, 2018, 9:58pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/8 "2018-11-30T21:58:43Z")

</div>

I’m still having the issue, materials take about 3 to 9 minutes to compile it’s making me lose hours of work

---

<div class="post-metadata">

**Author:** ![rorrimani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rorrimani](https://forums.unrealengine.com/u/rorrimani)\
**Post date:** [December 4, 2018, 9:34pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/9 "2018-12-04T21:34:12Z")

</div>

Uninstall IncrediBuild, had the same problem and I’m happy to say this fixed it for me!

---

<div class="post-metadata">

**Author:** ![Gabirobi03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gabirobi03](https://forums.unrealengine.com/u/Gabirobi03)\
**Post date:** [December 5, 2018, 4:33pm UTC](https://forums.unrealengine.com/t/ue4-4-21-material-editor-bug/438064/10 "2018-12-05T16:33:45Z")

</div>

worked like a charm! thanks!
