Crash (null-pointer write) right after DirectStorage zlib requests fail with 0x8007000d while loading core_restofworld #812

Closed
opened 2026-11-28 06:41:01 +00:00 by github-bot · 3 comments
Owner

@⁠friessssss on GitHub · 2026-11-28 06:39 UTC · original

Summary

The opening scene runs fine at about 30 fps. When the title starts streaming core_restofworld001.rpf / core_restofworld.rpf, a burst of DirectStorage zlib requests fails with hr=0x8007000d (ERROR_INVALID_DATA). About 0.5 s later the title crashes writing to 0x18 in its own code. It looks like the title uses the buffers from the failed requests as if they were good.

Environment

  • GPU: NVIDIA GeForce RTX 3090 Ti (24 GB), driver 621.24
  • CPU: Intel 12700K (20 threads, 16 reported as fast cores)
  • RAM: 32 GB
  • OS: Windows 11, build 10.0.26300
  • VIctory-NVIDIA release:v2026.11.28.01 , build hash b99f876b74d4a77f
  • Streamline 2.14.16 / NGX 310.9.16
  • Settings: DLSS on (performance, 1280x720 → 2560x1440), frame gen off, SDR

What happens

  1. The title opens G:\pack\core_restofworld001\core_restofworld001.rpf and G:\pack\core_restofworld\core_restofworld.rpf (06:28:19).
  2. 17 zlib requests fail (06:28:20.604), in two clusters of offsets:
    dstorage: request failed: zlib options=0x1 offset=75452791984 source_size=39546 destination_size=65536 ... hr=0x8007000d
    dstorage: request failed: zlib options=0x1 offset=73902698496 source_size=10687 destination_size=65536 ... hr=0x8007000d
    ... (offsets ~73,902,698,496–73,903,063,472 and ~75,452,723,200–75,452,893,568)
    
  3. Crash:
    unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x32cd692 (write 0x18: nothing mapped there)
    rax 0x8ea90f11 rbx 0x0 rcx 0x7ff9aee602f0 rdx 0x0 rsi 0xd231ac978 rdi 0x7ff9aee602f0
    #0 +0x32cd692  #1 +0x36b2d5  #2 +0x56b5069  #3 +0x275fbb5  #4 +0x1d0cab6
    

Questions

  • Can options=0x1 zlib requests legitimately fail on valid data in the emulator's decoder (header or raw-deflate handling, or a read that comes back short at large offsets)? Or does 0x8007000d here always mean the source bytes are bad?
  • Could a failed request return an error the title actually handles, so it doesn't consume an empty buffer?

Other notes (probably unrelated)

  • host view heap capped at 1000000; views past it read a null slot count=1245184
  • Several "pipeline creation method that is not implemented" warnings for slots 0x218 and 0x1c8 at startup

Attached

crashes.log
victory-20261127-232821-4884.crash.log
victory-nvidia-play-20261128-062753-4884.log

**@⁠friessssss** on GitHub · 2026-11-28 06:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/812) ### Summary The opening scene runs fine at about 30 fps. When the title starts streaming `core_restofworld001.rpf` / `core_restofworld.rpf`, a burst of DirectStorage zlib requests fails with `hr=0x8007000d` (ERROR_INVALID_DATA). About 0.5 s later the title crashes writing to `0x18` in its own code. It looks like the title uses the buffers from the failed requests as if they were good. ### Environment - GPU: NVIDIA GeForce RTX 3090 Ti (24 GB), driver 621.24 - CPU: Intel 12700K (20 threads, 16 reported as fast cores) - RAM: 32 GB - OS: Windows 11, build 10.0.26300 - VIctory-NVIDIA release:v2026.11.28.01 , build hash `b99f876b74d4a77f` - Streamline 2.14.16 / NGX 310.9.16 - Settings: DLSS on (performance, 1280x720 → 2560x1440), frame gen off, SDR ### What happens 1. The title opens `G:\pack\core_restofworld001\core_restofworld001.rpf` and `G:\pack\core_restofworld\core_restofworld.rpf` (06:28:19). 2. 17 zlib requests fail (06:28:20.604), in two clusters of offsets: ``` dstorage: request failed: zlib options=0x1 offset=75452791984 source_size=39546 destination_size=65536 ... hr=0x8007000d dstorage: request failed: zlib options=0x1 offset=73902698496 source_size=10687 destination_size=65536 ... hr=0x8007000d ... (offsets ~73,902,698,496–73,903,063,472 and ~75,452,723,200–75,452,893,568) ``` 3. Crash: ``` unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x32cd692 (write 0x18: nothing mapped there) rax 0x8ea90f11 rbx 0x0 rcx 0x7ff9aee602f0 rdx 0x0 rsi 0xd231ac978 rdi 0x7ff9aee602f0 #0 +0x32cd692 #1 +0x36b2d5 #2 +0x56b5069 #3 +0x275fbb5 #4 +0x1d0cab6 ``` ### Questions - Can `options=0x1` zlib requests legitimately fail on valid data in the emulator's decoder (header or raw-deflate handling, or a read that comes back short at large offsets)? Or does 0x8007000d here always mean the source bytes are bad? - Could a failed request return an error the title actually handles, so it doesn't consume an empty buffer? ### Other notes (probably unrelated) - `host view heap capped at 1000000; views past it read a null slot count=1245184` - Several "pipeline creation method that is not implemented" warnings for slots 0x218 and 0x1c8 at startup ### Attached [crashes.log](https://github.com/user-attachments/files/35540976/crashes.log) [victory-20261127-232821-4884.crash.log](https://github.com/user-attachments/files/35540978/victory-20261127-232821-4884.crash.log) [victory-nvidia-play-20261128-062753-4884.log](https://github.com/user-attachments/files/35540977/victory-nvidia-play-20261128-062753-4884.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 06:41:01 +00:00
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-28 06:44 UTC · original

