descriptor: views_die_with_their_resource uses a real resource, no more crash on native Windows #558
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!558
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-558"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCOn 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
github-bot referenced this pull request2026-12-05 11:18:26 +00:00