I get an error when trying to create a top-down shooter c project in Unreal. I think it might have something to do with paging files but I'm not sure. I have visual studio 2022 community installed for the compiler and use Rider for Unreal Engine as an actual IDE, it's the default. If anybody knows how to fix this, that would be greatly appreciated.
The Error Message:
The project could not be compiled. Would you like to open it in Rider?
Running C:/Program Files/Epic Games/UE_4.27/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="C:/Users/Admin/Documents/Unreal Projects/Survival/Survival.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Creating makefile for SurvivalEditor (no existing makefile)
@progress push 5%
Parsing headers for SurvivalEditor
Running UnrealHeaderTool "C:\Users\Admin\Documents\Unreal Projects\Survival\Survival.uproject" "C:\Users\Admin\Documents\Unreal Projects\Survival\Intermediate\Build\Win64\SurvivalEditor\Development\SurvivalEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Admin\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
LogInit: Display: Loading text-based GConfig....
Reflection code generated for SurvivalEditor in 10.9429744 seconds
@progress pop
Building SurvivalEditor...
Using Visual Studio 2019 14.30.30705 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Building 13 actions with 4 processes...
@progress 'Compiling C source code...' 0%
@progress 'Compiling C source code...' 8%
[1/13] Default.rc2
@progress 'Compiling C source code...' 15%
[2/13] SharedPCH.Engine.ShadowErrors.cpp
Detected compiler newer than Visual Studio 2019, please update min version checking in WindowsPlatformCompilerSetup.h
@progress 'Compiling C source code...' 23%
[3/13] SurvivalGameMode.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C source code...' 31%
[4/13] SurvivalCharacter.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C source code...' 38%
[5/13] Survival.cpp
@progress 'Compiling C source code...' 46%
[6/13] SurvivalPlayerController.gen.cpp
@progress 'Compiling C source code...' 54%
[7/13] Survival.init.gen.cpp
c1xx: error C3859: Failed to create virtual memory for PCH
c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
c1xx: note: please visit https://aka.ms/pch-help for more details
c1xx: fatal error C1076: compiler limit: internal heap limit reached
@progress 'Compiling C source code...' 62%
[8/13] SurvivalPlayerController.cpp
@progress 'Compiling C source code...' 69%
[9/13] SurvivalGameMode.gen.cpp
@progress 'Compiling C source code...' 77%
[10/13] SurvivalCharacter.cpp
CodePudding user response:
Just too many symbols or template instantiations.
Use /Zm to adjust the compiler heap limit and follow other recommendations here: