RX 6800 XT (RDNA 2): fix device removals (TDR) about 15 s into play #19

Closed
github-bot wants to merge 4 commits from github-bot/gh-19 into main AGit
Owner

@⁠YamoriCou on GitHub · 2026-12-02 19:58 UTC · original
YamoriCou:main → main · +22 −6 · 3 files · 4 commits · closed without merging

PC: Ryzen 7 9800X3D, RX 6800 XT 16 GB, 64 GB RAM, latest Adrenalin, Series X profile. With the defaults, every run ended in a device removal (0x887A0007) about 15 s into play. Found with the debug layer (VICTORY_D3D12_DEBUG=1) and one-setting-at-a-time runs:

  1. The card compare goes in the same ExecuteCommandLists call as the copies into those host copies. Debug layer id 538: COPY_DEST (promoted from COMMON) is invalid for a root SRV. Fix: cut the call before the compare list (host.rs). The same bug is in Whiplash AMD and other forks.
  2. VICTORY_JOIN_SEND: joint lists resent before their fence passed (id 553), and joining the calls brings point 1 back. Removed from the soft-pages set.
  3. VICTORY_JOIN_PARTS=8: the actual crash. Every run with it removed the device. Without it, none did. Removed from NOT_SAFE.
  4. VICTORY_PLANE_NOW: id 1003 on "depth plane twin" (changed to writable while bound in a static table). Set to 0.
  5. VICTORY_CARD_AWAKE=0 in every run that held (not proven harmful).

Result: stable, ~19 fps native, ~38 with FSR 3.1/4 frame generation, FSR 4.1.2 Performance. THIN, UPLOAD_AHEAD, the soft page table and the streaming limits all work fine. Stability: 45 min. session (driving, interiors, modshop, a respawn, cutscenes) with no device removal; I ended it, not a crash. 21.3 fps native average (18-25), ~43 with frame generation.

Visual bugs seen on RX 6800 XT (with the patch, ~45 min. session):

  1. Moving vehicle parts (doors, hood) are drawn in the wrong place, often fully black: the hood stays open after the modshop (also while driving), the door is missing or floats black next to the car when getting in or out, and a black soft-edged shape covers parked cars from some angles. Opening and closing doesn't reset it. Driving far enough away for the car to unload and coming back fixes it (the hood is closed again).
  2. Noisy white specks and blue-white haze in bright interiors (sunlight or strong lamps). Clean at night.
  3. Indoors, about 550 of 3,300 draws per frame are dropped "without a host pipeline (0 being made)". Outdoors about 5%.
    1796240264121_image

Still open: frame generation doubles the player car's rear (plate and bumper, offset downward) while driving straight. It's gone with FG off. Screenshot attached.
1796232987900_image

Update: the same patch applies cleanly to ReVIctory 0.2.0. With it plus "Extra GPU optimizations" on, my RX 6800 XT runs at ~27 fps native (~54 with FSR frame generation), stable, no device removals. Also: a too-small pagefile caused micro stutters and vanishing trees every ~10 s ("commit valve" warning in the log); raising the pagefile to 16–48 GB fixed it.

