Cannot get into world under Proton #57

Closed
opened 2026-11-26 03:31:37 +00:00 by github-bot · 1 comment
Owner

@⁠nullish-cat on GitHub · 2026-11-26 00:37 UTC · original

Cross compiled under MSVC, game runs and gets to main menu, but crashes when trying to load into the world.

Following is copy and pasted from Qwen, but I mean, this entire repo and all the issues and PRs are AI-generated anyways, so whatever:

vkCreateGraphicsPipelines access violation (0xc0000005, "in Unix call") on RADV NAVI23
Host: RX 6600 XT (NAVI23), Mesa 26.2.5 RADV, ReBAR enabled; Fedora 44, kernel 7.2.11; Wine staging 11.17; vkd3d-proton 3.1.0 (4522cc1a8b1347f).
App: VIctory Xbox-Series HLE emitting SM 6.6 DXIL incl. mesh shaders.
Crash at first mesh PSO (mesh d4111a6e6ea49d91 + pixel c0a7fe77b1862e10). With VKD3D_DISABLE_EXTENSIONS=VK_EXT_mesh_shader, crash relocates to a vertex/pixel PSO (089d6271be6650ef / fa455c8a3c32577b). Compute PSOs never crash.
RADV_DEBUG=llvm rejected (release build); ACO_DEBUG=validate no assert; AMDVLK fails to present. Logs attached.

Can't upload logs directly for some reason so here's a paste:
https://your.ls/awpw2

**@⁠nullish-cat** on GitHub · 2026-11-26 00:37 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/57) Cross compiled under MSVC, game runs and gets to main menu, but crashes when trying to load into the world. Following is copy and pasted from Qwen, but I mean, this entire repo and all the issues and PRs are AI-generated anyways, so whatever: **vkCreateGraphicsPipelines access violation (0xc0000005, "in Unix call") on RADV NAVI23** Host: RX 6600 XT (NAVI23), Mesa 26.2.5 RADV, ReBAR enabled; Fedora 44, kernel 7.2.11; Wine staging 11.17; vkd3d-proton 3.1.0 (4522cc1a8b1347f). App: VIctory Xbox-Series HLE emitting SM 6.6 DXIL incl. mesh shaders. Crash at first mesh PSO (mesh `d4111a6e6ea49d91` + pixel `c0a7fe77b1862e10`). With `VKD3D_DISABLE_EXTENSIONS=VK_EXT_mesh_shader`, crash relocates to a vertex/pixel PSO (`089d6271be6650ef` / `fa455c8a3c32577b`). Compute PSOs never crash. `RADV_DEBUG=llvm` rejected (release build); `ACO_DEBUG=validate` no assert; AMDVLK fails to present. Logs attached. Can't upload logs directly for some reason so here's a paste: https://your.ls/awpw2
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:37 +00:00
Author
Owner

@⁠nullish-cat on GitHub · 2026-11-26 05:32 UTC · original

Managed to fix it, just runs like ass cause of my hardware, which is expected atp. In case anyone else needs it, go go gadget ai yapping:

I reproduced this on the same hardware and traced it down. It is not a mesh-shader bug in VIctory, and RADV_DEBUG=llvm / ACO_DEBUG=validate were reasonable things to try but are not relevant to the actual fault.

What happens is:

  • vkd3d-proton 3.1 pins an old dxil-spirv (8b48f0e0392d76be4fdcea2a3ba3ea99dddaae5b) whose structurizer emits SPIR-V with a non-structured loop exit for the fragment shader c0a7fe77b1862e10.pixel.dxil.
  • RADV's spirv_to_nir() correctly rejects that SPIR-V and returns NULL.
  • radv_shader_spirv_to_nir() then dereferences the NULL, so vkCreateGraphicsPipelines() faults with c0000005 "in Unix call" instead of returning a clean pipeline error.

I captured the rejected SPIR-V with MESA_SPIRV_DUMP_PATH (RADV dumps before parsing, so this does not perturb the path). spirv-val --target-env vulkan1.3 reports:

error: line 2079: block <ID> '1722[%1722]' exits the loop headed by <ID> '1640[%1640]',
but not via a structured exit

Disabling VK_EXT_mesh_shader just changes which PSO first reaches a bad fragment program; it is not evidence that mesh shaders are the root cause. Compute PSOs never crashed because they do not go through that structurizer path.

Bisect of dxil-spirv:

commit result
8b48f0e (vkd3d-proton 3.1 pin) invalid SPIR-V
2d0df0c (parent of fix) invalid SPIR-V
71967a3 ("Rewrite the structurizer from scratch") valid
b540c8a (current vkd3d-proton master pin) valid