Possibly related, not the same crash. On our fork (same lineage; RTX 2070 SUPER 8 GB, Windows 11) one dstorage zlib request failed with hr=0x8007000d, once in one run (our build). Within about a second (logged just after the failure) the System log had a disk event 153 ("IO retried") for Disk 0, the game's SATA SSD, whose SATA controller also logged storahci 129 resets earlier (27 Nov, hours before). Ours was followed by "thread 'dstorage 5' has overflowed its stack", not an access violation at 0x18. Our request had options 0x200001; yours show 0x1.

Suggestion: check Event Viewer, Windows Logs, System, for disk/storahci warnings at your crash time. We suspect, but have not proven, that a flaky drive can produce invalid zlib data.

In dstorage.rs at trustno1 main 8fc22547 (main when I read it), a failed inflate is not retried: execute logs and returns the error (1436, 1446), and finish stores it in lane.failures (899-901). Only file reads are retried (read_into, 1562-1594). So, from the code, each failed request should be reported as an error. I found no recursion there, and I did not test your setup.

Checked with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-11-28 06:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/812#issuecomment-7235487454) Possibly related, not the same crash. On our fork (same lineage; RTX 2070 SUPER 8 GB, Windows 11) one dstorage zlib request failed with `hr=0x8007000d`, once in one run (our build). Within about a second (logged just after the failure) the System log had a `disk` event 153 ("IO retried") for Disk 0, the game's SATA SSD, whose SATA controller also logged `storahci` 129 resets earlier (27 Nov, hours before). Ours was followed by "thread 'dstorage 5' has overflowed its stack", not an access violation at 0x18. Our request had options 0x200001; yours show 0x1. Suggestion: check Event Viewer, Windows Logs, System, for `disk`/`storahci` warnings at your crash time. We suspect, but have not proven, that a flaky drive can produce invalid zlib data. In `dstorage.rs` at trustno1 main 8fc22547 (main when I read it), a failed inflate is not retried: `execute` logs and returns the error (1436, 1446), and `finish` stores it in `lane.failures` (899-901). Only file reads are retried (`read_into`, 1562-1594). So, from the code, each failed request should be reported as an error. I found no recursion there, and I did not test your setup. Checked with AI assistance (Claude Code).
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 06:46 UTC · original

Thanks for the detailed report.

The 17 failures are not scattered. They are every chunk of two entries:

  • 11 consecutive chunks from offset 73,902,698,496;
  • 6 consecutive chunks from 75,452,723,200.

Each chunk starts where the one before it ended. Other players stream these archives past the opening without this, so the decoder can read these entries. Here, the bytes at those two places in the file are not zlib streams. That points at the copy of core_restofworld001.rpf / core_restofworld.rpf on this PC, or at the drive under it, as Jesper suggests, rather than at the decoder.

To tell which:

  1. Run once more. If the same offsets fail again, the file is damaged at those two places. If other offsets fail, look at the drive or the memory: Event Viewer > Windows Logs > System, disk and storahci events at the crash time.
  2. If the same offsets fail, copy those two archives again.

On your questions:

  • Could the decoder fail on valid data? A request is read with 64-bit offsets, so above 4 GB too. A short read is read on to the end, and a read the host refuses is tried again (none was in your log). The data is then inflated as zlib, header included. A whole entry failing chunk after chunk is what bytes that are not zlib at all look like.
  • Could a failed request be handled? The title is told the request failed (0x8007000d), but it does not check and uses the buffer anyway. Nothing the layer can return makes it check.
**@⁠kibagami-nc** on GitHub · 2026-11-28 06:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/812#issuecomment-7235507567) Thanks for the detailed report. The 17 failures are not scattered. They are every chunk of two entries: - 11 consecutive chunks from offset 73,902,698,496; - 6 consecutive chunks from 75,452,723,200. Each chunk starts where the one before it ended. Other players stream these archives past the opening without this, so the decoder can read these entries. Here, the bytes at those two places in the file are not zlib streams. That points at the copy of `core_restofworld001.rpf` / `core_restofworld.rpf` on this PC, or at the drive under it, as Jesper suggests, rather than at the decoder. To tell which: 1. **Run once more.** If the same offsets fail again, the file is damaged at those two places. If other offsets fail, look at the drive or the memory: Event Viewer > Windows Logs > System, `disk` and `storahci` events at the crash time. 2. **If the same offsets fail,** copy those two archives again. On your questions: - **Could the decoder fail on valid data?** A request is read with 64-bit offsets, so above 4 GB too. A short read is read on to the end, and a read the host refuses is tried again (none was in your log). The data is then inflated as zlib, header included. A whole entry failing chunk after chunk is what bytes that are not zlib at all look like. - **Could a failed request be handled?** The title is told the request failed (`0x8007000d`), but it does not check and uses the buffer anyway. Nothing the layer can return makes it check.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 19:49 UTC · original

Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.

If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!

**@⁠trustno1-coder** on GitHub · 2026-11-29 19:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/812#issuecomment-7261578971) Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then. If it still happens on the [latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest), please open a new issue with the play log and crashes.log from that run. Thanks for reporting!
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#812
No description provided.