# Shipping build crashes with DX12 and Raytracing enabled

**URL:** <https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567>\
**Category:** Rendering\
**Tags:** Ray-Tracing, unreal-engine, crash, Rendering, dx12, question\
**Created:** [November 19, 2024, 3:42am UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567 "2024-11-19T03:42:09Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![leodavi3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leodavi3d/32/983833_2.png) [@leodavi3d](https://forums.unrealengine.com/u/leodavi3d)\
**Post date:** [December 16, 2024, 10:27pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/25 "2024-12-16T22:27:49Z")

</div>

Someone said in another forum that this problem is caused by Intel 13th and 14th issues…is that true? I have i9 13900k and getting same error after launch compiled game in UE 5.5.1.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/1/2b12c74d4f370b962bf4d33abe51931994740eca.png)

but for some reason, if I ignore the message I can continue to play normally…

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [December 16, 2024, 11:30pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/26 "2024-12-16T23:30:50Z")

</div>

Nope. AMD 3950x over here.

I can continue “playing” too, but only for some seconds.

---

<div class="post-metadata">

**Author:** ![alexaurius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexaurius](https://forums.unrealengine.com/u/alexaurius)\
**Post date:** [December 17, 2024, 5:29pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/27 "2024-12-17T17:29:31Z")

</div>

I had turned on megalights and started getting this problem. Disabling megalights in the Project Settings and unchecking the megalights box in the individual lights in the scene didn’t completely disable it. What seemed to fix it for me was adding “r.MegaLights.Allowed=0” to the DefaultEngine.ini.

---

<div class="post-metadata">

**Author:** ![Phreezer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phreezer](https://forums.unrealengine.com/u/Phreezer)\
**Post date:** [December 17, 2024, 11:12pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/28 "2024-12-17T23:12:43Z")

</div>

Adding “r.ShaderPipelineCache.Enabled=0  
r.ShaderPipelineCache.StartupMode=0” to DefaultEngine.ini and deleting `%localappdata%\<ProjectName>\Saved\<ProjectName>_PCD3D_SM6.upipelinecache` worked for me as well. Just adding feedback. Thanks!

---

<div class="post-metadata">

**Author:** ![1023Technology](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1023Technology](https://forums.unrealengine.com/u/1023Technology)\
**Post date:** [December 21, 2024, 2:16pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/29 "2024-12-21T14:16:36Z")

</div>

Hi! I have updated to version 5.5.1, but the issue still persists,too.

---

<div class="post-metadata">

**Author:** ![atzepenq](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/atzepenq/32/920906_2.png) [@atzepenq](https://forums.unrealengine.com/u/atzepenq)\
**Post date:** [December 21, 2024, 3:32pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/30 "2024-12-21T15:32:20Z")

</div>

thanks! works for me too.

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [December 21, 2024, 3:57pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/31 "2024-12-21T15:57:56Z")

</div>

r.ShaderPipelineCache.SaveUserCache=0, as one user already said, seems to be enough. No need to use more cvars.

---

<div class="post-metadata">

**Author:** ![hartworx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hartworx](https://forums.unrealengine.com/u/hartworx)\
**Post date:** [December 21, 2024, 7:43pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/32 "2024-12-21T19:43:00Z")

</div>

indeed solves the issue. thank you.

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [December 23, 2024, 9:39am UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/33 "2024-12-23T09:39:58Z")

</div>

Indeed! I’m glad you got a solution for this! I know it’s been frustrating for me too.

---

<div class="post-metadata">

**Author:** ![SaOk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaOk](https://forums.unrealengine.com/u/SaOk)\
**Post date:** [December 24, 2024, 5:56pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/34 "2024-12-24T17:56:56Z")

</div>

Still not working for me. :S Does that require megalights to be set off? Tried to add allowedconfigfiles in defaultgame.ini but not sure if it have efffect.

---

<div class="post-metadata">

**Author:** ![Demon\_Day](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Demon\_Day](https://forums.unrealengine.com/u/Demon_Day)\
**Post date:** [December 25, 2024, 4:00pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/35 "2024-12-25T16:00:34Z")

</div>

Try off “Share Material Shader Code” in ProjectSettings. It’s help to me

---

<div class="post-metadata">

**Author:** ![HomerSteam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HomerSteam](https://forums.unrealengine.com/u/HomerSteam)\
**Post date:** [January 1, 2025, 2:09am UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/36 "2025-01-01T02:09:08Z")

</div>

5.5.1 has the issue still

---

<div class="post-metadata">

**Author:** ![IronicParadox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ironicparadox/32/1194531_2.png) [@IronicParadox](https://forums.unrealengine.com/u/IronicParadox)\
**Post date:** [January 1, 2025, 10:14am UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/37 "2025-01-01T10:14:12Z")

</div>

> [@Demon\_Day](#):
>
> Try off “Share Material Shader Code” in ProjectSettings.

That worked for me, though I don’t fully understand the ramifications of disabling the option. I noticed that the .upipelinecache file doesn’t get generated in the localappdata/project/saved/ folder anymore.

Does this mean that it’s having to recompile the shaders on load every time, if that setting is disabled?

---

<div class="post-metadata">

**Author:** ![Paralex\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Paralex\_Studios](https://forums.unrealengine.com/u/Paralex_Studios)\
**Post date:** [January 4, 2025, 2:38pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/38 "2025-01-04T14:38:34Z")

</div>

Seems to have fixed it! Thanks!

---

<div class="post-metadata">

**Author:** ![Alkbabic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alkbabic](https://forums.unrealengine.com/u/Alkbabic)\
**Post date:** [January 6, 2025, 6:15pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/39 "2025-01-06T18:15:53Z")

</div>

> [@Demon\_Day](#):
>
> Share Material Shader Code

This for me also works. It faster load game, but seems about 10-20 procents your game use more space on SSD or HDD (because it not compresing some files, how I see…

---

<div class="post-metadata">

**Author:** ![togaykurtulus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@togaykurtulus](https://forums.unrealengine.com/u/togaykurtulus)\
**Post date:** [January 8, 2025, 6:54pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/40 "2025-01-08T18:54:02Z")

</div>

Unfurtunalty , It is still there. Thats only temporary solution and unfurtunatly it hits the release plan of the projects.

---

<div class="post-metadata">

**Author:** ![reallyhiccup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reallyhiccup](https://forums.unrealengine.com/u/reallyhiccup)\
**Post date:** [January 10, 2025, 3:01pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/41 "2025-01-10T15:01:36Z")

</div>

Same here, I’m experiencing the same issue even with the 5.5.1

---

<div class="post-metadata">

**Author:** ![pdmk1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pdmk1](https://forums.unrealengine.com/u/pdmk1)\
**Post date:** [January 10, 2025, 4:34pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/42 "2025-01-10T16:34:33Z")

</div>

worked also for me. thank you

---

<div class="post-metadata">

**Author:** ![McModan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@McModan](https://forums.unrealengine.com/u/McModan)\
**Post date:** [January 16, 2025, 5:40pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/43 "2025-01-16T17:40:03Z")

</div>

> [@Miguel1900](#):
>
> r.ShaderPipelineCache.SaveUserCache=0,

So - what exactly is the solution (temporary as it might be) ? Turn off Megalights? Or just r.ShaderPipelineCache.SaveUserCache=0 is enough?

or is it r.MegaLights.Allowed=0” to the DefaultEngine.ini. ?

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [January 16, 2025, 8:47pm UTC](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567/44 "2025-01-16T20:47:51Z")

</div>

That only cvar with Megalights ON worked for me

[Previous page](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567.md?page=1)

[Next page](https://forums.unrealengine.com/t/shipping-build-crashes-with-dx12-and-raytracing-enabled/2134567.md?page=3)