This is the same bug class as vkd3d-proton #3387, which was closed as fixed by the new structurizer.

Verification: I built vkd3d-proton 3.1 with only the dxil-spirv submodule bumped to 788f3e2 (the first pin containing 71967a3) and ran the game into the world. Result: 0 handle_syscall_fault records and no device loss across several runs. Full vkd3d-proton 3.2/master also avoids the crash, but had additional rendering differences here; the minimal submodule bump was the cleanest fix.

Workaround: Use vkd3d-proton 3.2/master, or rebuild 3.1 with dxil-spirv at or after 71967a3. Also avoid the old vkd3d-proton.cache generated by 3.1, since it can contain SPIR-V from the broken translator; use a fresh cache directory or VKD3D_SHADER_CACHE_PATH=0 once.

One caveat: do not use VKD3D_SHADER_DUMP_PATH to diagnose this. It forces pipeline_library_ignore_spirv in vkd3d and changes the failing path.

Separately, RADV should return a clean shader/pipeline compile error rather than crashing on malformed SPIR-V, but that is a driver robustness issue and is not caused by a VIctory shader bug. I can share the validator output and the fault disassembly; I will not attach the proprietary shader binary itself.

**@⁠nullish-cat** on GitHub · 2026-11-26 05:32 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/57#issuecomment-7183585326) Managed to fix it, just runs like ass cause of my hardware, which is expected atp. In case anyone else needs it, go go gadget ai yapping: I reproduced this on the same hardware and traced it down. It is not a mesh-shader bug in VIctory, and `RADV_DEBUG=llvm` / `ACO_DEBUG=validate` were reasonable things to try but are not relevant to the actual fault. What happens is: - vkd3d-proton 3.1 pins an old `dxil-spirv` (`8b48f0e0392d76be4fdcea2a3ba3ea99dddaae5b`) whose structurizer emits SPIR-V with a non-structured loop exit for the fragment shader `c0a7fe77b1862e10.pixel.dxil`. - RADV's `spirv_to_nir()` correctly rejects that SPIR-V and returns `NULL`. - `radv_shader_spirv_to_nir()` then dereferences the `NULL`, so `vkCreateGraphicsPipelines()` faults with `c0000005` "in Unix call" instead of returning a clean pipeline error. I captured the rejected SPIR-V with `MESA_SPIRV_DUMP_PATH` (RADV dumps before parsing, so this does not perturb the path). `spirv-val --target-env vulkan1.3` reports: ```text error: line 2079: block <ID> '1722[%1722]' exits the loop headed by <ID> '1640[%1640]', but not via a structured exit ``` Disabling `VK_EXT_mesh_shader` just changes which PSO first reaches a bad fragment program; it is not evidence that mesh shaders are the root cause. Compute PSOs never crashed because they do not go through that structurizer path. Bisect of `dxil-spirv`: | commit | result | | --- | --- | | `8b48f0e` (vkd3d-proton 3.1 pin) | invalid SPIR-V | | `2d0df0c` (parent of fix) | invalid SPIR-V | | `71967a3` ("Rewrite the structurizer from scratch") | valid | | `b540c8a` (current vkd3d-proton master pin) | valid | This is the same bug class as vkd3d-proton #3387, which was closed as fixed by the new structurizer. **Verification:** I built vkd3d-proton 3.1 with only the `dxil-spirv` submodule bumped to `788f3e2` (the first pin containing `71967a3`) and ran the game into the world. Result: **0 `handle_syscall_fault` records and no device loss** across several runs. Full vkd3d-proton 3.2/master also avoids the crash, but had additional rendering differences here; the minimal submodule bump was the cleanest fix. **Workaround:** Use vkd3d-proton 3.2/master, or rebuild 3.1 with `dxil-spirv` at or after `71967a3`. Also avoid the old `vkd3d-proton.cache` generated by 3.1, since it can contain SPIR-V from the broken translator; use a fresh cache directory or `VKD3D_SHADER_CACHE_PATH=0` once. One caveat: do not use `VKD3D_SHADER_DUMP_PATH` to diagnose this. It forces `pipeline_library_ignore_spirv` in vkd3d and changes the failing path. Separately, RADV should return a clean shader/pipeline compile error rather than crashing on malformed SPIR-V, but that is a driver robustness issue and is not caused by a VIctory shader bug. I can share the validator output and the fault disassembly; I will not attach the proprietary shader binary itself.
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/avatarmanz--VIctory-7900XTX#57
No description provided.