#30

RX 6800 (RDNA2): DXGI_ERROR_DEVICE_RESET (0x887A0007) on world entry in Leila v2.0.0

Openshelbykb2opened 13h ago

Summary

On an AMD Radeon RX 6800 (RDNA2), the game launches to the main menu cleanly on Leila V2 (v2.0.0) and crashes every time right on world entry (within ~1 second of the first >= 500-draw world frame) with DXGI_ERROR_DEVICE_RESET (0x887A0007) / DXGI_ERROR_DEVICE_REMOVED (0x887A0005).

We ran a local diagnostics build (f013302a, LEILA_D3D12_DRED=1 + LEILA_D3D12_DEBUG=1) and bisected the runtime switches. Disabling a specific set of engine GPU switches makes the game enter the world and run stably (tested 72s / 298+ in-world frames, 0 errors).


System & Settings

  • Leila Version: v2.0.0 (release + local diagnostics build at f013302a)
  • GPU: AMD Radeon RX 6800 (16 GB VRAM, driver 32.0.21045.29003)
  • CPU: AMD Ryzen 9 7950X3D 16-Core
  • RAM: 64 GB
  • OS: Windows 11 Pro (Build 26300)
  • Launcher Settings: Series S (--series-s), 1440p (--res 1440), Preset Low / Custom, DLSS off, Frame Gen off, Hardware RT off, Fullscreen on.

Diagnostics Findings (LEILA_D3D12_DRED=1, LEILA_D3D12_DEBUG=1)

  1. DRED: Reports no page fault (no page fault (a hang or a reset, not a bad address)) and empty breadcrumbs (breadcrumbs (done/count, list) []).
  2. Windows Event Log: No Display Event 4101 TDR is recorded.
  3. D3D12 Debug Layer RemoveDevice message:

    DXGI_ERROR_DEVICE_RESET: The hardware took an unreasonable amount of time to execute a command on a different Device Context, or the hardware crashed/hung. ... The current Device Context was NOT executing commands when the hang occurred.

    • Engine log right at removal: the submitting thread was preparing a submission (nothing of ours was on the card) (or 1 submission of ours was still on the card).
  4. Severity-1 D3D12 Debug Layer errors observed before the reset:
    • id=1425: ID3D12CommandQueue1::ExecuteCommandLists: Using CopyTextureRegion ... Resource state (0xC0: NON_PIXEL_SHADER_RESOURCE|PIXEL_SHADER_RESOURCE) ... must be in COMMON state when transitioning from Command List type : D3D12_COMMAND_LIST_TYPE_DIRECT to Command List type : D3D12_COMMAND_LIST_TYPE_COPY.
    • id=538 (3x right before the reset): ID3D12CommandQueue1::ExecuteCommandLists: Using SetComputeRootShaderResourceView ... Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) (promoted from COMMON state) ... is invalid for use as a root shader resource.

Switch Bisection Results So Far

  • Still crashes on world entry (0x887A0007):
    • Stock launcher AMD defaults (LEILA_VIEW_START_REMAINDER=0, LEILA_SIZE_FROM_TABLE=1, LEILA_RELAY_COPY=0).
    • Adding LEILA_UPLOAD_AHEAD=0, LEILA_WAIT_RESIDENT=0.
    • Disabling card copies / page buffers / heap twin / PC FSR (LEILA_CARD_ALL=0, LEILA_CARD_BUFFERS_MB=0, LEILA_PAGE_BUFFERS=0, LEILA_HEAP_TWIN=0, LEILA_PC_FSR=0, LEILA_UPLOAD_AHEAD=0, LEILA_WAIT_RESIDENT=0) — gets 1–2 frames further into world entry, then still resets with 0x887A0007.
  • Confirmed working (entered the world cleanly and ran 72s / 298+ frames with 0 errors):
    • Keeping the 7 switches above at 0 plus disabling these 8 switches (with LEILA_EARLY_DEPTH=1 kept on):
      • LEILA_RELAY=0
      • LEILA_THIN=0
      • LEILA_TEXTURE_POOL=0
      • LEILA_TEX_PARK=0
      • LEILA_NONCOHERENT_NO_BACK=0
      • LEILA_WC_NO_BACK=0
      • LEILA_INDIRECT_WINDOW=0
      • LEILA_PRELUDE_UPLOADS=0

We are continuing to binary-search those 8 switches to isolate the exact culprit switch/subsystem and will follow up with the narrowed result.

Activity

1
shelbykb213h ago

Follow-up after finishing the switch bisection on RX 6800 (32.0.21045.29003):

We narrowed the 8 switches down to LEILA_RELAY:

  • LEILA_RELAY=2 (default) -> crashes with 0x887A0007 right at world entry.
  • LEILA_RELAY=1 -> still crashes with 0x887A0007 right at world entry.
  • LEILA_RELAY=0 alone on top of all other default launcher settings (LEILA_THIN=1, LEILA_CARD_ALL=1, LEILA_PAGE_BUFFERS=3, LEILA_HEAP_TWIN=1, LEILA_PC_FSR=1, LEILA_UPLOAD_AHEAD=1, LEILA_WAIT_RESIDENT=1) fixes the crash completely — verified entering the world and running smoothly in live gameplay with 0 errors.

As a working fix/workaround on AMD RDNA2, setting LEILA_RELAY=0 in leila-settings.txt (with LEILA_MENU_SETTINGS_VERSION=2) or in amd_switches() in launcher/src-tauri/src/launch.rs gets past world entry reliably.