NVIDIA RTX 4060 Ti 16 GB: menus and loading art render, the world loads and runs (no crash), but every in-world frame is black - and the view heap is 310,720 slots short #15
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/Belobug--VIctory-Belobug-AMD#15
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?
@WuDiXiaoBo on GitHub · 2026-11-25 11:58 UTC · original
NVIDIA RTX 4060 Ti 16 GB: menus and loading art render, the world loads and runs (no crash), but every in-world frame is black - and the view heap is 310,720 slots short
Second NVIDIA report (after #9, RTX 5060 8 GB, which stops on the loading spinner). Here the world does load - the card has 16 GB - and then presents black. Long report, because it may be the same root cause as #9 seen one step further along, and one number below looks like the reason for the black image.
Environment
4cbe9d7,cargo build --profile diag -p victory --features diagnostics(release builds the same), fresh shader cacheVICTORY_LOG=infoandVICTORY_KEYSpressing Enter; no otherVICTORY_*variable unless the section below says soWhat works
host pipeline refusedlines at all: every refusal here happens at translation, with a named reason (see below). That is a much nicer failure than a refused PSO.What does not: the picture
The world is black. The HUD text and the subtitles draw over it, music and voices play, and nothing else is there. Same run, three captures written by
VICTORY_CAPTURE, two pixel checks each (every 7th pixel of a 1920x1080 image):frame-2048(before the world)frame-3072(in the world, second run)frame-4096(in the world, first run)frame-4096(in the world, recipe run)So the presented image is not "dark" or "mostly black": every sampled pixel of it is exactly zero. The present path itself works, because the loading art and the subtitles arrive at the window.
The number that looks like the cause: the view heap is short
In the same run, before the first world frame:
The fork's doubled dynamic descriptor slots want 1,245,184 views; this host caps the heap at 1,000,000; 934,464 are made and 310,720 are lost. If the title's (or the shaders') indices reach into the lost 25 %, whatever they sample is not there - and sampling nothing reads as zero, which is what the captured frames are.
#9reports the same two lines on the RTX 5060, where they come with the spinner that never finishes.Is the doubled capacity expected to fit in one heap on every host? If not, a fallback to the heap's own size (and translating the shaders' index space to that) would be worth more than the doubling on cards where it does not fit. That is the first thing I would try, and I cannot test it myself without patching the fork.
119 compute programs do not translate (same set as #9)
All 119 are compute, by stage. By reason:
console wave64 lanes on a host without 64-lane waves is not supportedan address in an SGPR that is no root parameter is not supporteda wave64 group sharing LDS without barriers on a host without 64-lane waves is not supported#9counts 59 / 30 / 31 = 120 for the same title on the 5060, so this is the same set, three programs fewer. Their dispatches are dropped; the log prints, per frame, one line per program (dropped 1.0/frame without a host pipeline: compute <hash>), 1-2 a frame for most of them. If it helps, I can paste the 119 hashes with their reason.Frame times (default run, host's own frame line)
Note the shape: unlike the fxceless fork on this same machine (where the card sits at 43-265 ms of a multi-second frame while the CPU waits for title memory), here the card is busy 280-456 ms and the CPU side is comparatively small. That is at least consistent with the shaders being handed a broken descriptor space and the card chewing through work that produces nothing.
Your README recipe, run as written
VICTORY_PRESENT_TARGET=1x1:1,VICTORY_HAIR=1, and the eight skipped tree pipelines, same save and build, fresh cache:VICTORY_PRESENT_TARGET=1x1:1shows horizontally stretched colour bands across the window (white/grey with curved red-green and blue arcs), not the colour of that 1x1 pixel, and the same in the capture of that run. On this host the override appears to read past a 1x1 resource instead of stretching it, so it cannot be used as a "is the present path alive" check here. It may well be a solid colour on AMD; that difference alone may be worth a look.What I have not tried
VICTORY_AMBIENTwas left at its default; it logs nothing here, and the picture is black rather than magenta.Why I think it is this fork and not the machine or the save
The same checkpoint, the same dump, the same machine renders lit geometry (sunlit surfaces, with the known black shadows) in
fxceless/victory-forkata26859f, 2-4 fps, with the card at 43-265 ms a frame. So the data, the save and the card are fine; the difference is in this tree. That fork also has no view-heap line like the one above.I can attach the run's full log (1.95 MB,
bc.err.log-style) and the captures (loading art 3.8 MB, black world 6 KB, the bands 2.5 MB) to this issue if you want them, or run any switch you name.AI-assisted: the runs, the captures, the pixel counts and this text were produced with DeepSeek Harness (DeepSeek-V4-Flash) on my machine, at my request. No game data is included; the captures are of the title's own presented frames and stay out of the repository.
The 119 compute programs, by hash and reason (click to expand)
03e3e26783a5799b196bf6114ff3a1311c4b3c0547e3e6fa2fa2f94f560faf39339d476c267c03c734d88edf583f3778369cbe906ea727643d002bca51069e01488b12f581b37bfc6336cb3769fc53d7647443e8b7b6841578c04f8d197a29047c4002c5baa28f339e096a1111c6faaaa25ed0e3d4d521bab2b1ea29bc3987dbb96880482a17f632c7d7a6283fad3cd6dd411d22d78b3625df3cf10a274e26cae24dff38794241abe535cfd7baac93b8e798cc38df9dabc0f41afb810c1e29c6f753697c1c03772bf8f50ab85e7b10bbfa0c0819dc86ca60fd46520032208bedfea2b7d3f17b504f14394a322f6dd5c2162216b9cfd91aaf190fbf0ebe040169198f6dfd2b81bcea28918b7150a7aad535e51bb27a4632943b90165a77d95cdf3cea4534bbc156323df629ffc3d0a2a64b5aedc0e96b07704ddd6f9702fab2a75552dac6a2b7a1fd5c09eb42b7a3c3625e68767498c57eb66f6a359d1166bb277bb5b1b91d283a28a197f50cd8481541a63e2dfc25ba3155bb55c842c391589fc85822de2e41cfaacaa78b8ca62bc3d6cb9647e77864cb3ae63d22c4def9ba6ae95858837a9aa22df28a33a89eaa2caaf6e47efa50226bebf6eb6498409ca974f94e5d8bf4e1cf05ffd93c8a029ff01600bcbbf278ee3d9d02384a60fda6f2d00a5d4f9047b3dce40c028454b58543f0119ee96f602f1668136986812880cead14264103296aa43a17af15c4015cb4b6191ecaed66eea3b11d44a723bdebbf271f1fbd86759b3da220b78ee12ecdb57d227a043578e42fd8240cb516c1af0bc32809db6c31de483d2b17036bf3a1d6152cc4c197ee29e2912da4beb386509b772f03a2df10503cef31d703207b51549a3c196d81eca7ff15466ec41d3f9d24c055679a0547649d0b56f3bf2d9388e5a75b2ce592c3a5dd095c6224a6bc3a406665de113e23fa4fdd660814153af431857168dd781ca7efb9804b342cb4b9d1e98dd8d739047fe557922e1d0ee1e19a859d1d228b02e56a96a14c1da4be7b9837a1bf269d5b19f025a53a7977fe762268ab5455fc6abb804fabd7a22106898c66acf14a70f37fb012b22a16a178976e1bb4b0427232707598b7953a05b189dfc1b8f3f7979d6bbc50bad01f53f53248e5be14e72d86362031be6ce5d849d51127c5cb8ef6e18af21ac9da71da40af2e28ce2378e5e8711aadce79e9eba7ae0348d2b169b82f67ec5bd7db57731ada919be07a678d3f79d4cde18931c72af42e46eae3498e6553afa8f0aa2b1e79275592f133e35efed2a48af79824724d8e2daff8a6133bfedc5759fa0bd10a35bfef3cfdd56d97a806bccabelobug-4060ti-run.log
@yunsuwan79-blip on GitHub · 2026-11-25 12:18 UTC · original
The same thing is happening
@WuDiXiaoBo on GitHub · 2026-11-25 12:33 UTC · original
Applied the
legal_statepatch from #13 on this machine: the black image is gone — geometry and sky are visible now (screenshot and log in #13), the colour is still overexposed.@WuDiXiaoBo on GitHub · 2026-11-25 12:40 UTC · original
@yunsuwan79-blip thanks for confirming — could you add a few details so this is useful rather than a "+1"?
git rev-parse --short HEADof the fork, or which release you downloaded)legal_statepatch from #13 changes anything for you: incrates/victory-gpu/src/list.rs,host_barrier(), send both sides of the transition throughlegal_stateand skip transitions whose legal states match (the snippet in #13 applies to that function)On my card (RTX 4060 Ti 16 GB, Ada, 32-lane) that patch turns a fully black image into visible geometry — the character's silhouette against a sky with red clouds, the ground blown out white — so the colour is still wrong, but the scene is composed at all. If it does nothing on yours, then your failure is upstream of that barrier path, and that would be worth knowing here.
@yunsuwan79-blip on GitHub · 2026-11-25 13:22 UTC · original
I am using an RTX 4060. This issue occurs only in this specific project; in other projects, the sky renders exactly as you described.
Following the method you suggested has led to an improvement.
@yunsuwan79-blip on GitHub · 2026-11-25 13:26 UTC · original
I applied the host_barrier change described here: both the before and after states are normalized with legal_state, and the barrier is skipped when the normalized states are identical.
I built the release version successfully on my RTX 4060 (driver 32.0.16.2124). I have not tested the patched build in-game yet, so I can’t confirm whether it fixes the rendering issue on my system.
cargo test --workspace reported 108 passed and 1 failed. The failing test was descriptor::host::tests::dynamic_slots_are_held_until_released; it concerns descriptor slots, not host_barrier.
I’ll report back after testing the patched build.
@yunsuwan79-blip on GitHub · 2026-11-25 13:29 UTC · original
@yunsuwan79-blip on GitHub · 2026-11-25 13:31 UTC · original
I tested the host_barrier change from #13 on an RTX 4060. The world is no longer completely black, but I still can’t see any world geometry—the screen is a flat light blue. The window reports 2 FPS (637.5 ms/frame) and 331 draws/frame. I’ve attached a screenshot.
I haven’t tested other settings or captured diagnostic logs yet. Let me know if either would help investigate this further.
@Yoshi-233 on GitHub · 2026-11-25 14:22 UTC · original
I reproduced a separate lighting pipeline failure on a 4070 Ti SUPER, driver 32.0.16.1742, on a locally modified Belobug build based on
71652a2. Four indirect-lighting compute shaders passed DXIL validation but failed in the game with0x80004005. After the game exited I created a standalone D3D12 debug device on the same GPU. All four root signatures succeeded, thenCreateComputePipelineStatereturned0x8007000Efor hashes39f0e9aeb156a61c,4a1a6cda9de2974b,6bb493a39685ddcc, andb58eb3ca6ee46427. Four control shaders created pipelines on that device. The in-game test still showed a corrupted world and ended inDXGI_ERROR_DEVICE_HUNG. The failing call is reproducible independently; the cause of the final image and hang remains open.@pjanes22 on GitHub · 2026-11-25 17:56 UTC · original
Data from an RTX 5080 (16 GB) on the same problem: which slots of the title's
1,245,184-slot view heap the title writes (counted at every descriptor write,
~3.5 min in the world, standing still):
So the slots lost past the 1,000,000 cap are ~20k written ones (about 10 % of
all written slots), and the unwritten gap is too small to shift the top range
into it. A remap of the slots past the cap (table in the shader, slots handed
out from the gap) would cover them.
With #144 applied (clamp to a sentinel inside the capped heap) the GPU
timeouts during world load stopped on this card (no submission over 1 s in a
7-minute run; before: 4.7-6.5 s submissions and DXGI_ERROR_DEVICE_HUNG).
@MrBiscuit921 on GitHub · 2026-11-25 22:08 UTC · original
Adding another NVIDIA GeForce RTX 4060 (8 GB) baseline data point (unpatched build, i5-13400F / 32 GB DDR5 / Win11 Build 26200 / Driver
621.35):host view heap capped at 1000000(wanted=1245184 made=934464 lost=310720).VICTORY_FPS=0): Menus run at 240 FPS and loading screens at 30 FPS, then every in-world frame renders completely black at ~1 FPS while audio continues playing.-1073741819(0xC0000005Access Violation), nocrashes.logwritten.victory doctorcommand to check a PC before a run #285victory doctorcommand to check a PC before a run #285