**@⁠YamoriCou** on GitHub · 2026-12-02 19:58 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19) `YamoriCou:main` → `main` · +22 −6 · 3 files · 4 commits · closed without merging PC: Ryzen 7 9800X3D, RX 6800 XT 16 GB, 64 GB RAM, latest Adrenalin, Series X profile. With the defaults, every run ended in a device removal (0x887A0007) about 15 s into play. Found with the debug layer (VICTORY_D3D12_DEBUG=1) and one-setting-at-a-time runs: 1. The card compare goes in the same ExecuteCommandLists call as the copies into those host copies. Debug layer id 538: COPY_DEST (promoted from COMMON) is invalid for a root SRV. Fix: cut the call before the compare list (host.rs). The same bug is in Whiplash AMD and other forks. 2. VICTORY_JOIN_SEND: joint lists resent before their fence passed (id 553), and joining the calls brings point 1 back. Removed from the soft-pages set. 3. VICTORY_JOIN_PARTS=8: the actual crash. Every run with it removed the device. Without it, none did. Removed from NOT_SAFE. 4. VICTORY_PLANE_NOW: id 1003 on "depth plane twin" (changed to writable while bound in a static table). Set to 0. 5. VICTORY_CARD_AWAKE=0 in every run that held (not proven harmful). Result: stable, ~19 fps native, ~38 with FSR 3.1/4 frame generation, FSR 4.1.2 Performance. THIN, UPLOAD_AHEAD, the soft page table and the streaming limits all work fine. Stability: 45 min. session (driving, interiors, modshop, a respawn, cutscenes) with no device removal; I ended it, not a crash. 21.3 fps native average (18-25), ~43 with frame generation. Visual bugs seen on RX 6800 XT (with the patch, ~45 min. session): 1. Moving vehicle parts (doors, hood) are drawn in the wrong place, often fully black: the hood stays open after the modshop (also while driving), the door is missing or floats black next to the car when getting in or out, and a black soft-edged shape covers parked cars from some angles. Opening and closing doesn't reset it. Driving far enough away for the car to unload and coming back fixes it (the hood is closed again). 2. Noisy white specks and blue-white haze in bright interiors (sunlight or strong lamps). Clean at night. 3. Indoors, about 550 of 3,300 draws per frame are dropped "without a host pipeline (0 being made)". Outdoors about 5%. <img width="2505" height="1438" alt="1796240264121_image" src="https://github.com/user-attachments/assets/54a2134e-f31f-4713-affc-7afea063eb9d" /> Still open: frame generation doubles the player car's rear (plate and bumper, offset downward) while driving straight. It's gone with FG off. Screenshot attached. <img width="2558" height="1439" alt="1796232987900_image" src="https://github.com/user-attachments/assets/04e4fda4-c972-488f-91a4-5ad8a5276c21" /> Update: the same patch applies cleanly to ReVIctory 0.2.0. With it plus "Extra GPU optimizations" on, my RX 6800 XT runs at ~27 fps native (~54 with FSR frame generation), stable, no device removals. Also: a too-small pagefile caused micro stutters and vanishing trees every ~10 s ("commit valve" warning in the log); raising the pagefile to 16–48 GB fixed it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 19:58:47 +00:00
Author
Owner

@⁠AxLess1 on GitHub · 2026-12-03 16:40 UTC · original

Question Have you had any experience with your device Restarting?

**@⁠AxLess1** on GitHub · 2026-12-03 16:40 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7385235328) Question Have you had any experience with your device Restarting?
Author
Owner

@⁠YamoriCou on GitHub · 2026-12-03 17:10 UTC · original

Question Have you had any experience with your device Restarting?

Yes. Before the patch, every run ended in a GPU device removal/reset (DXGI_ERROR_DEVICE_RESET, 0x887A0007): the driver recovered (TDR) and the game closed, about 15 s into play or at the first cutscene. The PC itself never restarted. With the changes in this PR I played a 45 min session without a single device removal. If you get the same thing, try running with VICTORY_JOIN_PARTS=1 and see if it stops. That setting was the actual trigger on my RX 6800 XT. Which GPU do you have?

**@⁠YamoriCou** on GitHub · 2026-12-03 17:10 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7386092527) > Question Have you had any experience with your device Restarting? Yes. Before the patch, every run ended in a GPU device removal/reset (DXGI_ERROR_DEVICE_RESET, 0x887A0007): the driver recovered (TDR) and the game closed, about 15 s into play or at the first cutscene. The PC itself never restarted. With the changes in this PR I played a 45 min session without a single device removal. If you get the same thing, try running with VICTORY_JOIN_PARTS=1 and see if it stops. That setting was the actual trigger on my RX 6800 XT. Which GPU do you have?
Author
Owner

@⁠AxLess1 on GitHub · 2026-12-03 18:23 UTC · original

Im on a laptop Rx 6700m while the game doesn't crash immediately there after a bit im talking maybe 3 - 5 mins it freezes for half a second and boom laptop is restarting. Not sure why event viewer doesn't tell me anything and the logs don't record any evident errors ill try VICTORY_JOIN_PARTS=1 and see if it does anything

**@⁠AxLess1** on GitHub · 2026-12-03 18:23 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7388071634) Im on a laptop Rx 6700m while the game doesn't crash immediately there after a bit im talking maybe 3 - 5 mins it freezes for half a second and boom laptop is restarting. Not sure why event viewer doesn't tell me anything and the logs don't record any evident errors ill try VICTORY_JOIN_PARTS=1 and see if it does anything
Author
Owner

