【UE】「Ran out of memory allocating ○○ bytes with alignment ○○.」の対処法

Unreal Engine

Ran out of memory allocating ○○ bytes with alignment ○○.

遭遇した問題

エラー文

<None> === Lightmass crashed: === Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Programs\UnrealLightmass\Private\Lighting\LightingSystem.cpp] [Line: 1458] Static lighting thread exception: Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 241] Ran out of memory allocating 3486253888 bytes with alignment 16. Last error msg: ページング ファイルが小さすぎるため、この操作を完了できません。. 0x00007fffb1c5b864 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb1435745 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb14504b3 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb14ba78f UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb14bc519 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007ff7196fb0b0 UnrealLightmass.exe!TArray<Lightmass::FGatheredLightMapSample,TSizedDefaultAllocator<32> >::ResizeTo() [] 0x00007ff7196df59d UnrealLightmass.exe!Lightmass::FGatheredLightMapData2D::FGatheredLightMapData2D() [] 0x00007ff7196f8c1d UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessTextureMapping() [] 0x00007ff7196dda92 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ThreadLoop() [] 0x00007ff7196d8886 UnrealLightmass.exe!Lightmass::FMappingProcessingThreadRunnable::Run() [] 0x00007fffb19657fe UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb195dd50 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007ff8e367257d KERNEL32.DLL!UnknownFunction [] 0x00007ff8e390aa58 ntdll.dll!UnknownFunction [] 0x00007fffb1435745 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb14504b3 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb14ba78f UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb14bc519 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007ff7196fb0b0 UnrealLightmass.exe!TArray<Lightmass::FGatheredLightMapSample,TSizedDefaultAllocator<32> >::ResizeTo() [] 0x00007ff7196df59d UnrealLightmass.exe!Lightmass::FGatheredLightMapData2D::FGatheredLightMapData2D() [] 0x00007ff7196f8c1d UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessTextureMapping() [] 0x00007ff7196dda92 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ThreadLoop() [] 0x00007ff7196d8886 UnrealLightmass.exe!Lightmass::FMappingProcessingThreadRunnable::Run() [] 0x00007fffb19657fe UnrealLightmass-Core.dll!UnknownFunction [] 0x00007fffb195dd50 UnrealLightmass-Core.dll!UnknownFunction [] 0x00007ff8e367257d KERNEL32.DLL!UnknownFunction [] 0x00007ff8e390aa58 ntdll.dll!UnknownFunction [] 0x00007ff719709fa0 UnrealLightmass.exe!DispatchCheckVerify<void,<lambda_5eec4f0fb0b836f5e3b32f7363c22d84>,FLogCategoryLogLightmass,wchar_t [38],wchar_t const *>() [] 0x00007ff7196cbb75 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::MultithreadProcess() [] 0x00007ff719699403 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::FStaticLightingSystem() [] 0x00007ff719649f5d UnrealLightmass.exe!Lightmass::BuildStaticLighting() [] 0x00007ff71966f461 UnrealLightmass.exe!Lightmass::LightmassMain() [] 0x00007ff719690e37 UnrealLightmass.exe!main() [] 0x00007ff7196ff11c UnrealLightmass.exe!__scrt_common_main_seh() [] 0x00007ff8e367257d KERNEL32.DLL!UnknownFunction [] 0x00007ff8e390aa58 ntdll.dll!UnknownFunction []

原因

Ran out of memory allocating 3486253888 bytes with alignment 16. 

アライメント16で3486253888バイトを割り当てたところ、メモリ不足になりました。

DeepL

対処法

対処法① ライトマップ密度を修正する

  • アウトライナー上でスタティックメッシュを選択した状態で「DetailsLightingOverridden Light Map Resolution」の値を下げる
  • スタティックメッシュエディタの「DetailsGeneral SettingsLight Map Resolution」の値を下げる

対処法② ライティングビルドの品質を下げる

BuildLighting Quality」を「Preview」等に変更する。

対処法③ PCのメモリを増設する

その他

参考記事

お問い合わせ

    タイトルとURLをコピーしました