d3d12: a lost device ends the run with 75 and a marker, not a crash #3151
Closed
leonida/mandy
KelboLive wants to merge 2 commits from
github-pr/3151 into main
pull from: github-pr/3151
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3151
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3151"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request closed
Please reopen this pull request to perform a merge.
What and why
A lost D3D12 device currently kills the process.
PresentandResizeBuffersresults are discarded, resource/heap creation treatsDXGI_ERROR_DEVICE_REMOVEDas a refusal, andhost::failcallsTerminateProcess(0x887A0005)— so a driver/PnP stop looks like a crash and the launcher can only report a failure.This makes the loss a defined, recoverable event:
Present,ResizeBuffers, resource and heap creation now classifyDXGI_ERROR_DEVICE_REMOVED/_RESET;host::failuses the new exit 75 only whenGetDeviceRemovedReasonactually reports a loss. OOM and other GPU failures keep the legacy0x887A0005, so they are not mistaken for a loss.<Data>/device-lost.txtatomically (temp →sync_all→ rename), capped at 4 KiB, and logsdevice lost: reason=… hresult=0x… luid=….leonida-device-lost/1,code=75,reason,hresult,unix,pid, plusluid,adapter,frame,what. Free text is percent-encoded.LEONIDA_TEST_DEVICE_LOST_AFTER=<frames>forces the same path for tests, gated totest/diagnosticsbuilds; release binaries ignore it.LEONIDA_DEVICE_LOST_FILE=<Data>\device-lost.txt(with a<parent of data_dir>fallback), so the launcher and runtime agree on the location. The marker is cleared at run start.The launcher side (separate PR) reads the marker and restarts at most twice (10 s, 60 s), cancellable, and never restarts a title crash.
Evidence
On Windows 11, RTX 4070 Ti SUPER:
cargo test -p leonida-gpu --locked lost→ 16 passed, 3 ignored.cargo test -p leonida-gpu --locked -- --test-threads=1→ 705 passed, 59 ignored.cargo test -p leonida -p leonida-hle --lockedpass.tools/d3d12_switches.py --checkpasses (683 names; 643 with comments);check_no_game_datais clean.read_device_lost(verified against the launcher branch).Scope / notes
texture::alias_cast_tests::…flake is pre-existing (2 of 4 runs on cleanmain) and is not this change.host.rs/queue.rs/resource.rsoverlap open #2670/#2847/#2765; the edits are surgical, expect textual rebases.GPUs tested: RTX 4070 Ti SUPER, driver 621.01 (marker and exit path only; no game run)
AI-assisted: yes
Verified PR #3151 (
4e9f179a8) merged cleanly ontomain(acc350745) on Windows 10 x64 (RTX 5070 12 GB, driver 595.79, Rust 1.98.1):python -I scripts/check_no_game_data.pyPASS.python -I tools/d3d12_switches.py --check d3d12/docs/switches.mdPASS.cargo test -p leonida-gpu --features diagnostics --lib --locked lost::-- 9 passed, 0 failed.LEONIDA_TEST_DEVICE_LOST_AFTER=20,diag+diagnostics,dlss,mimalloc, Series S, RTX 5070):leonida.exe run ... --execute --console series-sdirectly exited cleanly at frame 20 withExitCode = 75(no crash dialog) and wrote the expected marker file:ERROR leonida_gpu::host: device lost: reason=DXGI_ERROR_DEVICE_REMOVED hresult=0x887A0005 ... frame=20 what="LEONIDA_TEST_DEVICE_LOST_AFTER=20".One concrete finding (launcher exit-code propagation)
scripts/play-d3d12.ps1->d3d12/scripts/play-nvidia.ps1, the marker file is written properly, butplay-nvidia.ps1returns exit code0instead of75becaused3d12/scripts/play-nvidia.ps1:966-968callsStart-Process -FilePath $leonida ... -NoNewWindow -Waitwithout-PassThruand without propagating$proc.ExitCode(e.g.$p = Start-Process ... -PassThru; exit $p.ExitCode). If callers/harnesses invokeplay-d3d12.ps1expecting exit code75, propagating$p.ExitCodethere closes that gap.host_gpu_failedind3d12/crates/leonida-hle/src/modules/d3d12x.rs.Verdict: PASS on the core exit-75 + marker behavior (note this was a targeted 20-frame injection run, not a 300 s render-path stability run).
AI-assisted: yes (Antigravity).
I reproduced the exit-code finding with the exact two launch tails from
4e9f179a, executed in PowerShell 7.5.4 on Linux against a synthetic child returning0,3, or75. I ran each case with and without-Logand checked that stderr still went to the same destination.For a child returning
75, the unchanged scripts returned0from both entry points. Adding-PassThruandexit $proc.ExitCodetoplay-nvidia.ps1made its direct invocation return75, butplay-d3d12.ps1still returned0when launched with-File. Addingexit $LASTEXITCODEimmediately after the inner call preserved the child status through both levels, in all six status/log combinations. The launcher invokes the outer entry point, so both boundaries matter. PowerShell exit-code semanticsThe fixture exercised the launch wrappers only. The native Windows injection run above supplies the runtime evidence. AI-assisted with OpenAI Codex.
Ran natively on Windows 11, head
4e9f179a8merged into currentmain(3c106eb2f, clean merge). Debug test builds. This adds a real device removal (not the env injection) and a native measurement of the double-report race raised above.Suites on the merge
cargo test -p leonida-gpu --lib -- lostcargo test -p leonida-gpucargo test -p leonida-gpu --features diagnosticscargo test -p leonida -p leonida-hlecargo clippy -p leonida-gpu -p leonida-hle -p leonida --all-targets(also with--features leonida/diagnostics)unused_mutinhost.rsis elsewhere)A real removed device
Throwaway tests, not pushed. A child process makes the host device, calls
ID3D12Device5::RemoveDevice(), then goes through the PR's code.GetDeviceRemovedReasonthen returns0x887A0005.host::fail(...)reason=DXGI_ERROR_DEVICE_REMOVED,hresult=0x887A0005,luidandadapterfilled,frame=0host::fail(...)adapteris the WARP adapter)pool::small::buffer(a heap creation)what=host small-buffer heap creation ...pool::small::bufferThe same child on
main(3c106eb2f), card and WARP alike.pool::small::bufferon the removed deviceNonetwice, the run would go onhost::fail(...), withon_failureset to whathost_gpu_faileddoes onmain0x887A0005So the classification works with a real removal, and
process::exitdid not hang after it here. These children had noon_failureset, so the realhost_gpu_failedwas not part of this table.The double report, native rate
Child processes where threads call
host::device_lostfor the same loss, marker in a fresh temp folder each time, no pause injected. The second table sets anon_failurethat does whathost_gpu_faileddoes before exiting (two lines to stderr and two appends to a crash-log file, thenlost::end), as a stand-in for the app's callback.on_failure)One 2-thread run (in an earlier batch of 200) also left a
device-lost.txt.tmp-<pid>behind. With the second report delayed after the first (requested sleep, 100 runs each, noon_failure):So on this machine the write (create, write,
sync_all, rename) takes a few ms, and a second report inside that window ends the process with 75 and no marker. Whether two threads really report within a few ms of each other in a game run is my reading, not measured. A removed device fails every call made on it, so the presenter and the list threads can easily hit it together. A loser that waits for the writer to finish before it exits (or parks and lets the writer end the process) would close it.When the marker cannot be written
Single report, exit code always 75.
clear()and the rename both fail).tmp-1beside it.tmp-1stays (clear_atlists""and fails).tmp-1.tmp-1removedThe stale-marker case means a launcher can read an older run's marker after a 75. Checking
pidagainst the child it started would catch it.Marker size
20,000 random markers (
whatup to 3,000 characters of ASCII, quotes,%,=, newlines, CJK and emoji;adapterup to 127 UTF-16 units; maximumluid,pid,unixandframe). The largest was 3,818 bytes, none over 4,096, and everyadapterandwhatdecoded back to the input (a prefix of it forwhat). The 1,024-byte cut onwhatalways kept it under 4 KiB, so this never reached the shrink loop. The PR's own test covers that branch.From reading only
Without
LEONIDA_DEVICE_LOST_FILE,run.rswrites<data_dir>/device-lost.txt. Both play scripts set<parent of data_dir>/device-lost.txt. So a launcher that startsleonida.exedirectly, without the variable, looks one folder too high. Andrun.rsnow exits with any nonzero title status, so a title returning 75 gives 75 with no marker. Both are probably fine if the launcher always sets the variable and checks the marker, but no test covers them.Not checked: the play scripts (they use
-ExecutionPolicy Bypass, not run), a real driver reset or TDR,PresentandResizeBufferson a removed device (no swap chain in these tests), the realon_failurecallback ind3d12x.rs(only the stand-in above), and the launcher side.GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
Verified here: it applies, the new module's tests pass, and the app's tests still pass.
The one that matters most is
the_injection_reaches_exit_75_and_writes_the_marker: it means the loss can be provoked without a GPU - and that is exactly what makes this testable at all. The marker's 1024-byte cut on a character boundary and the atomic clear are the two properties a launcher reading the file would be hurt by if they were wrong, and both have a test that passes.Why I looked at this one: a real run of the title this week lost its device - frame times flat at 35.7 ms, then three and a half minutes of medians from 145 to 1,899 ms after 22:03:50, with the log noting the recovery. On
mainthat is a killed process with a truncated log; this turns it into exit 75 and a marker that names the adapter and what happened, which is the difference between "it crashed" and a report someone can act on.What I did not test: a real device removal - the injection switch is as close as this machine gets without the title, and I used it rather than claiming the real path.
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Temporarily closing to free the single-PR slot for a high-severity fix (PSV0 validator rejection). The branch is preserved at
stability/device-loss-exit(0d399d6cf), rebased on current main with all checks green locally; I will reopen this PR once the slot frees. No change in intent or scope.VERIFY-3151 — Windows nativo:
red then green, y el código de salida es el de verdad0d399d6cf—leonida-gpu/src/lost.rs(+74 inhost.rs),apps/leonida/src/run.rs(+34)Ran at the head
Negative control (synthetic): I removed one code from
is_loss(DXGI_ERROR_DRIVER_INTERNAL_ERROR), rebuilt and ran:It bites, and that is the right shape: the predicate is a list of four codes (
DEVICE_REMOVED,DEVICE_HUNG,DEVICE_RESET,DRIVER_INTERNAL_ERROR), and the test enumerates all four plus the ones that must not count — a list is exactly what a mutation can shorten.What the change is: a lost device ends the run with exit 75 and a marker, instead of crashing — and the second test ties it to the launcher's view: the process exit code is the title's, so a launcher or a game-gate can tell "the game ended" from "the device went away". That number is the whole point: without a distinct code, a device loss reads as a normal exit and every script that checks
$LASTEXITCODEsays the run was fine.What I could not test
DXGI_ERROR_DEVICE_REMOVEDon purpose is a run with a fault injection; the tests driveis_losswith the codes.Written with an AI assistant.
Current-head check of
8894c581onb053a181. The Windows MSVC synthetic child under Wine exited 75, wrote a complete marker and emitted the canonicaldevice lost: reason=… hresult=…line. All ninelost::testspassed.Gate follow-up for the new diagnostic. I replayed the exact line and exit status through
tools/game_gate.pywith generated frame data andgame_exitedimmediately afterstop_requested. When the new line is the only loss diagnostic, the gate reportsPASSwithcrash.kind=noneandexit.kind=other. The same applies to a launcher-only exit event with #3218’s fallback. The normal HLE callback also emitsLeonida: host GPU failure. Including that older line makes the stock gate correctly reportFAIL / device_lost, whileexit.kindis stillother.A local control that also recognizes the new line reports
FAIL / device_lostin the fallback case and correctly labels the corroborated exit 75. It leaves an uncorroborated 75 asotherbecause a title can return that status itself. All 38 gate tests passed with #3218 in the local control. Synthetic gate fixtures and runtime injection only.AI-assisted with OpenAI Codex.
RUN (in game, third party, batch of four pull requests), each head merged with
git merge --no-ffonto main6e9799050, in one build: #26424b4d99a82, #31518894c5812, #33230c836e32e, #332402f37bcf8. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.4 fps on other runs in the last day: a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; arrival in the world was driven by keys and not checked on pictures. The precompile before the world took 529 s, against about 110 s for main alone: the translator change in #3324 left the pipeline cache cold. Switches that are off by default (for example #3323's own-pass timing) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only. #3151 changes what happens on a lost device; no device was lost, so that path was not exercised.
AI-assisted (Claude Code, Claude Opus 5.5).
Fixed in
5524fdcdc.The cause was exactly as you described:
WRITTENwas anAtomicBoolswapped beforewrite_to, so a second caller returnedfalseand could reachlost::end(75)while the first was still writing. It is now aMutex<bool>held for the whole publication: a losing caller blocks until the marker is renamed into place, then returnsfalse.use_fileresets it under the same lock, and I kept the lock orderWRITTEN → FILEin both functions to avoid an inversion.Regression test:
a_concurrent_caller_returns_only_after_the_marker_existsruns two threads per iteration (64 iterations); a caller that did not write asserts the marker already exists at the moment it returns. I reproduced the red by temporarily restoring the claim-before-write order with a 20 ms pause after the claim — the test fails there, and passes with the fix.lost::is now 17/0/3 and the serialleonida-gpusuite is 726/0/59.Two notes on the rest of your review:
modules/d3d12x.rsas you said. Whichever lands second needs to rebase that callback; I did not touch it here.The rebased head is
5524fdcdcon current main withswitches.mdregenerated (732 names). CI is restarting on it.Rebased onto current main (
fba6f09ce) at804ac5d7b.Resolved the
modules/d3d12x.rsconflict with #3146 as you suggested:flush_on_gpu_failure()now runs before either exit path, then the 75 path logs and callslost::end(75), then the legacyTerminateProcess(DXGI_ERROR_DEVICE_REMOVED)for other GPU failures. This also answers your pipeline-book note for the merged callback.lost::17/0/3, serialleonida-gpu735/0/59,d3d12_switches.py --checkclean. CI is restarting on the new head.Closing as a duplicate of #3450, which is the same change re-posted by the same author on this forge: same files, the newer one adds lifecycle.rs on top. Review and merge happen on #3450.
Closed by Moon's agent during PR triage, on Moon's written authorization.