d3d12: -SeriesS -Dlss performance (render scale 0.5) crashes the title when the first scene loads — "Shipping FSR4 configuration mismatch ... received 960x540" #3013

Open
opened 2026-12-01 23:37:36 +00:00 by lerapeurdu62280-debug · 4 comments
lerapeurdu62280-debug commented 2026-12-01 23:37:36 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by lerapeurdu62280-debug on 2026-12-01T23:37:36Z.


What happens

With -SeriesS -Dlss performance, the launcher sets LEONIDA_UPSCALE=dlss and LEONIDA_RENDER_SCALE=0.5 (play-nvidia.ps1, $dlssScale). The title logs this a few seconds after it starts:

INFO title: FSR_API_DEBUG_ERROR: Shipping FSR4 configuration mismatch: maxRenderSize must be 1280x720 for a tight fixed-resolution allocation or 1920x1080 for the legacy allocation; received 960x540. The per-frame renderSize must be 1280x720.

Menus and loading run (about 58 fps), then the title crashes when the first scene loads, about 86 s after the start (frame ~4636, right after a burst of first bind pipeline lines). The only trace is the title's own crash reporter, blocked by the runtime; the runtime exits normally (code 0):

INFO title: BacktraceBreakpad:...\http_upload.cc:505:Added file 'upload_file_minidump' (T:\<guid>.dmp)
INFO title: BacktraceBreakpad:...\http_upload.cc:291:URL: https://submit.backtrace.io/paradise/<...>/minidump
INFO leonida_hle::modules::net: HTTP connection blocked destination=submit.backtrace.io:443

Reproduced twice in a row on the same PC (same frame range, same message). The same PC plays with -SeriesS and DLSS quality (no render scale set on Series S) without crashing: 16.6 real fps in the world, median frame 47.6 ms.

So on Series S the title seems to accept only 1280x720 or 1920x1080 as its maximum render size. If that holds, -Dlss balanced (0.6, 1152x648) and -Dlss ultra (0.3333, 640x360) would hit the same check. I did not test them; I only saw performance fail.

Commit

main cloned on 2026-12-01 by an installer (I don't have the exact commit from the player's report). Prebuilt target\diag build.

System

Windows 11 Pro 26300, NVIDIA GeForce RTX 3050 8 GB (driver 621.40, Resizable BAR on), AMD Ryzen 7 5800X, 32 GB RAM, game on a SATA SSD.

Where

d3d12/scripts/play-nvidia.ps1, the -Dlss branch: on Series S, any mode other than quality sets LEONIDA_RENDER_SCALE from $dlssScale (0.6 / 0.5 / 0.3333).

Command and steps

scripts\play-d3d12.ps1 -Game <package> -SeriesS -Dlss performance -FsrFrameGen -Log -More @{LEONIDA_SUBMIT_FRAMES='0'}

Start the game, load a save, wait for the first scene.

Settings line excerpt: LEONIDA_RENDER_SCALE=0.5 ... LEONIDA_UPSCALE=dlss ... LEONIDA_MENU_CONSOLE=series-s

What would help

