# UE-81677 Additional Details

**URL:** <https://forums.unrealengine.com/t/ue-81677-additional-details/456984>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, Visual-Studio, question\
**Created:** [October 16, 2019, 12:44am UTC](https://forums.unrealengine.com/t/ue-81677-additional-details/456984 "2019-10-16T00:44:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slayemin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slayemin](https://forums.unrealengine.com/u/Slayemin)\
**Post date:** [October 16, 2019, 12:44am UTC](https://forums.unrealengine.com/t/ue-81677-additional-details/456984/1 "2019-10-16T00:44:17Z")

</div>

RE: UE-81677 UnrealMathTest fails when compiled with VS2019

I am using Visual Studio 2019 Pro (v.16.3.5) and am experiencing this error as well. From my research, it appears that that this happens with the C++ code optimizer when it tries to do a fast normalize – it uses an uninitialized register. This appears to be a compiler level bug.

**Effect:** Vectors, rotators, and any math which depends on square roots (ie, normalization) will be quite off and you’ll get glitchy behavior (objects appearing/disappearing at random, wrong textures, other rendering artifacts).

**Best Practice:** Avoid updating to the latest version of Visual Studio 2019 until Microsoft issues a compiler hotfix (No ETA).

**Workaround:** If you already updated visual studio 2019, the work around is to use the visual studio installer to install the 14.22.27905 build tool chain and then modify the UE4 “\Engine\Saved\UnrealBuildTool\BuildConfiguration.xml” to point to that compiler version. I have verified that this works.

**References:**

> **[Visual Studio Feedback](https://developercommunity.visualstudio.com/content/problem/734585/msvc-142328019-compilation-bug.html)**
>
> Visual Studio Feedback

> **[Visual Studio Feedback](https://developercommunity.visualstudio.com/content/problem/748361/incorrect-code-generation-with-visual-studio-2019.html)**
>
> Visual Studio Feedback

---

<div class="post-metadata">

**Author:** ![Hugh.Macdonald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hugh.Macdonald](https://forums.unrealengine.com/u/Hugh.Macdonald)\
**Post date:** [October 22, 2019, 1:34pm UTC](https://forums.unrealengine.com/t/ue-81677-additional-details/456984/2 "2019-10-22T13:34:19Z")

</div>

Is there a solution to this when building a project, rather than the whole engine? I’m building a plugin as part of a project, and need this fix, as I updated to the latest VS2019.

---

<div class="post-metadata">

**Author:** ![Slayemin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slayemin](https://forums.unrealengine.com/u/Slayemin)\
**Post date:** [October 22, 2019, 6:47pm UTC](https://forums.unrealengine.com/t/ue-81677-additional-details/456984/3 "2019-10-22T18:47:37Z")

</div>

This is a compiler level fix. You can’t (and shouldn’t) apply this per project or per plugin.

---

<div class="post-metadata">

**Author:** ![Hugh.Macdonald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hugh.Macdonald](https://forums.unrealengine.com/u/Hugh.Macdonald)\
**Post date:** [October 22, 2019, 9:21pm UTC](https://forums.unrealengine.com/t/ue-81677-additional-details/456984/4 "2019-10-22T21:21:46Z")

</div>

I’m not trying to compile the whole engine - I’m using a version of the engine from the Epic Launcher. I have a plugin that I’m wanting to compile, and I usually do this by making it a project plugin and compiling the project/plugin together. I’m hoping that there is a way of building this that I can apply the fix to.
