os error 1453 writing to stderr aborts with panic in a function that cannot unwind and drops failure records from crashes.log #4974

Open
opened 2026-12-01 16:12:20 +00:00 by github-bot · 0 comments
Owner

@⁠mia03ther on GitHub · 2026-12-01 16:10 UTC · original

Summary

On Windows 11 (v2026.11.30.03), when stderr returns ERROR_NOT_ENOUGH_QUOTA (os error 1453), calling eprint! / eprintln! or std's default panic hook inside crash/panic reporting panics at library\std\src\io\stdio.rs:1166:9:

  • Inside extern "system" / non-unwinding contexts (e.g. crash::log_crash or crash::report), this immediately aborts with panic in a function that cannot unwind before append_to_log runs — completely losing the GPU failure / crash record from crashes.log.
  • Even when inside an unwinding Rust thread (victory-submit), stderr failure masks the real failure reason with failed printing to stderr panics in crashes.log.

Environment

  • Upstream build: v2026.11.30.03 (also verified present on main 5fabb46 in crates/victory-loader/src/crash.rs)
  • OS: Windows 11 (build 10.0.26300)
  • GPU / RAM: NVIDIA GeForce RTX 5070 Ti Laptop GPU (12 GB, driver 621.24.0), 16 GB RAM, Series S profile

Evidence from crashes.log and play logs

  1. Process 43320 (v2026.11.30.03) hit 0x887A0005 / 0x887A0007 in its play log:
2026-12-01T15:16:12.209142Z  WARN victory_gpu::resource: no host texture error=GPU 设备实例已经暂停。使用 GetDeviceRemovedReason 以确定相应的措施。 (0x887A0005) desc=ResourceDesc { dimension: 3, alignment: 0, width: 480, height: 270, depth_or_array_size: 1, mip_levels: 1, format: 26, sample_count: 1, sample_quality: 0, layout: 0, flags: 5 } reserved=false
2026-12-01T15:16:12.216021Z ERROR victory_gpu::host: host submission: the device was lost before fence value 265879 was reached (once it is, every fence reads u64::MAX); device removed: GPU 不响应更多的命令,最为可能的原因是其他应用程序递交了无效的命令。

Yet crashes.log recorded no VIctory: host GPU failure: line for process 43320 — only:

unix time 1796138172, process 43320
VIctory: panic on thread "?": panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\stdio.rs:1166:9:
failed printing to stderr: 配额不足,无法完成请求的服务。 (os error 1453)

unix time 1796138172, process 43320
VIctory: panic on thread "?": panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\core\src\panicking.rs:225:5:
panic in a function that cannot unwind
  1. Process 20792 (v2026.11.30.03) similarly hit 0x887A0007 (2026-12-01T15:03:47.317691Z ERROR victory_gpu::host: the thread that prepares and sends submissions panicked) and recorded two os error 1453 stderr panics from victory-submit before the relay thread wrote the 0x887A0007 line:
unix time 1796137427, process 20792
VIctory: panic on thread "victory-submit": panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\stdio.rs:1166:9:
failed printing to stderr: 配额不足,无法完成请求的服务。 (os error 1453)

Root cause (crates/victory-loader/src/crash.rs)

  • log_crash called eprint!("{text}"); before append_to_log(&text);.
  • log_crashes_to's panic hook called print(info) (std's panicking stderr hook) before append_to_log(...).
  • report() (called from extern "system" exception handlers) called eprintln! / eprint! before append_to_log(&text).

Are you working on a fix?

Yes, I'm on it (fix implemented and tested in victory-loader; opening PR shortly).

**@⁠mia03ther** on GitHub · 2026-12-01 16:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4973) ### Summary On Windows 11 (`v2026.11.30.03`), when stderr returns `ERROR_NOT_ENOUGH_QUOTA` (`os error 1453`), calling `eprint!` / `eprintln!` or std's default panic hook inside crash/panic reporting panics at `library\std\src\io\stdio.rs:1166:9`: - Inside `extern "system"` / non-unwinding contexts (e.g. `crash::log_crash` or `crash::report`), this immediately aborts with `panic in a function that cannot unwind` **before** `append_to_log` runs — completely losing the GPU failure / crash record from `crashes.log`. - Even when inside an unwinding Rust thread (`victory-submit`), stderr failure masks the real failure reason with `failed printing to stderr` panics in `crashes.log`. ### Environment - Upstream build: `v2026.11.30.03` (also verified present on `main` `5fabb46` in `crates/victory-loader/src/crash.rs`) - OS: Windows 11 (build `10.0.26300`) - GPU / RAM: NVIDIA GeForce RTX 5070 Ti Laptop GPU (12 GB, driver `621.24.0`), 16 GB RAM, Series S profile ### Evidence from `crashes.log` and play logs 1. Process `43320` (`v2026.11.30.03`) hit `0x887A0005` / `0x887A0007` in its play log: ```text 2026-12-01T15:16:12.209142Z WARN victory_gpu::resource: no host texture error=GPU 设备实例已经暂停。使用 GetDeviceRemovedReason 以确定相应的措施。 (0x887A0005) desc=ResourceDesc { dimension: 3, alignment: 0, width: 480, height: 270, depth_or_array_size: 1, mip_levels: 1, format: 26, sample_count: 1, sample_quality: 0, layout: 0, flags: 5 } reserved=false 2026-12-01T15:16:12.216021Z ERROR victory_gpu::host: host submission: the device was lost before fence value 265879 was reached (once it is, every fence reads u64::MAX); device removed: GPU 不响应更多的命令,最为可能的原因是其他应用程序递交了无效的命令。 ``` Yet `crashes.log` recorded **no** `VIctory: host GPU failure:` line for process `43320` — only: ```text unix time 1796138172, process 43320 VIctory: panic on thread "?": panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\stdio.rs:1166:9: failed printing to stderr: 配额不足,无法完成请求的服务。 (os error 1453) unix time 1796138172, process 43320 VIctory: panic on thread "?": panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\core\src\panicking.rs:225:5: panic in a function that cannot unwind ``` 2. Process `20792` (`v2026.11.30.03`) similarly hit `0x887A0007` (`2026-12-01T15:03:47.317691Z ERROR victory_gpu::host: the thread that prepares and sends submissions panicked`) and recorded two `os error 1453` stderr panics from `victory-submit` before the relay thread wrote the `0x887A0007` line: ```text unix time 1796137427, process 20792 VIctory: panic on thread "victory-submit": panicked at /rustc/48a229ceaefd4985c50990b14116b6d856af0985/library\std\src\io\stdio.rs:1166:9: failed printing to stderr: 配额不足,无法完成请求的服务。 (os error 1453) ``` ### Root cause (`crates/victory-loader/src/crash.rs`) - `log_crash` called `eprint!("{text}");` before `append_to_log(&text);`. - `log_crashes_to`'s panic hook called `print(info)` (std's panicking stderr hook) before `append_to_log(...)`. - `report()` (called from `extern "system"` exception handlers) called `eprintln!` / `eprint!` before `append_to_log(&text)`. ### Are you working on a fix? Yes, I'm on it (fix implemented and tested in `victory-loader`; opening PR shortly).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 16:12:21 +00:00
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#4974
No description provided.