Two options:

  • On Series S, have -Dlss refuse the modes other than quality, or warn about them (the title's 1280x720 is already 2/3).
  • Or map them to a render size the title accepts.

In our launcher (Leonida Nights), we now offer only DLSS quality on Series S. The other modes stay on Series X, where performance renders 1920x1080 of 2160.

Thanks for mandy!

EI S.O.S INFO LUDO

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6733164972 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3013). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-12-01T23:37:36Z. --- ### What happens With `-SeriesS -Dlss performance`, the launcher sets `LEONIDA_UPSCALE=dlss` and `LEONIDA_RENDER_SCALE=0.5` (`play-nvidia.ps1`, `$dlssScale`). The title logs this a few seconds after it starts: ```text INFO title: FSR_API_DEBUG_ERROR: Shipping FSR4 configuration mismatch: maxRenderSize must be 1280x720 for a tight fixed-resolution allocation or 1920x1080 for the legacy allocation; received 960x540. The per-frame renderSize must be 1280x720. ``` Menus and loading run (about 58 fps), then the title crashes when the first scene loads, about 86 s after the start (frame ~4636, right after a burst of `first bind pipeline` lines). The only trace is the title's own crash reporter, blocked by the runtime; the runtime exits normally (code 0): ```text INFO title: BacktraceBreakpad:...\http_upload.cc:505:Added file 'upload_file_minidump' (T:\<guid>.dmp) INFO title: BacktraceBreakpad:...\http_upload.cc:291:URL: https://submit.backtrace.io/paradise/<...>/minidump INFO leonida_hle::modules::net: HTTP connection blocked destination=submit.backtrace.io:443 ``` Reproduced twice in a row on the same PC (same frame range, same message). The same PC plays with `-SeriesS` and DLSS quality (no render scale set on Series S) without crashing: 16.6 real fps in the world, median frame 47.6 ms. So on Series S the title seems to accept only 1280x720 or 1920x1080 as its maximum render size. If that holds, `-Dlss balanced` (0.6, 1152x648) and `-Dlss ultra` (0.3333, 640x360) would hit the same check. I did not test them; I only saw `performance` fail. ### Commit `main` cloned on 2026-12-01 by an installer (I don't have the exact commit from the player's report). Prebuilt `target\diag` build. ### System Windows 11 Pro 26300, NVIDIA GeForce RTX 3050 8 GB (driver 621.40, Resizable BAR on), AMD Ryzen 7 5800X, 32 GB RAM, game on a SATA SSD. ### Where `d3d12/scripts/play-nvidia.ps1`, the `-Dlss` branch: on Series S, any mode other than `quality` sets `LEONIDA_RENDER_SCALE` from `$dlssScale` (0.6 / 0.5 / 0.3333). ### Command and steps ```powershell scripts\play-d3d12.ps1 -Game <package> -SeriesS -Dlss performance -FsrFrameGen -Log -More @{LEONIDA_SUBMIT_FRAMES='0'} ``` Start the game, load a save, wait for the first scene. Settings line excerpt: `LEONIDA_RENDER_SCALE=0.5 ... LEONIDA_UPSCALE=dlss ... LEONIDA_MENU_CONSOLE=series-s` ### What would help Two options: - On Series S, have `-Dlss` refuse the modes other than `quality`, or warn about them (the title's 1280x720 is already 2/3). - Or map them to a render size the title accepts. In our launcher (Leonida Nights), we now offer only DLSS quality on Series S. The other modes stay on Series X, where performance renders 1920x1080 of 2160. Thanks for mandy! EI S.O.S INFO LUDO
OreoFR commented 2026-12-01 23:56:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-01T23:56:32Z.


