Cannot get into world under Proton #57
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#57
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@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+ pixelc0a7fe77b1862e10). WithVKD3D_DISABLE_EXTENSIONS=VK_EXT_mesh_shader, crash relocates to a vertex/pixel PSO (089d6271be6650ef/fa455c8a3c32577b). Compute PSOs never crash.RADV_DEBUG=llvmrejected (release build);ACO_DEBUG=validateno 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 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=validatewere reasonable things to try but are not relevant to the actual fault.What happens is:
dxil-spirv(8b48f0e0392d76be4fdcea2a3ba3ea99dddaae5b) whose structurizer emits SPIR-V with a non-structured loop exit for the fragment shaderc0a7fe77b1862e10.pixel.dxil.spirv_to_nir()correctly rejects that SPIR-V and returnsNULL.radv_shader_spirv_to_nir()then dereferences theNULL, sovkCreateGraphicsPipelines()faults withc0000005"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.3reports:Disabling
VK_EXT_mesh_shaderjust 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:8b48f0e(vkd3d-proton 3.1 pin)2d0df0c(parent of fix)71967a3("Rewrite the structurizer from scratch")b540c8a(current vkd3d-proton master pin)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-spirvsubmodule bumped to788f3e2(the first pin containing71967a3) and ran the game into the world. Result: 0handle_syscall_faultrecords 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-spirvat or after71967a3. Also avoid the oldvkd3d-proton.cachegenerated by 3.1, since it can contain SPIR-V from the broken translator; use a fresh cache directory orVKD3D_SHADER_CACHE_PATH=0once.One caveat: do not use
VKD3D_SHADER_DUMP_PATHto diagnose this. It forcespipeline_library_ignore_spirvin 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.