Description

When using the new Rebuild Lighting commandlet will cause a crash with any level that builds when it has a landscape in the scene.

https://github.com/EpicGames/UnrealEngine/commit/f89256dd0efb7d0b1427729a8f8a6007

Tested this with 4.11.2, 4.12, and 4.13 Dev- Editor CL-2998013. All have the same result with the crash.

Steps to Reproduce

Frequency: 3/3

1. Open UE4
2. Add a Landscape to the level
3. Name the Level when saving.
4. Save everything and close the editor
5. Navigate to your Engine/Binaries/WIn64 folder
6. Create a shortcut of UE4Editor.exe
7. Open the Shortcuts properties and add the following commandlet "[c:/Your/Project/Here.uproject]" -run=resavepackages -buildlighting -allowcommandletrendering -map= [MyMap].umap
8. Double-click and run the UE4Editor shortcut with the commandlet

Regression: No

Results: Crash when building lighting with a landscape in the level

Expected: The commandlet will not crash on load.

Callstack
Integer divide-by-zero - code c0000094 (first/second chance not available)

UE4Editor_Landscape!FLandscapeEditDataInterface::GetWeightDataTemplFast<`anonymous namespace'::TArrayStoreData<unsigned char> >() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\landscape\private\landscapeeditinterface.cpp:2934]
UE4Editor_Landscape!FLandscapeEditDataInterface::GetWeightDataFast() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\landscape\private\landscapeeditinterface.cpp:3687]
UE4Editor_UnrealEd!GetLandscapeOpacityData() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\lightmass\lightmasslandscaperender.cpp:242]
UE4Editor_UnrealEd!FLightmassMaterialRenderer::GenerateMaterialPropertyData() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\lightmass\lightmassrender.cpp:993]
UE4Editor_UnrealEd!FLightmassMaterialRenderer::GenerateMaterialData() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\lightmass\lightmassrender.cpp:903]
UE4Editor_UnrealEd!FLightmassExporter::ExportMaterial() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\lightmass\lightmass.cpp:1207]
UE4Editor_UnrealEd!FLightmassExporter::WriteToMaterialChannel() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\lightmass\lightmass.cpp:689]
UE4Editor_UnrealEd!FLightmassProcessor::ExecuteAmortizedMaterialExport() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\lightmass\lightmass.cpp:2453]
UE4Editor_UnrealEd!FStaticLightingSystem::UpdateLightingBuild() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\staticlightingsystem\staticlightingsystem.cpp:2148]
UE4Editor_UnrealEd!UEditorEngine::UpdateBuildLighting() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\staticlightingsystem\staticlightingsystem.cpp:2305]
UE4Editor_UnrealEd!UResavePackagesCommandlet::PerformAdditionalOperations() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\commandlets\contentcommandlets.cpp:806]
UE4Editor_UnrealEd!UResavePackagesCommandlet::LoadAndSaveOnePackage() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\commandlets\contentcommandlets.cpp:376]
UE4Editor_UnrealEd!UResavePackagesCommandlet::Main() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\editor\unrealed\private\commandlets\contentcommandlets.cpp:642]
UE4Editor!FEngineLoop::PreInit() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\launchengineloop.cpp:1698]
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\launch.cpp:110]
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
kernel32
ntdll

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-31654 in the post.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.114.124.13
Target Fix4.13
Fix Commit3032818
Main Commit3053789
CreatedJun 6, 2016
ResolvedJun 29, 2016
UpdatedMay 2, 2018