Crash: There is no active graphics context on this command list. There may be a missing call to SwitchPipeline()

Hi,

I use Unreal 5.2.1 (Source) and package my project. It’s running in the editor with no error. It also works when I get development build. Whenever I set the configuration to shipping, i receive this error in the beginning and it crashes.

My pc configuration;
|—|—|
|Processor|12th Gen Intel(R) Core™ i9-12900K 3.20 GHz|
|Installed RAM|64.0 GB (63.8 GB usable)|
Geforce 4090

[2024.06.28-19.56.59:292][  0]LogD3D12RHI: Display: Not using pipeline state disk cache per r.D3D12.PSO.DiskCache=0
[2024.06.28-19.56.59:292][  0]LogD3D12RHI: Display: Not using driver-optimized pipeline state disk cache per r.D3D12.PSO.DriverOptimizedDiskCache=0
[2024.06.28-19.56.59:296][  0]LogRHI: Texture pool is 14725 MB (70% of 21036 MB)
[2024.06.28-19.56.59:296][  0]LogD3D12RHI: Async texture creation enabled
[2024.06.28-19.56.59:296][  0]LogD3D12RHI: RHI has support for 64 bit atomics
[2024.06.28-19.56.59:316][  0]LogWindows: Error: appError called: Assertion failed: GraphicsContext [File:J:\Unreal Engine\SourceEngine\UnrealEngine\Engine\Source\Runtime\RHI\Public\RHICommandList.h] [Line: 755] 
There is no active graphics context on this command list. There may be a missing call to SwitchPipeline().

Is there anyone experienced a similar issue like this?

This might help