ProjectScarlett on RTX 2060 (Turing): access violation in d3d12core after a null compute pipeline substitution #72

Closed
opened 2026-11-26 06:29:12 +00:00 by github-bot · 1 comment
Owner

@⁠jessebuffington on GitHub · 2026-11-24 16:25 UTC · original

Summary

With the clwb workaround from #71, ProjectScarlett gets past device creation and display surface setup. It then exits about 6 seconds after launch with exit code 5. Sequence:

  1. vkd3d-proton rejects a compute shader (DXBC dc4a8a779b6de0f45f9b3e0e4e71ba1c, 5136 bytes, includes a DXIL chunk) with "Invalid shader bytecode".
  2. d3d12_xs substitutes a null compute pipeline.
  3. A d3d12_xs.dll worker thread then crashes with an access violation inside d3d12core.dll.

The behaviour is identical on 3086e0b and 02953b0 (after the packed-integer shader changes), and the stack is identical in both runs.

01dc:warn:debugstr:OutputDebugStringA "TuxBox d3d12_xs: compute pipelines wait 20s, then return a null pipeline while the driver compile continues (16 at a time)\n"
vkd3d-proton:vkd3d_compile_shader_stage: Failed to compile shader, vkd3d result -4.
vkd3d-proton:hresult_from_vkd3d_result: Invalid shader bytecode.
vkd3d-proton:d3d12_pipeline_state_init_compute: Failed to create Vulkan compute pipeline, hr 0x80004005.
01dc:warn:debugstr:OutputDebugStringA "TuxBox d3d12_xs: compute pipeline creation failed (0x80004005, 5136 bytes, DXBC dc4a8a779b6de0f45f9b3e0e4e71ba1c, chunks SFI0/ISG1/OSG1/PSV0/RTS0/STAT/ILDN/HASH/DXIL)\n"
01dc:warn:debugstr:OutputDebugStringA "TuxBox d3d12_xs: substituted null compute pipeline for an untranslated shader (1 so far)\n"
0220:warn:seh:dispatch_exception EXCEPTION_ACCESS_VIOLATION exception (code=c0000005) raised
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBB3B1C4: L"d3d12core.dll" + 00000000002CB1C4.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBAF19F4: L"d3d12core.dll" + 00000000002819F4.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBADE907: L"d3d12core.dll" + 000000000026E907.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBADCF50: L"d3d12core.dll" + 000000000026CF50.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBAD3686: L"d3d12core.dll" + 0000000000263686.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCAF93C: L"d3d12core.dll" + 000000000043F93C.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCE57AD: L"d3d12core.dll" + 00000000004757AD.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCBCD7B: L"d3d12core.dll" + 000000000044CD7B.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCC043F: L"d3d12core.dll" + 000000000045043F.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBC84609: L"d3d12core.dll" + 0000000000414609.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFBC70352: L"d3d12core.dll" + 0000000000400352.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFC691B3A: L"d3d12_xs.dll" + 0000000000001B3A.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFC6BD982: L"d3d12_xs.dll" + 000000000002D982.
0220:warn:seh:virtual_unwind backtrace: 00006FFFFC6D1D47: L"d3d12_xs.dll" + 0000000000041D47.

The recorded run in evidence/projectscarlett-startup.json used an RTX 4070 Ti SUPER on the same Proton build. That suggests the shader compiles there but not on Turing/this driver. vkd3d-proton also logs Disabling shader_float_controls2 on NV drivers due to buggy implementation. on this system.

Questions

  • Is the crash on thread 0220 a use of the null pipeline (e.g. a dispatch or command-list record using it), or an unrelated fault?
  • Is the dc4a8a77… shader known to need a feature Turing lacks? I can run more diagnostics if you tell me what you need, e.g. VKD3D_DEBUG/VKD3D_SHADER_DEBUG output or a dump of the shader.

Environment

  • Package RockstarGamesInc.28872443D20A7 1.0.2.1, exe patched for clwb only (original SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993)
  • GPU: NVIDIA GeForce RTX 2060, driver 615.71.09, Vulkan 1.4.351
  • CPU: Intel Core i9-9900
  • Proton: 1793301796 experimental-11.0-20261027b-x86_64 (vkd3d-proton build cae2e003bb82516), umu-launcher 1.4.4
  • OS: Manjaro, kernel 6.12.112
  • TuxBox: 02953b0; providers built with Microsoft DXC 1.9.2609.5; all staged DLLs byte-identical to build/
  • Launched offline with unshare --user --map-current-user --net, as in the docs

scarlett-clwb.log