@⁠YamoriCou on GitHub · 2026-12-03 18:37 UTC · original

Laptop restarting (not just the game closing) points to either a hidden blue screen or a power/thermal shutdown rather than the usual driver crash. A few things worth checking:

  1. Look in C:\Windows\Minidump – if there's a new .dmp file from the time of the restart, it was a blue screen (likely VIDEO_TDR_FAILURE).
  2. In Event Viewer → Windows Logs → System, look for "Kernel-Power 41" or "WHEA-Logger" around that time.
  3. Watch GPU/CPU temps (e.g. with HWiNFO) while playing, keep the charger plugged in, and try capping the frame rate at 30.
  4. Use the latest AMD Adrenalin driver from amd.com if your laptop allows it, not the manufacturer's older one.
  5. Are you on ReVIctory 0.2.0 with this PR's patch applied? In my testing VICTORY_JOIN_PARTS above 1 was what caused the crashes on RDNA 2, so JOIN_PARTS=1 is a good test.
**@⁠YamoriCou** on GitHub · 2026-12-03 18:37 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7388425634) Laptop restarting (not just the game closing) points to either a hidden blue screen or a power/thermal shutdown rather than the usual driver crash. A few things worth checking: 1. Look in C:\Windows\Minidump – if there's a new .dmp file from the time of the restart, it was a blue screen (likely VIDEO_TDR_FAILURE). 2. In Event Viewer → Windows Logs → System, look for "Kernel-Power 41" or "WHEA-Logger" around that time. 3. Watch GPU/CPU temps (e.g. with HWiNFO) while playing, keep the charger plugged in, and try capping the frame rate at 30. 4. Use the latest AMD Adrenalin driver from amd.com if your laptop allows it, not the manufacturer's older one. 5. Are you on ReVIctory 0.2.0 with this PR's patch applied? In my testing VICTORY_JOIN_PARTS above 1 was what caused the crashes on RDNA 2, so JOIN_PARTS=1 is a good test.
Author
Owner

@⁠AxLess1 on GitHub · 2026-12-03 19:02 UTC · original

thats the thing its not a blue screen event viewer report it as The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly. (minidump is empty) BugcheckCode 0 as for temps they relatively normal and drivers are up to date and yep on ReVIctory 0.2.0 with this pr PR's patch applied? and JOIN_PARTS=1 gave the same result . im at a loss xD my best clue is maybe a memory issue i think its the reserved mem for the system but who know

**@⁠AxLess1** on GitHub · 2026-12-03 19:02 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7389062892) thats the thing its not a blue screen event viewer report it as The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly. (minidump is empty) BugcheckCode 0 as for temps they relatively normal and drivers are up to date and yep on ReVIctory 0.2.0 with this pr PR's patch applied? and JOIN_PARTS=1 gave the same result . im at a loss xD my best clue is maybe a memory issue i think its the reserved mem for the system but who know
Author
Owner

@⁠YamoriCou on GitHub · 2026-12-03 19:47 UTC · original · edited 2026-12-03 19:51 UTC

BugcheckCode 0 with an empty minidump means Windows didn't actually crash – the laptop basically hard-reset or lost power. Two things worth trying:

  1. Make the pagefile bigger (the pagefile is extra "backup memory" Windows keeps on your drive; the game uses a lot of it). This fixed stutters for me:

-Press Win + R, type sysdm.cpl, press Enter
-Advanced tab → under Performance click Settings
-Advanced tab again → under Virtual memory click Change
-Untick "Automatically manage paging file size"
-Select your C: drive → Custom size → Initial: 16384, Maximum: 49152
-Click Set → OK → restart the laptop

You can check your ReVIctory log right before the reboot for a commit valve warning.

Also, how much RAM does your laptop have? (Task Manager → Performance → Memory)

  1. Lower the power load: set AMD Adrenalin → Performance → Tuning back to Default, switch your laptop's performance mode from Turbo to Balanced, cap the frame rate at 30 and turn frame generation off. If the reboots stop, it was a power spike.

If it still restarts, try another heavy game for 10+ minutes. If that reboots too, it's the laptop itself, not ReVIctory.

