# VRTemplate - Build Lighting Crashes UE5 - Adding Landscape Material - Build Lighting crashes at Exporting Data 33%

**URL:** <https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936>\
**Category:** XR Development\
**Tags:** Oculus, unreal-engine, UE5-0, question\
**Created:** [March 22, 2022, 4:43pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936 "2022-03-22T16:43:17Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickknyc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nickknyc/32/681780_2.png) [@nickknyc](https://forums.unrealengine.com/u/nickknyc)\
**Post date:** [March 22, 2022, 4:43pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/1 "2022-03-22T16:43:17Z")

</div>

@VictorLerp (you seem to be the go to for XR ;^)

Understanding that this is all Preview, I think this is an important issue - would love a work around.

Using the stock VRTemplate in UE5P2, I added a Material to the stock Landscape -  
I can get it set up, but I get notices that Lighting needs to be rebuilt  
Running Build | Build Lighting Only I crash with the following.  
Have submitted the data via the crash dialog.

All nVidia and Intel drivers up to date - I have tried both the Studio and Gamer nVidia driver versions. I am running on a SurfaceBook 3 with Unreal configured to run against the nVidia GPU. Video Setting attached,

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/a/75ad41ace1e7f3f0599da9d764fc17203cbd9767.png)

Best,  
Nick

LoginId:will provide if needed  
EpicAccountId:Will provide if needed

Assertion failed: CurrentGPUVirtualAddress != 0 [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12DescriptorCache.cpp] [Line: 729]

UnrealEditor\_D3D12RHI!FD3D12DescriptorCache::SetConstantBuffers\<0\>() [D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12DescriptorCache.cpp:729]  
UnrealEditor\_D3D12RHI!FD3D12StateCacheBase::ApplyState\<0\>() [D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12StateCache.cpp:648]  
UnrealEditor\_D3D12RHI!FD3D12CommandContext::RHIDrawIndexedPrimitive() [D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12Commands.cpp:2079]  
UnrealEditor\_RHI!FRHICommandDrawIndexedPrimitive::Execute() [D:\build++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandListCommandExecutes.inl:214]  
UnrealEditor\_Renderer!FRHICommand\<FRHICommandDrawIndexedPrimitive,FRHICommandDrawIndexedPrimitiveString1053\>::ExecuteAndDestruct() [D:\build++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandList.h:768]  
UnrealEditor\_RHI!FRHICommandListExecutor::ExecuteInner\_DoExecute() [D:\build++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:498]  
UnrealEditor\_RHI!FExecuteRHIThreadTask::DoTask() [D:\build++UE5\Sync\Engine\Source\Runtime\RHI\Private\RHICommandList.cpp:560]  
UnrealEditor\_RHI!TGraphTask::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:975]  
UnrealEditor\_Core!FNamedTaskThread::ProcessTasksNamedThread() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:753]  
UnrealEditor\_Core!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:642]  
UnrealEditor\_Core!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:2115]  
UnrealEditor\_RenderCore!FRHIThread::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:325]  
UnrealEditor\_Core!FRunnableThreadWin::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:146]

---

<div class="post-metadata">

