descriptor: views_die_with_their_resource uses a real resource, no more crash on native Windows #558

Manually merged
github merged 1 commit from github-bot/gh-558 into main 2026-12-05 17:30:08 +00:00 AGit
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 07:01 UTC · original
Kal0s-design:fix/views-die-crash → main · +8 −4 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC

On native Windows the test views_die_with_their_resource takes down the whole victory-gpu test binary with STATUS_ACCESS_VIOLATION, even with one test thread, so none of the tests after it run.

The test passed a made-up resource address (0x7777_0000) to create_srv. On Windows builds record() describes the view through records::kind, which calls resource::buffer_bytes, and that reads the resource's description through the pointer. Nothing is mapped at that address on Windows, so the read faults. On other hosts that part of record() is compiled out, which is why the test passed there. Real callers always pass a real resource or null, so the product code is fine and only the test was wrong.

The test now makes a small buffer with resource::test_buffer, runs the same checks against its address, and releases it at the end. What the test checks has not changed.

On one NVIDIA desktop card the test now passes and the full victory-gpu lib suite runs to the end with 354 passed. The only failures are the four that already fail on main (two indirect host_list tests and two pipeline::host library loads). Before the change the binary aborted after 48 tests. The test creates no device, so the adapter makes no difference.

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 07:01 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/558) `Kal0s-design:fix/views-die-crash` → `main` · +8 −4 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC On native Windows the test views_die_with_their_resource takes down the whole victory-gpu test binary with STATUS_ACCESS_VIOLATION, even with one test thread, so none of the tests after it run. The test passed a made-up resource address (0x7777_0000) to create_srv. On Windows builds record() describes the view through records::kind, which calls resource::buffer_bytes, and that reads the resource's description through the pointer. Nothing is mapped at that address on Windows, so the read faults. On other hosts that part of record() is compiled out, which is why the test passed there. Real callers always pass a real resource or null, so the product code is fine and only the test was wrong. The test now makes a small buffer with resource::test_buffer, runs the same checks against its address, and releases it at the end. What the test checks has not changed. On one NVIDIA desktop card the test now passes and the full victory-gpu lib suite runs to the end with 354 passed. The only failures are the four that already fail on main (two indirect host_list tests and two pipeline::host library loads). Before the change the binary aborted after 48 tests. The test creates no device, so the adapter makes no difference. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On native Windows record() describes the view and reads the resource
through the pointer, so the made-up 0x7777_0000 address faulted and took
down the whole test binary. Use a small test buffer instead.

AI-assisted: yes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 07:05:08 +00:00
github manually merged commit 4f61662253 into main 2026-12-05 17:30:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.