Thanks, this is a clear report. The cause is already known and claimed in the coordination issue as D3D12-FFX-CONTEXT-ANY-PAIR (https://github.com/ProjectLeonida/mandy/issues/2570, @ajussak, 30 November):

  • On Series S with DLSS performance, balanced or ultra, the title asks its upscaler for a context from 960x540 (or smaller) to 1920x1080.
  • The DLL only ships the 1280x720 to 1920x1080 tables, so it refuses the context, and the title later divides by a count that stayed 0. That is the crash when the first scene loads.
  • On main, d3d12/crates/leonida-hle/src/modules/ffx.rs stands in the shipped sizes only for the Series X case (sizes_to_stand_in([960, 540], [1920, 1080]) is still None in its test), so Series S is not covered yet.

Until that fix lands, -SeriesS -Dlss quality (or no -Dlss mode) avoids it, as you found. I'll reproduce it on an RTX 4070 Laptop and add the result here.

AI-assisted: Claude Code (oreofr-agent).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329952634 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3013#issuecomment-7329952634). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-01T23:56:32Z. --- Thanks, this is a clear report. The cause is already known and claimed in the coordination issue as `D3D12-FFX-CONTEXT-ANY-PAIR` (https://github.com/ProjectLeonida/mandy/issues/2570, @ajussak, 30 November): - On Series S with DLSS `performance`, `balanced` or `ultra`, the title asks its upscaler for a context from 960x540 (or smaller) to 1920x1080. - The DLL only ships the 1280x720 to 1920x1080 tables, so it refuses the context, and the title later divides by a count that stayed 0. That is the crash when the first scene loads. - On `main`, `d3d12/crates/leonida-hle/src/modules/ffx.rs` stands in the shipped sizes only for the Series X case (`sizes_to_stand_in([960, 540], [1920, 1080])` is still `None` in its test), so Series S is not covered yet. Until that fix lands, `-SeriesS -Dlss quality` (or no `-Dlss` mode) avoids it, as you found. I'll reproduce it on an RTX 4070 Laptop and add the result here. AI-assisted: Claude Code (oreofr-agent).
OreoFR commented 2026-12-02 00:05:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T00:05:02Z.


Reproduced on main 2705632c5: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Windows 11, -SeriesS -Dlss performance (settings line: LEONIDA_RENDER_SCALE=0.5, LEONIDA_UPSCALE=dlss, LEONIDA_MENU_CONSOLE=series-s).

  • The runtime logs upscale context render=[960, 540] upscale=[1920, 1080] with no stand-in sizes (no made_for), so the context is made at 960x540.
  • The title stops about 71 s after the start, before the world: unhandled exception 0xc0000094 (integer divide by zero) at leonida-image-…dll+0x28f03e8. That is the exact address and code @ajussak describes for D3D12-FFX-CONTEXT-ANY-PAIR in #2570, so this issue is that item.
  • The fix is the one in that claim: stand in the shipped 1280x720 to 1920x1080 pair in ffx.rs whenever the title asks for another (render, upscale) pair.

AI-assisted: Claude Code (oreofr-agent).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7330119678 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3013#issuecomment-7330119678). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T00:05:02Z. --- Reproduced on main 2705632c5: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Windows 11, `-SeriesS -Dlss performance` (settings line: `LEONIDA_RENDER_SCALE=0.5`, `LEONIDA_UPSCALE=dlss`, `LEONIDA_MENU_CONSOLE=series-s`). - The runtime logs `upscale context render=[960, 540] upscale=[1920, 1080]` with no stand-in sizes (no `made_for`), so the context is made at 960x540. - The title stops about 71 s after the start, before the world: `unhandled exception 0xc0000094` (integer divide by zero) at `leonida-image-…dll+0x28f03e8`. That is the exact address and code @ajussak describes for D3D12-FFX-CONTEXT-ANY-PAIR in #2570, so this issue is that item. - The fix is the one in that claim: stand in the shipped 1280x720 to 1920x1080 pair in `ffx.rs` whenever the title asks for another (render, upscale) pair. AI-assisted: Claude Code (oreofr-agent).
TheStonedGamer commented 2026-12-02 08:23:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by TheStonedGamer on 2026-12-02T08:23:51Z.


@ajussak, are you still on D3D12-FFX-CONTEXT-ANY-PAIR? I hit this on Series S with the picture at 960x540 and 640x360 (RTX 3060 12 GB, driver 621.40) and have a small fix if it helps.

It is one condition in d3d12/crates/leonida-hle/src/modules/ffx.rs: sizes_to_stand_in stands in the shipped sizes only when the upscale size differs from 1920x1080, so a Series S context of 960x540 (or 640x360) to 1920x1080 is passed to the DLL as it is and refused. With (render, upscale) != SHIPPED it is made with 1280x720 to 1920x1080 as the Series X contexts already are; the context only answers the jitter queries and the upscale stays DLSS's. The unit test a_context_of_other_sizes_is_made_with_the_shipped_ones now expects Some(SHIPPED) for [960, 540] and [640, 360] (it fails without the change).

Commit: github.com/TheStonedGamer/mandy-fork@e660fa6e9 (branch ffx-any-render-size). Not run in the game yet.

If you would rather take it over or already have something, I'll leave it; otherwise I can open a pull request referencing your claim. Claude Opus-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7339390000 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3013#issuecomment-7339390000). Originally posted by [TheStonedGamer](https://github.com/TheStonedGamer) on 2026-12-02T08:23:51Z. --- @ajussak, are you still on `D3D12-FFX-CONTEXT-ANY-PAIR`? I hit this on Series S with the picture at 960x540 and 640x360 (RTX 3060 12 GB, driver 621.40) and have a small fix if it helps. It is one condition in `d3d12/crates/leonida-hle/src/modules/ffx.rs`: `sizes_to_stand_in` stands in the shipped sizes only when the upscale size differs from 1920x1080, so a Series S context of 960x540 (or 640x360) to 1920x1080 is passed to the DLL as it is and refused. With `(render, upscale) != SHIPPED` it is made with 1280x720 to 1920x1080 as the Series X contexts already are; the context only answers the jitter queries and the upscale stays DLSS's. The unit test `a_context_of_other_sizes_is_made_with_the_shipped_ones` now expects `Some(SHIPPED)` for `[960, 540]` and `[640, 360]` (it fails without the change). Commit: https://github.com/TheStonedGamer/mandy-fork/commit/e660fa6e9 (branch `ffx-any-render-size`). Not run in the game yet. If you would rather take it over or already have something, I'll leave it; otherwise I can open a pull request referencing your claim. Claude Opus-assisted.
MoonEyes commented 2026-12-02 21:27:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T21:27:49Z.


Open PR #3022 stands in the shipped 1280x720 context for a 960x540 render size, which is what the coordination item D3D12-FFX-CONTEXT-ANY-PAIR (#2570) describes. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359315610 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3013#issuecomment-7359315610). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T21:27:49Z. --- Open PR #3022 stands in the shipped 1280x720 context for a 960x540 render size, which is what the coordination item D3D12-FFX-CONTEXT-ANY-PAIR (#2570) describes. AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy#3013
No description provided.