Skip to content

finding: GTX 1660 SUPER 6 GB (Turing), Nobara + system Wine: LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES clears the movie to 30 fps; story-load device loss with named dispatches; then FSR +0x65ff #2411

Backlog

Description

@mrbabayeen-Linux

Second Turing/Fedora confirmation: Proton Experimental stops at +0xb5a5f8 (read +0x68); Fedora's Wine 11.21 Staging runs past it

Machine: Nobara 44 (Fedora-based), kernel 7.3.4-201.nobara, Ryzen 5 5600GT,
GTX 1660 SUPER 6 GB (Turing), NVIDIA 620.70.06, 32 GB RAM + 24 GB swap file.

Branch: ubiq/integration/boot-combined @ 6c8a89dea, built with
scripts/linux-boot/configure-worktree.sh (clang-cl cross + xwin SDK;
SDL3 built in via LEONIDA_SDL3_FETCH=ON; Rust XMA2 decoder added after
rustup target add x86_64-pc-windows-msvc, cargo 1.99).

The Wine-version stop, confirmed 15/15 runs on a second Turing machine
(after ImLele69's report): with Proton Experimental's files/bin/wine
(wine-11.0) and a fresh prefix, 0xc0000005 at
game_scarlett_master.exe+0xb5a5f8 (read 0x68) at 5.5-11 s, always,
through the same stack (+0x19f51fc). Unchanged by: --game-dir,
--run/--first-run-ui, fresh prefix, XMA2 decoder built in, DXGI
adapter impostor (name+device memory override), LEONIDA_ARENA_MB,
--trace+LEONIDA_SKIP_INT3=1. The SAME build with Fedora's
wine-11.21 (Staging) package and its own prefix boots past it.

Note: LEONIDA_SKIP_INT3=1 needs --trace (README says "diagnostic, with
--trace"); without it the first soft assert freezes under WINEDEBUG default
(winedbg attach). That combination (system wine + --trace + skip) boots.

Progress with system Wine (branch defaults + LEONIDA_TITLE_HUD=1,
LEONIDA_MEM_PROBE=2, first_run_ui input route):

  • 600 s bounded run: 1,146,113 D3D12 calls, no exceptions; the run
    ends on our own limit only.
  • SDL3 build run: session state reaches the landing prompt and story
    load pipeline compiles; 2 dstorage decompression failures 0x89240030
    at file octa_imposters.ttpf offsets 455285504 & 76014336 (BC7,
    same two ranges as [Windows / Vulkan] Reproducible 0xC0000005 at game_scarlett_master.exe+0x23cf683 ~40 s after two E_DSTORAGE_DECOMPRESSION_ERROR reads #2019's report, ~t=273 s); then the title's own
    hang watchdog fires (+0x23cf683 write-to-0 at t=411 s, retry at
    t=463 s), stack +0x2215c35/+0x2215eca — matches Snooozs's
    watchdog diagnosis. Our copy's trap instruction (the movl $0, 0
    at RVA 0x2215c35) verifies byte-exact; the watchdog's kick byte
    (read at +0x2215c44, tested bit 0) sits at RVA 0x71b6340 (BSS, filled
    at runtime; visible via LEONIDA_PEEK).
  • With LEONIDA_TITLE_WATCHDOG_KICK="2215c35,71b6340" the watchdog no
    longer fires; the story-load run stays alive past t=650 s while cold
    compute pipelines compile one at a time (~1 per 3-4 s, ~440-600 s in
    vkCreate*Pipelines; seed pipeline_cache.bin 3,889,297,673 B loads,
    session file merges — warm-repeat accumulation is how the load is
    being walked through on this GPU).

Counts only; no game data. Traces stay local.

Night 2 update (same machine, main d5634defe..d1dff7949, loader built per tip)

  1. The hang is the boot-time compute warmup holding the submit lock.
    With the journal filled (--precompile-pipelines, 3,225 compiled /
    1,076 not buildable in 31 min) the run still rebuilds large library
    compute programs as warmups (library/lib_cs_02221, _03259,
    569-570 KB SPIR-V) — thread vkCreateComputePipelines keeps the
    submit lock ~3.2 s at the compile gate and one lib_cs_03259 create
    takes 32 s to leave the driver. Two signatures follow:
    • early exit (63 s): device-stall ... for 15 s; submitted ticket 1897 = retired 1897, then a title self-kill write-to-0 at
      +0x258B000
      (a third kill site, alongside +0x23cf683);
    • the same wait storm later in the run (834 gate waits, 546 s total).
  2. The documented cure works exactly as written in docs/running.md:
    LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072 + the pre-fill above
    turns the intro movie from ~1 fps to a steady 30 fps, the story-load
    spinner presents ~9 fps, and no gate ever reports held or late.
  3. First device loss measured on a 6 GB Turing card at story load
    (t=338 s of game life): LEONIDA_DEVICE_FAULT=1 names the last
    submitted dispatches before the loss — library/lib_cs_03141
    (direct, groups 1,1,1), library/lib_cs_03146 (indirect, args
    at a host address, count words read 0x0/0x0, max=1, stride=12) and
    library/lib_cs_03138; fences report 0 event-meted waits vs ~4,993
    on the 10 ms timeout. After the loss the title's watchdog kills at
    +0x23cf683 (with the kick already active). None of the three
    programs is in the ≥2 MB skip list.
  4. Adding lib_cs_03138,03141,03146 to LEONIDA_SKIP_COMPUTE
    passes that point (deeper library compute, lib_cs_034xx, builds
    at dispatch) and stops on a NEW site: 0xc0000005 read +0x10 at
    amd_fidelityfx_upscaler_xbox.dll+0x65ff
    — the location
    docs/fspx.md (docs/fspx: the FidelityFX loader and upscaler entry points (measured) #2017, FIDELITYFX-ENTRY-CONTRACT) documents as the
    pre-rdna2spirv: restore the dot4 inline op_sel_hi under exact re-anchoring too (SHADER-FSPX-DOT4-EXACT) #1862 AV. Our SPIR-V library was produced on 2026-11-24, before
    the rdna2spirv: restore the dot4 inline op_sel_hi under exact re-anchoring too (SHADER-FSPX-DOT4-EXACT) #1862 translator fix (dot4 op_sel_hi re-anchoring); rebuilding
    the shader pack against current main is queued here before I claim
    whether it fully clears +0x65ff on Linux/Turing.
  5. Minor, positive: MESA-independent page-cache pre-fill of the seven
    boot+movie .rpf files (~10.5 GB) reads 8.3 GB of movies.rpf in 9 s
    on this NVMe and removes the movie phase's disk stalls; journal hits
    at play verified (500-800 compute pipelines served from journal
    files during boot).

All numbers above from --trace-d3d12 summaries; traces stay local, no
game bytes anywhere.

Activity

  1. mrbabayeen-Linux commented on Nov 27, 2026

    @mrbabayeen-Linux
    Author

    Update — shader pack rebuilt against current main (translator d1dff7949+, incl. #1862 dot4 re-anchoring), same machine (GTX 1660 SUPER 6 GB, Nobara + system Wine):

    • The +0x65ff FSR stop is gone by construction. Zero faults inside amd_fidelityfx_upscaler_xbox.dll on the rebuilt pack (the 2026-11-24 pack hit it on every run). The lib_cs_03138/03141/03146 skip stays as a compute-warmup workaround, not a data need.
    • No device loss at story load. The lib_cs_03138/03141/03146 indirect-dispatch device loss of the previous pack did not recur; LEONIDA_DEVICE_FAULT=1 telemetry stayed clean (23,092/23,259 list writes landed, 0 failed; 6,694 presents).
    • New, deeper stop: a ~27 s releaser/gate stall in the black stretch after the story-load screen (before the first world frame): the releaser has been inside one gate Signal ... the work the layer held behind the gate has not run — 17 gates held, 13 met, 1 timed out; page remaps waited up to 4.5 s; the title's 30 s hang watchdog then self-kills at the familiar +0x23cf683 write-to-0 (with LEONIDA_TITLE_WATCHDOG_KICK still active). 1.4 s of margin between the stall and the kill.
    • Env notes that mattered on this card: LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072 keeps the movie at a steady 30 fps; page-cache prefill of the seven boot+movie .rpf (~10.5 GB) removes their disk stalls.

    Next on my side: naming the gate holder (build with LEONIDA_DEVICE_FAULT_ROOTS once available, per #1934). Traces stay local.

  2. mrbabayeen-Linux commented on Nov 27, 2026

    @mrbabayeen-Linux
    Author

    Follow-up on the two stops after the rebuilt pack (same machine):

    1. LEONIDA_SLOT31_ASYNC=1 behaves exactly as the docs describe. With it: queue slot 31 (async worker): 2 calls mapped in 28 s (0 failed), 0 page remaps at the call, 0 deferred — CopyPageMappingsBatchX is fully off the list-value releaser. The 27 s releaser stall of the previous pack no longer names the remap.
    2. With remaps out of the way (and LEONIDA_ASYNC_PIPELINES=1): the run reached t≈316 s with 9,302 presents, and the title's hang watchdog still self-kills at +0x23cf683 (kick active). Two residual stall fronts are visible now with clean telemetry:
      • the releaser hit one 25.4 s gate Signal with 0 remaps at the call — something else inside the gate path blocks the releaser thread; the specific holder is not named yet;
      • the submit lock is held in up to 7.6 s bursts waiting for dispatch-time compute pipeline creates (library/lib_cs_01544, 949 KB SPIR-V, dispatch-worker), compile-gate totals 30.7 s over 241 waits, longest 7.6 s.
    3. The heavy pipeline cache is being written during the run (pipeline_cache.heavy.bin, 4.1 MB this session) — the misses it covers compile slowly here (0.5-1 MB SPIR-V take 6-8 s each on this card with wave64 emulation).

    Next on my side: naming what runs inside the releaser's gate Signal now that the remap is async (reading d3d12_xs_list_values.h — the Signal and any remaining action gates). Happy to run LEONIDA_DEVICE_FAULT_ROOTS builds once available. Traces stay local.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions