ProteusVRpublic / Hololens

Hololens Template for Unreal Engine 4
MIT License
35 stars 17 forks source link

Unable to package as of September 16th 2017 #2

Open mrG7 opened 7 years ago

mrG7 commented 7 years ago

UATHelper: Packaging (UWP (x64-64bit)): xgConsole: c:\users\user\uwp\engine\source\runtime\renderer\private\postprocess\rendertargetpool.cpp(929) : error C4723: potential divide by 0

UATHelper: Packaging (UWP (x64-64bit)): xgConsole:

UATHelper: Packaging (UWP (x64-64bit)): xgConsole: Error executing C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\cl.exe (tool returned code: 2)

Not even sure where to go because

UATHelper: Packaging (UWP (x64-64bit)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown) UATHelper: Packaging (UWP (x64-64bit)): BUILD FAILED

nzavagli commented 7 years ago

Same issue here. I tried packaging just a plain first person project (no modifications) and it failed with the same error: e:\vr projects\engines\ms_uwp_ue4\engine\source\runtime\renderer\private\postprocess\rendertargetpool.cpp(929) : error C4723: potential divide by 0

mrG7 commented 7 years ago

So the following changes were made to RenderTargetPool.cpp

include / pow /

        //float ScaleX = (DisplayExtent.X / (float)MemoryStats.TotalColumnSize); Replaced by 
        float ScaleX = (DisplayExtent.X * pow( (float)MemoryStats.TotalColumnSize, -1));

Will be packaging but it builds, so,...

Humanity 1 : 0 Machines

*Compiler and settings dependent.

mrG7 commented 7 years ago

So the following changes were made to RenderTargetPool.cpp

include / pow /

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

Replaced by

float ScaleX = (DisplayExtent.X * pow( (float)MemoryStats.TotalColumnSize, -1));

Then the following change for ProteusHolo Project

Had to leave Version blank,

Project Name: ProteusHolo

And Had to Generate new Project ID

The above method was observed to non reliable. Awaiting fix for Shipping builds.

mrG7 commented 6 years ago

When the game loads up, it remains at the splash screen with a Zzz cursor. Any ETA for boot time into app or is this a separate issue?

shukenmg commented 6 years ago

This has been solved on new versions of the UE4 MR branch.