Editor Crash - Assertion failed: UnderlyingResource->GetRefCount() == 1

  • AMD Ryzen 9 5950X 16-Core Processor
  • NVIDIA GeForce RTX 4090
  • Windows 11 (23H2) [10.0.22631.4751]
  • UE 5.5.1

I replaced lined 1313 in D32D12Resources.cpp with the block you provided, here are the last lines of my log file…

[2025.01.31-21.39.02:218][571]LogConfig: Applying CVar settings from Section [ShadingQuality@2] File [Scalability]
[2025.01.31-21.39.02:231][571]LogOptionsCommonImageBase: Warning: Button Clicked
[2025.01.31-21.39.02:251][572]LogRenderer: Display: Recreating Shadow.Virtual.PhysicalPagePool due to size or flags change. This will also drop any cached pages.
[2025.01.31-21.39.02:309][572]LogRenderer: Display: Recreating Shadow.Virtual.PhysicalPagePool due to size or flags change. This will also drop any cached pages.
[2025.01.31-21.39.02:406][573]LogContentStreaming: Texture pool size now 800 MB
[2025.01.31-21.39.02:406][573]LogCsvProfiler: Display: Metadata set : streamingpoolsizemb="800"
[2025.01.31-21.39.02:479][579]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-21.39.02:479][579]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-21.39.02:554][586]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-21.39.02:619][592]LogWindows: Error: appError called: Fatal error: [File:L:\UE\5.5.1\Engine\Source\Runtime\D3D12RHI\Private\D3D12Resources.cpp] [Line: 1323] 
Underlying resource has unexpected ref count 2, name: D3D12RHIObjectUniqueName201, owner name: D3D12RHIObjectUniqueName201

The game crashed when I played PIE mode, and the overall scalability quality was changed from Epic to High from my Options menu. Sometimes the crash occurs randomly while using the editor.

[2025.01.31-23.09.14:124][899]LogLookAtInspectCommonUserWidget: ULookAtInspectCommonUserWidget: Is Inspecting
[2025.01.31-23.09.14:169][902]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 8388608 bytes
[2025.01.31-23.09.14:169][902]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 8388608 bytes
[2025.01.31-23.09.14:169][902]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 8388608 bytes
[2025.01.31-23.09.14:169][902]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 8388608 bytes
[2025.01.31-23.09.14:235][906]LogLookAtInspectCommonUserWidget: ULookAtInspectCommonUserWidget: Is Inspecting
[2025.01.31-23.09.14:260][908]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-23.09.14:486][923]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-23.09.14:672][935]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-23.09.14:784][942]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-23.09.14:892][949]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-23.09.14:919][951]LogD3D12RHI: Display: Temp texture streaming buffer not large enough, needed 16777216 bytes
[2025.01.31-23.09.15:009][957]LogWindows: Error: appError called: Fatal error: [File:L:\UE\5.5.1\Engine\Source\Runtime\D3D12RHI\Private\D3D12Resources.cpp] [Line: 1323] 
Underlying resource has unexpected ref count 2, name: D3D12RHIObjectUniqueName549, owner name: D3D12RHIObjectUniqueName549

This one crashed while interacting with an object

Let me know If I can help with further troubleshooting.