**@⁠YamoriCou** on GitHub · 2026-12-03 19:47 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7390240674) · edited 2026-12-03 19:51 UTC BugcheckCode 0 with an empty minidump means Windows didn't actually crash – the laptop basically hard-reset or lost power. Two things worth trying: 1. Make the pagefile bigger (the pagefile is extra "backup memory" Windows keeps on your drive; the game uses a lot of it). This fixed stutters for me: -Press Win + R, type sysdm.cpl, press Enter -Advanced tab → under Performance click Settings -Advanced tab again → under Virtual memory click Change -Untick "Automatically manage paging file size" -Select your C: drive → Custom size → Initial: 16384, Maximum: 49152 -Click Set → OK → restart the laptop You can check your ReVIctory log right before the reboot for a commit valve warning. Also, how much RAM does your laptop have? (Task Manager → Performance → Memory) 2. Lower the power load: set AMD Adrenalin → Performance → Tuning back to Default, switch your laptop's performance mode from Turbo to Balanced, cap the frame rate at 30 and turn frame generation off. If the reboots stop, it was a power spike. If it still restarts, try another heavy game for 10+ minutes. If that reboots too, it's the laptop itself, not ReVIctory.
Author
Owner

@⁠AxLess1 on GitHub · 2026-12-03 20:33 UTC · original

I have 64gb or ram ddr4 My custom sizes were already set to initial = 32768 and max = 49152 as for power loss i'd say highly unlikely since i play other games that eats my gpu cpu and ram more than what gta does atm for example Star citizen that game is very hardware intensive and have never had a random shut off

**@⁠AxLess1** on GitHub · 2026-12-03 20:33 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7391427487) I have 64gb or ram ddr4 My custom sizes were already set to initial = 32768 and max = 49152 as for power loss i'd say highly unlikely since i play other games that eats my gpu cpu and ram more than what gta does atm for example Star citizen that game is very hardware intensive and have never had a random shut off
Author
Owner

@⁠YamoriCou on GitHub · 2026-12-03 20:43 UTC · original

A hard reset with BugcheckCode 0 and no dump can't really be caused by software alone – it's usually hardware/firmware giving out under a specific kind of load. ReVIctory stresses things differently from normal games (lots of CPU threads translating code, unusual memory and GPU patterns), so it can expose a weak spot that Star Citizen doesn't. Things that could narrow it down:

  1. In the ReVIctory launcher set Worker threads lower (e.g. half your cores) instead of Auto – if the reboots stop or take longer, it's CPU/power related.
  2. Check whether your laptop's own software (Armoury Crate, Lenovo Vantage, etc.) has an undervolt or "extreme" CPU mode on, and turn it off. A BIOS update is also worth checking.
  3. Run a memory test (Windows Memory Diagnostic, or TestMem5) and a CPU stress test like OCCT with AVX for 15–20 minutes. If either reboots the laptop, you've found the culprit.
**@⁠YamoriCou** on GitHub · 2026-12-03 20:43 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7391698179) A hard reset with BugcheckCode 0 and no dump can't really be caused by software alone – it's usually hardware/firmware giving out under a specific kind of load. ReVIctory stresses things differently from normal games (lots of CPU threads translating code, unusual memory and GPU patterns), so it can expose a weak spot that Star Citizen doesn't. Things that could narrow it down: 1. In the ReVIctory launcher set Worker threads lower (e.g. half your cores) instead of Auto – if the reboots stop or take longer, it's CPU/power related. 2. Check whether your laptop's own software (Armoury Crate, Lenovo Vantage, etc.) has an undervolt or "extreme" CPU mode on, and turn it off. A BIOS update is also worth checking. 3. Run a memory test (Windows Memory Diagnostic, or TestMem5) and a CPU stress test like OCCT with AVX for 15–20 minutes. If either reboots the laptop, you've found the culprit.
Author
Owner

@⁠AxLess1 on GitHub · 2026-12-03 21:11 UTC · original

Currently testing mem using testmem5 ill let you know if somethings up ( BTW thanks For at least helping xD)

**@⁠AxLess1** on GitHub · 2026-12-03 21:11 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7392420815) Currently testing mem using testmem5 ill let you know if somethings up ( BTW thanks For at least helping xD)
Author
Owner

@⁠AxLess1 on GitHub · 2026-12-03 22:18 UTC · original

