AMD/RADV + 8 GB: boot ends at 54 s with a null write at game+0x2215c35, with or without the shader library #1915
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
Reference
No Branch/Tag specified
main
github-pr/3295
beta
docs/changelog-3483-3500
github-pr/3294
github-pr/2975
github-pr/2815
feat/gate-driver-start
feat/skip-pipelines-release
perf/lazy-compare
perf/mwaitx-wait
test/prio-ceiling-main
fix/ab-cpu-stdout
fix/gate-old-crashes
diag/ab-cpu
test/main-0312
github-pr/3291
diag/indirect-clamp-census
feat/barrier-enhanced
perf/texture-frame-ceiling
perf/dstorage-threads
fix/console-queue-dma-tables
fix/port-descriptors-record-parts
fix/frame-waits-fence
fix/console-sampler-words
fix/graphics-userdata-spill
fix/xg-reserved-layout-rotation
fix/barrier-console-flags
fix/switches-wait-test-child
test/list-value-waits
test/lot-gxdk-0412
fix/bvh-compacted-size
docs/i18n-quickstarts
feat/native-pipeline-slots
fix/clippy-leonida-gpu
fix/list-value-producers
fix/descriptor-page-straddle
fix/xmem-low-window
fix/ffx-jitter-never-zero
fix/run-stdout-closed
github-pr/2892
github-pr/2896
feat/warm-save-every
github-pr/2980
github-pr/2994
github-pr/3005
github-pr/3010
github-pr/3136
github-pr/3303
github-pr/3220
github-pr/3143
github-pr/3330
github-pr/3226
github-pr/3187
carry/3395
github-pr/2946
github-pr/2947
github-pr/2945
github-pr/2983
github-pr/3001
github-pr/3372
github-pr/3128
github-pr/3296
github-pr/2588
github-pr/3119
github-pr/3378
fix/crash-diagnostics
feat/dlss-mip-bias
fix/retired-out-of-order
fix/dxr-postbuild-barrier
fix/amd-relay-default
fix/removed-report-wait
feat/heap-twin
feat/vram-margin
github-pr/2472
github-pr/3123
github-pr/3088
assets/annonce-v1
github-pr/2794
github-pr/3300
github-pr/3304
github-pr/3308
github-pr/3367
github-pr/3369
fix/launcher-dlss-diagnostics
github-pr/3269
github-pr/2957
github-pr/3205
fix/crash-zero-guard
github-pr/3185
github-pr/3099
github-pr/3104
github-pr/3348
github-pr/3379
github-pr/3377
perf/darner-title-priority-ceiling
github-pr/3376
gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github-pr/3373
github-pr/3368
github-pr/3198
gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github-pr/3346
github-pr/3375
github-pr/2958
github-pr/3151
github-pr/3307
github-pr/3278
github-pr/3374
fix/runtime-test-conservative-fixtures
github-pr/3366
ci/shard-semantic-linux
github-pr/3354
docs/fg-limit-fps-switch
github-pr/3365
fix/read-file-hard-link
github-pr/3364
fix/book-slot-heap-never-read
github-pr/3361
github-pr/3263
github-pr/3360
github-pr/3353
github-pr/3331
fix/alias-later-queued-submissions
github-pr/3352
github-pr/3228
github-pr/3349
claude/gallant-sagan-aamatr
github-pr/3200
github-pr/3132
github-pr/3323
github-pr/3332
github-pr/3340
github-pr/3311
github-pr/3334
github-pr/3297
github-pr/3256
github-pr/2567
github-pr/2851
d3d12/agility-sdk-621
github-pr/3164
github-pr/3114
github-pr/3050
github-pr/3113
github-pr/3326
github-pr/3144
github-pr/2642
github-pr/3072
github-pr/2789
github-pr/2643
github-pr/3009
github-pr/3035
github-pr/3031
github-pr/2686
github-pr/2834
github-pr/3321
github-pr/3325
github-pr/3290
github-pr/3324
github-pr/3130
claude/fervent-curie-m19lnr
github-pr/3309
github-pr/3305
github-pr/3306
github-pr/3302
github-pr/3301
github-pr/3345
github-pr/3211
github-pr/3027
github-pr/3286
github-pr/3235
github-pr/3265
github-pr/3275
codex/skip-no-hit-ray-passes
github-pr/2823
github-pr/2911
github-pr/3262
github-pr/3125
github-pr/3206
github-pr/3250
github-pr/3238
github-pr/3188
github-pr/2952
github-pr/3217
github-pr/3168
t3/preserve-fsr-sdk-restart-path
t3/propagate-host-failure-hresult
github-pr/3209
t3/launcher-custom-parameters
github-pr/3207
github-pr/3183
github-pr/3160
github-pr/3201
ci/less-to-run
github-pr/2930
github-pr/2797
github-pr/2999
perf/native-compute-shader-forms
github-pr/3191
github-pr/3011
github-pr/3019
github-pr/2996
gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
claude/blissful-franklin-ukp7ag
github-pr/3141
github-pr/3156
github-pr/3150
github-pr/3153
github-pr/3163
github-pr/3142
github-pr/3139
github-pr/2841
github-pr/3069
github-pr/3098
github-pr/3107
github-pr/3071
github-pr/2774
github-pr/2889
github-pr/3075
github-pr/2661
github-pr/3064
github-pr/3054
github-pr/3049
github-pr/2855
github-pr/2943
github-pr/3016
github-pr/2887
github-pr/3006
github-pr/3003
github-pr/2993
notes/card-time-and-plant-flicker
github-pr/2989
feat/vulkan-rs
github-pr/2985
github-pr/2951
github-pr/2982
github-pr/752
github-pr/792
github-pr/2877
github-pr/2654
github-pr/2893
github-pr/2948
github-pr/2944
github-pr/2919
github-pr/2915
archive/ci/less-to-run/20261202T1121Z
github-pr/2800
github-pr/2822
github-pr/2833
github-pr/2840
github-pr/2831
github-pr/2832
github-pr/2801
github-pr/2890
github-pr/2891
github-pr/2664
github-pr/2807
rt-call-trace
github-pr/2755
perf/ahead-split
github-pr/2587
github-pr/2698
github-pr/2609
github-pr/3219
docs/readme-runtime-proposal
github-pr/2017
github-pr/1741
github-pr/1667
codex/coord-claim-check-20261124-7e48
v1.1.0
v1.0.1
Notifications
1 participant
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#1915
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
AMD/RADV + 8 GB: the boot ends at 54 s with a null write at
game+0x2215c35, with or without the shader libraryMachine: Linux (CachyOS, kernel 7.3.5), Ryzen 5 9600X, 30 GB RAM, Radeon RX 7600 XT 8 GB, RADV 27.0.0 (Mesa), Wine 11.22.
mainb0f3d399.Build: the runtime per
docs/linux_proton.md(clang-cl + xwin SDK, no SDL3, so input comes fromLEONIDA_INPUT_SCRIPT). Shaders viamake_game.py --stages shaders: 26,503 main + 2,683library/+ 27fspx/+ 52bvh/+ 12exe/, 17 GB, 29 minutes.Result: process exit 5 after 54 s, one exception
0xc0000005(write to0x0) atgame_scarlett_master.exe+0x2215c35, 2 presents (package splash). D3D12 calls 107,723: 85,910 ok, 4 failed (CreatePipelineState), 12,245 accepted. No unimplemented imports, no device-loss report (LEONIDA_DEVICE_FAULT=1), no kernel OOM/amdgpu lines. Fence slot 12 mirrors: 5 live, 0 waits ended on an event, ~5,000 per 10 s on the 10 ms timeout.It is not the shader library and not the arena. The same address and the same exit come from a run with
--shaders none+LEONIDA_STUB_PIPELINES=1(25,452 failed pipeline creations instead of 4) and fromLEONIDA_ARENA_MB=1024(default otherwise). The crash follows a burst of about 107,700CreateShaderResourceViewcalls; the last traced event before it is aCreateFileWofG:\pack\core_licenses\core_licenses_data.rpfat t=7.5 s, with the exception at t=40.7 s.Two things that do not count as data points here: Proton 11.0's wine exits at 3 s at
+0xb5a5f8with 0 presents (environment, not this bug), andLEONIDA_VK_VALIDATION=1failsD3D12XboxCreateDeviceand stops at a breakpoint, so the validation layer is unusable on this host.Logs and traces stay on this machine; this report is counts only. If the address is known, a pointer to the stop/issue is enough; I can rerun with any switch you want.
The stopping address is interesting: on NVIDIA this same game+0x2215c35 is the caller of the title's hang watchdog (+0x23cf683) in the elevated-cap runs recorded in #1537, so a write to null there may be the title's fatal path running after an earlier failure rather than the first fault. The four failed CreatePipelineState calls (and the CreateShaderResourceView burst before the exception) are the part I would look at first. If you can rerun with LEONIDA_DEVICE_FAULT=1 --trace-d3d12, the failed-PSO diagnostics and the last few calls before +0x2215c35 would tell whether a shim returned null. No game data needed in the report; counts and HRESULTs are enough.
game+0x2215c35is the title's own hang-watchdog trap, not a runtime null write.runtime/src/main.cppdocuments it: the watchdog thread at RVA0x2215a60waits 30 one-second ticks for the kick byte at RVA0x71b6331, then calls the crash callback and executesmovl $0, 0at0x2215c35(the bytes at that RVA arec7 04 25 00 00 00 00 00 00 00 00, thenint3). The process is deliberately killing itself because the main loop did not report progress for 30 s — which is also why there is no device-fault report and only the splash presents.That fits 54 s and ~2 presents: the 30-tick window runs out while the title is still in its resource-creation burst, with the ~107,700
CreateShaderResourceViewcalls the largest candidate. Two things to try on that host:LEONIDA_TITLE_WATCHDOG=0. It only disarms when the trap bytes match this exact build (it logs when it does), and it sets the kick byte twice a second. If the run then gets past 54 s, this is our layer being slower than the watchdog window on this CPU/driver rather than a new fault, and the next stop is the one to chase.--trace-d3d12, the time between the start of the SRV burst and the last trace line before the trap shows how much of the 30 s is resource creation. The four failedCreatePipelineStateHRESULTs are still worth having: not the stall by themselves, but they may explain what comes after.If disarming the watchdog ends at a different stop, that stop is the real bug and this issue becomes that one.
Measured step back from the 54 s exit:
--trace-d3d12itself costs a mutex,fprintfandfflushper D3D12 call (runtime/shims/d3d12_trace.h), and that is now measured rather than assumed.record()(global mutex +fprintf+fflush, stderr redirected to a file) takes 18.9 µs per call on this Windows host: 100,000 calls in 1.89 s, twice, withfflushaccounting for under 3% of it (the formatting dominates). 107,700 traced calls are therefore about 2.0 s here.CreateShaderResourceViewcalls between the last tracedCreateFileWat 7.5 s and the trap at 40.7 s: about 308 µs per call in that window, i.e. 16× the trace cost measured here. So on that host either the Wine write path is much more expensive than nativefprintf, or the per-call work in RADV/our layer dominates.CreateShaderResourceView->write_image_descriptortakes one globaldescriptor_mutex, does a hash lookup on the T# words, and for a new view creates aVkImageView; there is no sleep, no fence wait and no readback on the path.That leaves one run that separates the two causes: rerun without
--trace-d3d12, watchdog still armed, and note whether 54 s is still where it ends. If it gets past it, the trace was the dominant cost on that host; if it still trips, the burst itself is the cost — thenLEONIDA_TITLE_WATCHDOG=0shows the next stop. If you can keep the trace but make it cheaper,stderrto a pipe or toNULinstead of a file is the cheap A/B (the cost is the write, not the mutex).Intel iGPU data point for the same trap, plus a Linux memory wall that reads like a null write.
Machine: Intel Meteor Lake iGPU, Mesa ANV 26.2.6, 30 GB RAM, Wine 11.22, Linux CachyOS, runtime from
main, 1280x720 window,LEONIDA_WINDOW=1280x720.Unhandled page fault on write access to 0x0 at 0x142215C35(game+0x2215c35),memory peak 2 GB, before the landing. That is the watchdog trap described above.
write to 0x0 at 0x1423CF683while the runtime was writing itssession pipeline cache at exit.
Both fit a >30 s stall on this GPU. The front-end load compiles pipelines on demand (up to 266
fspx_computebuilds in one run) and this device reports subgroups 8..32, so the 64-wide shaders aretranslated as tier C; a stall is easy to reach.
Separate Linux finding, same symptom class (process dies under memory pressure): Wine's server tmpmaps live
in
/tmp/.wine-$UID, and/tmpis tmpfs, so they are RAM. On a 30 GB machine the title mapped 20,217tmpmap files (~22 GB) while
/tmpis a 16 GB tmpfs; allocations fail and the process dies. Binding thatdirectory to disk keeps
/tmpat ~30 MB:wineserver requires that directory to be mode 0700, hardcodes
/tmp/.wine-%u(it ignoresTMPDIR) andrejects a symlink with "is not a directory", so the bind mount is the only option without root-level
changes.
This is not the watchdog cause, but it is the difference between an oom-kill at 4 minutes and a run that
reaches the front-end.
Closing this issue because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the report/contribution! If you believe this issue was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.