v2026.11.30.03: thread 'victory-list-0' has overflowed its stack (default 2 MiB stack in list/thin.rs:522) #4812

Open
opened 2026-12-01 09:51:17 +00:00 by github-bot · 3 comments
Owner

@⁠Dukestar69 on GitHub · 2026-12-01 09:45 UTC · original

Summary

On v2026.11.30.03, a victory-list-* worker thread (VICTORY_THIN=1) hit a stack overflow during gameplay on RTX 5090 (Windows 11).

Crash output / log

thread 'victory-list-0' (53056) has overflowed its stack

thread 'victory-list-0' (53056) panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\stdio.rs:1093:20:
RefCell already borrowed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

(The secondary RefCell already borrowed panic in stdio.rs occurs while the runtime prints the stack-overflow diagnostic.)

Environment

  • Release: v2026.11.30.03 (official release binary)
  • GPU: NVIDIA GeForce RTX 5090 (32 GB VRAM)
  • OS: Windows 11
  • Profile: Series X, VICTORY_THIN=1 (default)

Likely Cause

In crates/victory-gpu/src/list/thin.rs:522, the victory-list-{i} worker threads are spawned without an explicit stack size:

if let Err(e) = std::thread::Builder::new().name(format!("victory-list-{i}")).spawn(worker) {

On Windows, Rust's default thread stack is 2 MiB (RUST_MIN_STACK / default std::thread), which can be exhausted when victory-list-* executes deep command-list translation, draw/descriptor/pipeline lookup, and NVIDIA D3D12 driver call chains (especially with fat LTO inlining).

Suggested Fix

Give victory-list-{i} (and optionally other GPU worker threads that call into the D3D12 driver) an explicit stack size, e.g. .stack_size(8 * 1024 * 1024).

Workaround

Setting THIN LISTS = OFF (VICTORY_THIN=0) and ASYNC SUBMIT = ON (VICTORY_ASYNC_SUBMIT=1) in the F1 menu bypasses victory-list-* threads.

AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-12-01 09:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4811) ### Summary On **`v2026.11.30.03`**, a `victory-list-*` worker thread (`VICTORY_THIN=1`) hit a stack overflow during gameplay on RTX 5090 (Windows 11). ### Crash output / log ```text thread 'victory-list-0' (53056) has overflowed its stack thread 'victory-list-0' (53056) panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\stdio.rs:1093:20: RefCell already borrowed note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` *(The secondary `RefCell already borrowed` panic in `stdio.rs` occurs while the runtime prints the stack-overflow diagnostic.)* ### Environment - **Release:** `v2026.11.30.03` (official release binary) - **GPU:** NVIDIA GeForce RTX 5090 (32 GB VRAM) - **OS:** Windows 11 - **Profile:** Series X, `VICTORY_THIN=1` (default) ### Likely Cause In `crates/victory-gpu/src/list/thin.rs:522`, the `victory-list-{i}` worker threads are spawned without an explicit stack size: ```rust if let Err(e) = std::thread::Builder::new().name(format!("victory-list-{i}")).spawn(worker) { ``` On Windows, Rust's default thread stack is 2 MiB (`RUST_MIN_STACK` / default `std::thread`), which can be exhausted when `victory-list-*` executes deep command-list translation, draw/descriptor/pipeline lookup, and NVIDIA D3D12 driver call chains (especially with fat LTO inlining). ### Suggested Fix Give `victory-list-{i}` (and optionally other GPU worker threads that call into the D3D12 driver) an explicit stack size, e.g. `.stack_size(8 * 1024 * 1024)`. ### Workaround Setting `THIN LISTS = OFF` (`VICTORY_THIN=0`) and `ASYNC SUBMIT = ON` (`VICTORY_ASYNC_SUBMIT=1`) in the F1 menu bypasses `victory-list-*` threads. AI-assisted (Gemini 4 Neon).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 09:51:17 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-12-01 09:45 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU you have and which Windows version (10 or 11).

If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.

**@⁠github-actions[bot]** on GitHub · 2026-12-01 09:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4811#issuecomment-7307172563) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU you have and which Windows version (10 or 11). **If this issue needs logs and none are posted here within 12 hours, it will be closed.** Add them by editing your post or in a comment.
Author
Owner

@⁠RochDawid on GitHub · 2026-12-01 10:11 UTC · original

From reading the code (not confirmed on a machine), one reason the list threads in particular may run deeper than the other threads:

  • With VICTORY_THIN=1, a victory-list-N thread replays the title's calls, including its dispatches.
  • When a dispatch's compute pipeline is not made yet, make::ready (crates/victory-gpu/src/pipeline/make.rs) makes it right there with p.make(), by default (VICTORY_PIPELINE_COMPUTE_WAIT, within the frame's 3 s budget). That is the shader translation and the driver's pipeline compile, on the list thread's stack, under the frames of the recording it is replaying.
  • No thread in victory-gpu sets a stack size, so this runs on Rust's default 2 MiB. The victory-pipelines-N workers do the same work on 2 MiB as well, but from a shallow start.

If that is where it overflowed, the play log should show shader translated stage="compute" lines (or a compute pipelines: this frame waited line) shortly before the crash. Could you check the last few hundred lines before it? Without that, a larger stack is a guess. With it, the stack size of victory-list-N would be the place, or making compute pipelines off the list thread.

**@⁠RochDawid** on GitHub · 2026-12-01 10:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4811#issuecomment-7307818134) From reading the code (not confirmed on a machine), one reason the list threads in particular may run deeper than the other threads: - With `VICTORY_THIN=1`, a `victory-list-N` thread replays the title's calls, including its dispatches. - When a dispatch's compute pipeline is not made yet, `make::ready` (`crates/victory-gpu/src/pipeline/make.rs`) makes it right there with `p.make()`, by default (`VICTORY_PIPELINE_COMPUTE_WAIT`, within the frame's 3 s budget). That is the shader translation and the driver's pipeline compile, on the list thread's stack, under the frames of the recording it is replaying. - No thread in `victory-gpu` sets a stack size, so this runs on Rust's default 2 MiB. The `victory-pipelines-N` workers do the same work on 2 MiB as well, but from a shallow start. If that is where it overflowed, the play log should show `shader translated stage="compute"` lines (or a `compute pipelines: this frame waited` line) shortly before the crash. Could you check the last few hundred lines before it? Without that, a larger stack is a guess. With it, the stack size of `victory-list-N` would be the place, or making compute pipelines off the list thread.
Author
Owner

@⁠Dukestar69 on GitHub · 2026-12-01 14:38 UTC · original

@⁠RochDawid Checked the last 300 lines of the play log right before the ictory-list-0 stack overflow (

**@⁠Dukestar69** on GitHub · 2026-12-01 14:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4811#issuecomment-7314597667) @⁠RochDawid Checked the last 300 lines of the play log right before the ictory-list-0 stack overflow (
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#4812
No description provided.