**Author:** ![nickknyc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nickknyc/32/681780_2.png) [@nickknyc](https://forums.unrealengine.com/u/nickknyc)\
**Post date:** [March 22, 2022, 8:35pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/2 "2022-03-22T20:35:13Z")

</div>

Also - turning off Forward Shading turned off, I get a different behavior. UE5 editor locks up at 25% Exporting Lighting Data … In the original setup with Forward Shading enabled, it crashes at 33%

---

<div class="post-metadata">

**Author:** ![nickknyc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nickknyc/32/681780_2.png) [@nickknyc](https://forums.unrealengine.com/u/nickknyc)\
**Post date:** [March 24, 2022, 1:40am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/3 "2022-03-24T01:40:38Z")

</div>

Also - I am able to build with in **UE 4.27.2.**. doing the same thing on the VR Temaplate - adding a Material to the landscape - the build Lighting Only … works fine

---

<div class="post-metadata">

**Author:** ![999999333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@999999333](https://forums.unrealengine.com/u/999999333)\
**Post date:** [April 5, 2022, 4:16pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/4 "2022-04-05T16:16:38Z")

</div>

Same problem in 5.0. 😐 Happens in VRTemplate when building lighting.

---

<div class="post-metadata">

**Author:** ![nickknyc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nickknyc/32/681780_2.png) [@nickknyc](https://forums.unrealengine.com/u/nickknyc)\
**Post date:** [April 5, 2022, 7:27pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/5 "2022-04-05T19:27:01Z")

</div>

Well, the 5.0 release is out - hoping it fixed there. Watched a bunch of stuff from “State of Unreal” and it was unbelievable - hats off - so nicely done. [Unreal Engine 5 Release | The State of Unreal 2022 Keynote Presentation - YouTube](https://youtu.be/7ZLibi6s_ew)

---

<div class="post-metadata">

**Author:** ![Kavan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kavan/32/1194623_2.png) [@Kavan](https://forums.unrealengine.com/u/Kavan)\
**Post date:** [April 5, 2022, 7:54pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/6 "2022-04-05T19:54:34Z")

</div>

Not fixed (for me at least) I’m having this issue right now, clean 5 launcher install with default VR template with no changes 😕

---

<div class="post-metadata">

**Author:** ![visionmaster2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@visionmaster2](https://forums.unrealengine.com/u/visionmaster2)\
**Post date:** [April 6, 2022, 1:35am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/7 "2022-04-06T01:35:04Z")

</div>

Same here.

---

<div class="post-metadata">

**Author:** ![Michael\_page](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael_page/32/911378_2.png) [@Michael\_page](https://forums.unrealengine.com/u/Michael_page)\
**Post date:** [April 6, 2022, 1:38am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/8 "2022-04-06T01:38:52Z")

</div>

Samething here. I suspected a problem with gpu driver. I did a format and reinstall latest gpu driver with UE5 and the error is here again.

---

<div class="post-metadata">

**Author:** ![Qurmudgeon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Qurmudgeon](https://forums.unrealengine.com/u/Qurmudgeon)\
**Post date:** [April 6, 2022, 3:19am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/9 "2022-04-06T03:19:34Z")

</div>

VRtemplate crashes when I build lighting as well. I reinstalled windows and all drivers. Problem still persisits.

---

<div class="post-metadata">

**Author:** ![Qurmudgeon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Qurmudgeon](https://forums.unrealengine.com/u/Qurmudgeon)\
**Post date:** [April 6, 2022, 3:20am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/10 "2022-04-06T03:20:35Z")

</div>

I do have a BADsize text message on my player start capsule. I will attempt to troubleshoot and get back.

---

<div class="post-metadata">

**Author:** ![maxdark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@maxdark](https://forums.unrealengine.com/u/maxdark)\
**Post date:** [April 6, 2022, 4:13am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/11 "2022-04-06T04:13:30Z")

</div>

Can’t build lightning and can’t create materials on vr template scene. Preview does some crashes about lightning but 5.0 is non useable for me. ☹

3060ti using last nvidia studio drivers.  
fully reinstalled 5.0  
i created new vr template.

Assertion failed: CurrentGPUVirtualAddress != 0 [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12DescriptorCache.cpp] [Line: 729]

> **Summary**
>
> UnrealEditor\_D3D12RHI  
> UnrealEditor\_D3D12RHI  
> UnrealEditor\_D3D12RHI  
> UnrealEditor\_RHI  
> UnrealEditor\_Renderer  
> UnrealEditor\_RHI  
> UnrealEditor\_RHI  
> UnrealEditor\_RHI  
> UnrealEditor\_Core  
> UnrealEditor\_Core  
> UnrealEditor\_Core  
> UnrealEditor\_RenderCore  
> UnrealEditor\_Core  
> UnrealEditor\_Core  
> kernel32  
> ntdll

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [April 6, 2022, 5:08pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/12 "2022-04-06T17:08:59Z")

</div>

Hey everyone I responded with information and a workaround here: [OpenXR VR Template | Feedback and Discussion - #99 by VictorLerp](https://forums.unrealengine.com/t/openxr-vr-template-feedback-and-discussion/246425/99)

---

<div class="post-metadata">

**Author:** ![RobH2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/robh2/32/496965_2.png) [@RobH2](https://forums.unrealengine.com/u/RobH2)\
**Post date:** [April 8, 2022, 12:22am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/13 "2022-04-08T00:22:20Z")

</div>

Thanks, that fixed it for me, the Direct X workaround from VictorLerp.

---

<div class="post-metadata">

**Author:** ![RobH2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/robh2/32/496965_2.png) [@RobH2](https://forums.unrealengine.com/u/RobH2)\
**Post date:** [April 8, 2022, 12:23am UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/14 "2022-04-08T00:23:08Z")

</div>

@ [Qurmudgeon](https://forums.unrealengine.com/u/Qurmudgeon)

Just drag your PlayerStart up and the ‘BadSize’ will go away.

---

<div class="post-metadata">

**Author:** ![nickknyc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nickknyc/32/681780_2.png) [@nickknyc](https://forums.unrealengine.com/u/nickknyc)\
**Post date:** [April 8, 2022, 12:57pm UTC](https://forums.unrealengine.com/t/vrtemplate-build-lighting-crashes-ue5-adding-landscape-material-build-lighting-crashes-at-exporting-data-33/508936/15 "2022-04-08T12:57:58Z")

</div>

@VictorLerp Thanks so much for the workaround!