haven't check #1 yet but i finished TestMem5 test came back with 0 error tho at the end my driver did get a timeout and went into safe mode tho i think that is because while the mem test was running i was uning browser with 15+ tabs open .... and as for bios its up to date currently doing the stress test been 10 mins on Avx Pretty Stable so far

**@⁠AxLess1** on GitHub · 2026-12-03 22:18 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7394022910) haven't check #1 yet but i finished TestMem5 test came back with 0 error tho at the end my driver did get a timeout and went into safe mode tho i think that is because while the mem test was running i was uning browser with 15+ tabs open .... and as for bios its up to date currently doing the stress test been 10 mins on Avx Pretty Stable so far
Author
Owner

@⁠AxLess1 on GitHub · 2026-12-03 22:29 UTC · original · edited 2026-12-03 22:33 UTC

was running OCCT after 15 mins Driver Crash but no windows restart width="275" height="184" alt="image" src="https://github.com/user-attachments/assets/be1d49a3-3981-494c-9738-b29650aa22cf" />
but OCCT says no errors not sure if thats important Could this be because my laptop also has a Igpu?

**@⁠AxLess1** on GitHub · 2026-12-03 22:29 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7394279380) · edited 2026-12-03 22:33 UTC was running OCCT after 15 mins Driver Crash but no windows restart width="275" height="184" alt="image" src="https://github.com/user-attachments/assets/be1d49a3-3981-494c-9738-b29650aa22cf" /> but OCCT says no errors not sure if thats important Could this be because my laptop also has a Igpu?
Author
Owner

@⁠YamoriCou on GitHub · 2026-12-03 22:36 UTC · original

The driver timing out during TestMem5 and OCCT AVX (tests that hardly use the GPU) is a big clue – it points to the GPU/driver being unstable rather than RAM or CPU. On laptops the CPU and GPU share one power budget, so heavy CPU load can starve the GPU. Things to try:

  1. AMD Adrenalin → Performance → Tuning → reset to Default. If it's already default, try lowering the max GPU frequency by ~5–10% (or a slight undervolt is NOT advised – lower clocks instead).
  2. Do a clean driver reinstall: AMD Cleanup Utility (or DDU in safe mode), then the latest Adrenalin.
  3. Update the integrated (Ryzen) graphics driver too, and if your laptop has a MUX switch / "dGPU only" mode, try that.
  4. Then run OCCT again (the GPU 3D test too). If the driver no longer times out, try the game.
**@⁠YamoriCou** on GitHub · 2026-12-03 22:36 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7394438287) The driver timing out during TestMem5 and OCCT AVX (tests that hardly use the GPU) is a big clue – it points to the GPU/driver being unstable rather than RAM or CPU. On laptops the CPU and GPU share one power budget, so heavy CPU load can starve the GPU. Things to try: 1. AMD Adrenalin → Performance → Tuning → reset to Default. If it's already default, try lowering the max GPU frequency by ~5–10% (or a slight undervolt is NOT advised – lower clocks instead). 2. Do a clean driver reinstall: AMD Cleanup Utility (or DDU in safe mode), then the latest Adrenalin. 3. Update the integrated (Ryzen) graphics driver too, and if your laptop has a MUX switch / "dGPU only" mode, try that. 4. Then run OCCT again (the GPU 3D test too). If the driver no longer times out, try the game.
github-bot closed this pull request 2026-12-04 02:03:13 +00:00
Author
Owner

@⁠ReTerryDavis on GitHub · 2026-12-04 02:02 UTC · original

Closing because this is outdated with conflicts, breaks the launcher/play.ps1 parity test, and disables VICTORY_JOIN_PARTS, VICTORY_JOIN_SEND, and VICTORY_PLANE_NOW globally for all GPUs. Thanks for the D3D12 debug-layer diagnosis on card.check (ID 538) -- that state-promotion issue is best addressed with a targeted barrier/split fix.

**@⁠ReTerryDavis** on GitHub · 2026-12-04 02:02 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/19#issuecomment-7398500858) Closing because this is outdated with conflicts, breaks the launcher/`play.ps1` parity test, and disables `VICTORY_JOIN_PARTS`, `VICTORY_JOIN_SEND`, and `VICTORY_PLANE_NOW` globally for all GPUs. Thanks for the D3D12 debug-layer diagnosis on `card.check` (ID 538) -- that state-promotion issue is best addressed with a targeted barrier/split fix.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.