**@⁠jessebuffington** on GitHub · 2026-11-24 16:25 UTC · [original](https://github.com/brcly/TuxBox/issues/72) ## Summary With the `clwb` workaround from https://git.gtahub.st/github/brcly--TuxBox/issues/71, ProjectScarlett gets past device creation and display surface setup. It then exits about 6 seconds after launch with exit code 5. Sequence: 1. vkd3d-proton rejects a compute shader (DXBC `dc4a8a779b6de0f45f9b3e0e4e71ba1c`, 5136 bytes, includes a DXIL chunk) with "Invalid shader bytecode". 2. `d3d12_xs` substitutes a null compute pipeline. 3. A `d3d12_xs.dll` worker thread then crashes with an access violation inside `d3d12core.dll`. The behaviour is identical on `3086e0b` and `02953b0` (after the packed-integer shader changes), and the stack is identical in both runs. ``` 01dc:warn:debugstr:OutputDebugStringA "TuxBox d3d12_xs: compute pipelines wait 20s, then return a null pipeline while the driver compile continues (16 at a time)\n" vkd3d-proton:vkd3d_compile_shader_stage: Failed to compile shader, vkd3d result -4. vkd3d-proton:hresult_from_vkd3d_result: Invalid shader bytecode. vkd3d-proton:d3d12_pipeline_state_init_compute: Failed to create Vulkan compute pipeline, hr 0x80004005. 01dc:warn:debugstr:OutputDebugStringA "TuxBox d3d12_xs: compute pipeline creation failed (0x80004005, 5136 bytes, DXBC dc4a8a779b6de0f45f9b3e0e4e71ba1c, chunks SFI0/ISG1/OSG1/PSV0/RTS0/STAT/ILDN/HASH/DXIL)\n" 01dc:warn:debugstr:OutputDebugStringA "TuxBox d3d12_xs: substituted null compute pipeline for an untranslated shader (1 so far)\n" 0220:warn:seh:dispatch_exception EXCEPTION_ACCESS_VIOLATION exception (code=c0000005) raised 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBB3B1C4: L"d3d12core.dll" + 00000000002CB1C4. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBAF19F4: L"d3d12core.dll" + 00000000002819F4. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBADE907: L"d3d12core.dll" + 000000000026E907. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBADCF50: L"d3d12core.dll" + 000000000026CF50. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBAD3686: L"d3d12core.dll" + 0000000000263686. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCAF93C: L"d3d12core.dll" + 000000000043F93C. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCE57AD: L"d3d12core.dll" + 00000000004757AD. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCBCD7B: L"d3d12core.dll" + 000000000044CD7B. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBCC043F: L"d3d12core.dll" + 000000000045043F. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBC84609: L"d3d12core.dll" + 0000000000414609. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFBC70352: L"d3d12core.dll" + 0000000000400352. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFC691B3A: L"d3d12_xs.dll" + 0000000000001B3A. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFC6BD982: L"d3d12_xs.dll" + 000000000002D982. 0220:warn:seh:virtual_unwind backtrace: 00006FFFFC6D1D47: L"d3d12_xs.dll" + 0000000000041D47. ``` The recorded run in `evidence/projectscarlett-startup.json` used an RTX 4070 Ti SUPER on the same Proton build. That suggests the shader compiles there but not on Turing/this driver. vkd3d-proton also logs `Disabling shader_float_controls2 on NV drivers due to buggy implementation.` on this system. ## Questions - Is the crash on thread `0220` a use of the null pipeline (e.g. a dispatch or command-list record using it), or an unrelated fault? - Is the `dc4a8a77…` shader known to need a feature Turing lacks? I can run more diagnostics if you tell me what you need, e.g. `VKD3D_DEBUG`/`VKD3D_SHADER_DEBUG` output or a dump of the shader. ## Environment - Package `RockstarGamesInc.28872443D20A7` 1.0.2.1, exe patched for `clwb` only (original SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993`) - GPU: NVIDIA GeForce RTX 2060, driver 615.71.09, Vulkan 1.4.351 - CPU: Intel Core i9-9900 - Proton: 1793301796 experimental-11.0-20261027b-x86_64 (vkd3d-proton build `cae2e003bb82516`), umu-launcher 1.4.4 - OS: Manjaro, kernel 6.12.112 - TuxBox: `02953b0`; providers built with Microsoft DXC 1.9.2609.5; all staged DLLs byte-identical to `build/` - Launched offline with `unshare --user --map-current-user --net`, as in the docs [scarlett-clwb.log](https://github.com/user-attachments/files/35356893/scarlett-clwb.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:29:12 +00:00
Author
Owner

@⁠brcly on GitHub · 2026-11-24 22:34 UTC · original

Fixed

**@⁠brcly** on GitHub · 2026-11-24 22:34 UTC · [original](https://github.com/brcly/TuxBox/issues/72#issuecomment-7146402156) Fixed
This discussion has been locked. Commenting is limited to contributors.
No description provided.