# Failed to compile shipping game with VS 15.3

**URL:** <https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841>\
**Category:** Platform & Builds\
**Tags:** build, unreal-engine, compile-error, question\
**Created:** [September 5, 2017, 11:33pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841 "2017-09-05T23:33:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeblote](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeblote](https://forums.unrealengine.com/u/Zeblote)\
**Post date:** [September 5, 2017, 11:33pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/1 "2017-09-05T23:33:14Z")

</div>

It seems like VS 15.3 can’t build a shipping executable for unreal 4.17.1.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/4/eb4aa748c1209e19bd280c274dd5f9c3d45c138d.png)

The code in question:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/b/71b6f8a26e5818d38bdc67c67bdbe7d7cb9de466.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [September 11, 2017, 8:02pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/2 "2017-09-11T20:02:54Z")

</div>

Hi Zeblote,

I tried to build a project using the Shipping configuration in Visual Studio 15.3, and it completed successfully for me. Would it be possible to get the build log from Visual Studio?

---

<div class="post-metadata">

**Author:** ![Zeblote](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeblote](https://forums.unrealengine.com/u/Zeblote)\
**Post date:** [September 11, 2017, 8:20pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/3 "2017-09-11T20:20:54Z")

</div>

> ------ Skipped Build: Project: DotNETUtilities, Configuration: Development Any CPU ------  
> 1\>Project not selected to build for this solution configuration  
> 2\>------ Skipped Build: Project: ShaderCompileWorker, Configuration: Development\_Program x64 ------  
> 2\>Project not selected to build for this solution configuration  
> 3\>------ Build started: Project: BrickSpace, Configuration: Shipping\_Game x64 ------  
> 3\>Creating makefile for BrickSpace (project files are newer)  
> 3\>Performing 3 actions (16 in parallel)  
> 3\>UELinkerFixups.cpp  
> 3\>Module.Renderer.7\_of\_11.cpp  
> 3\>c:\unrealengine\engine\source\runtime\renderer\private\postprocess\rendertargetpool.cpp(955): error C4723: potential divide by 0  
> 3\>ERROR : UBT error : Failed to produce item: C:\BrickSpace\Binaries\Win64\BrickSpace-Win64-Shipping.exe  
> 3\>Total build time: 13,43 seconds (Local executor: 0,00 seconds)  
> 3\>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “C:\UnrealEngine\Engine\Build\BatchFiles\Build.bat BrickSpace Win64 Shipping “C:\BrickSpace\BrickSpace.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.  
> 3\>Done building project “BrickSpace.vcxproj” – FAILED.  
> ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 2 skipped ==========

Do you maybe have both VS 2017 and 2015 installed? I remember placing this in BuildConfiguration to make it actually compile with 2017, not sure if this is still needed.

```
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
	<BuildConfiguration>
		<ProcessorCountMultiplier>2</ProcessorCountMultiplier>
		<bAllowXGE>false</bAllowXGE>
	</BuildConfiguration>
	<WindowsPlatform>
		<Compiler>VisualStudio2017</Compiler>
	</WindowsPlatform>
	<VCProjectFileGenerator>
		<Version>VisualStudio2017</Version>
	</VCProjectFileGenerator>
</Configuration>

```

---

<div class="post-metadata">

**Author:** ![Zeblote](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeblote](https://forums.unrealengine.com/u/Zeblote)\
**Post date:** [September 16, 2017, 12:56am UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/4 "2017-09-16T00:56:00Z")

</div>

Any news??

---

<div class="post-metadata">

**Author:** ![Trout\_Zhang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Trout\_Zhang](https://forums.unrealengine.com/u/Trout_Zhang)\
**Post date:** [September 18, 2017, 9:55am UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/5 "2017-09-18T09:55:03Z")

</div>

we temporarily work it round with

float ScaleX = DisplayExtent.X / ((float)MemoryStats.TotalColumnSize + 0.01f);

---

<div class="post-metadata">

**Author:** ![Trout\_Zhang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Trout\_Zhang](https://forums.unrealengine.com/u/Trout_Zhang)\
**Post date:** [September 18, 2017, 10:04am UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/6 "2017-09-18T10:04:12Z")

</div>

Hi ,  
You don’t need the build log to figure it out.

MemoryStats.TotalColumnSize was initialized to 0 by struct SMemoryStats’s constructor and only gets assigned in FRenderTargetPool::SMemoryStats FRenderTargetPool::ComputeView(). However, the assigning code will be if out due to it’s Shipping (#if !(UE\_BUILD\_SHIPPING || UE\_BUILD\_TEST)), left TotalColumnSize remains 0, hence the build failure.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [September 21, 2017, 9:00pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/7 "2017-09-21T21:00:41Z")

</div>

I’m having the same exact issue (in 4.17.1) - cannot build shipping build. Development is fine.  
BTW, I was also able to compile a dedicated server version for Linux in shipping build. But it does fail in Win64 client build.

---

<div class="post-metadata">

**Author:** ![Zeblote](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeblote](https://forums.unrealengine.com/u/Zeblote)\
**Post date:** [September 25, 2017, 7:20pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/8 "2017-09-25T19:20:39Z")

</div>

4.17.2 doesn’t fix this issue.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [September 25, 2017, 8:12pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/9 "2017-09-25T20:12:52Z")

</div>

Yep, 4.17.2 still has the same issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [September 29, 2017, 4:12pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/10 "2017-09-29T16:12:59Z")

</div>

Hi Zeblote,

Thank you for the additional information you provided. I was able to reproduce the error by making sure that the Visual Studio 2017 compiler was used instead of the Visual Studio 2015 compiler. It doesn’t look like this particular code has changed for the past few Engine versions, so something in version 15.3 of Visual Studio 2017 changed and it is now catching this during the build process. I have entered [UE-50562](https://issues.unrealengine.com/issue/UE-50562) to have this investigated further.

---

<div class="post-metadata">

**Author:** ![RCaloca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCaloca](https://forums.unrealengine.com/u/RCaloca)\
**Post date:** [September 29, 2017, 6:07pm UTC](https://forums.unrealengine.com/t/failed-to-compile-shipping-game-with-vs-15-3/403841/11 "2017-09-29T18:07:04Z")

</div>

This has been fixed and will make it onto 4.18. If you need to fix it locally, change the constructor of SMemoryStats to TotalColumnSize(1).
