Game crashes when gpu usage reaches 7 GB (on 3070Ti) #2607
Open
opened 2026-11-29 07:18:22 +00:00 by svlvd
·
22 comments
No Branch/Tag specified
main
claude/loop-total
claude/pops-collision-seed
claude/dstorage-hold-page-reads
claude/host-image-copy-switch
feat/gdk-lifecycle-window-hook
claude/d16s8-uav-nvidia-fallback
feat/mfplat-offline-shim
claude/gameinput-slow-reader
fix/rt-null-barrier-clear
claude/depth-resolve-sample-positions
integration/palmetto-parity
claude/valu-literal-sext
claude/slot74-pool-handle
claude/rgb9e5-uint-alias-view
claude/fssm-root-layout-tables
feat/gdk-speech-display-lifecycle
asset-audio-skip-current
qemmhd/old-9940-rectangle-quad-lists
feat/ws2-offline-shim
qemmhd/rt-d16-unorm-uav
feat/xs-device-stops-7-9
qemmhd/rt-depth-same-base-shapes
qemmhd/rt-lazy-attachment-variant
feat/acphal-xma2-decoder
asset-audio-skip
codex/coord-claim-check-20261124-7e48
feat/xs-frame-pacing-presentx
feat/xs-device-vm-options
old-pr/9844
old-pr/9978
old-pr/9815
old-pr/10057
old-pr/9874
old-pr/9965
old-pr/9863
old-pr/10068
old-pr/10066
old-pr/10067
old-pr/10007
old-pr/10061
old-pr/10065
old-pr/10059
old-pr/10063
old-pr/10055
old-pr/10062
old-pr/10042
old-pr/10041
old-pr/10049
old-pr/10047
old-pr/10046
old-pr/10045
old-pr/10056
old-pr/10043
old-pr/10036
old-pr/10034
old-pr/9984
old-pr/10052
old-pr/10038
old-pr/10033
old-pr/10028
old-pr/10050
old-pr/9891
old-pr/9889
old-pr/10051
old-pr/10019
old-pr/10027
old-pr/10029
old-pr/10031
old-pr/10026
old-pr/9941
old-pr/10030
old-pr/10040
old-pr/9990
old-pr/10021
old-pr/9962
old-pr/10022
old-pr/10020
old-pr/10015
old-pr/10025
old-pr/9886
old-pr/10048
old-pr/10014
old-pr/10011
old-pr/9861
old-pr/10010
old-pr/10008
old-pr/9860
old-pr/10006
old-pr/9920
old-pr/9995
old-pr/10000
old-pr/10016
old-pr/10004
old-pr/10023
old-pr/9982
old-pr/9981
old-pr/9983
old-pr/9970
old-pr/9969
old-pr/9968
old-pr/9971
old-pr/9972
old-pr/9942
old-pr/9963
old-pr/9960
old-pr/9964
old-pr/9985
old-pr/9973
old-pr/9862
old-pr/9953
old-pr/10017
old-pr/9952
old-pr/9955
old-pr/9946
old-pr/9954
old-pr/9938
old-pr/9956
old-pr/9856
old-pr/9947
old-pr/9924
old-pr/9961
old-pr/9927
old-pr/9979
old-pr/10032
old-pr/9926
old-pr/5237
old-pr/9951
old-pr/9931
old-pr/9902
old-pr/9921
old-pr/9994
old-pr/9775
old-pr/9768
old-pr/9905
old-pr/9936
old-pr/9901
old-pr/9904
old-pr/9906
old-pr/9988
old-pr/9908
old-pr/9909
old-pr/9911
old-pr/9912
old-pr/9913
old-pr/9887
old-pr/9916
old-pr/9919
old-pr/9925
old-pr/9933
old-pr/9935
old-pr/9918
old-pr/9879
old-pr/9880
old-pr/9881
old-pr/9996
old-pr/9876
old-pr/9892
old-pr/9899
old-pr/9915
old-pr/9914
old-pr/9872
old-pr/9869
old-pr/9866
old-pr/9819
old-pr/10012
old-pr/9857
old-pr/9893
old-pr/9897
old-pr/9928
old-pr/9868
old-pr/9917
old-pr/9940
old-pr/9873
old-pr/9816
old-pr/10009
old-pr/9900
old-pr/9966
old-pr/9859
old-pr/9843
old-pr/9991
old-pr/10058
old-pr/9883
old-pr/9838
old-pr/9835
old-pr/9959
old-pr/9895
old-pr/9837
old-pr/9858
old-pr/9865
old-pr/9864
old-pr/9840
old-pr/9820
old-pr/4669
old-pr/9848
old-pr/9850
old-pr/9810
old-pr/9799
old-pr/9853
old-pr/9875
old-pr/9831
old-pr/9796
old-pr/9801
old-pr/9813
old-pr/9794
old-pr/7417
old-pr/9781
old-pr/9806
old-pr/9958
old-pr/9809
old-pr/9791
old-pr/9792
old-pr/10053
old-pr/9784
old-pr/9789
old-pr/9849
old-pr/9846
old-pr/9773
old-pr/9785
old-pr/9803
old-pr/9826
old-pr/9839
old-pr/9922
old-pr/9948
old-pr/7189
old-pr/9957
old-pr/9823
old-pr/9807
old-pr/9851
old-pr/9774
old-pr/9830
old-pr/9836
old-pr/9822
old-pr/9783
old-pr/9833
old-pr/9890
old-pr/9770
old-pr/9769
old-pr/9772
old-pr/9787
old-pr/9852
old-pr/9834
old-pr/9845
old-pr/9871
old-pr/9771
old-pr/9776
old-pr/10005
old-pr/9949
old-pr/9923
old-pr/9805
old-pr/9829
old-pr/9790
old-pr/9827
old-pr/9929
old-pr/9855
old-pr/9934
old-pr/9907
old-pr/9910
old-pr/9779
old-pr/9780
old-pr/9885
old-pr/9882
old-pr/9877
old-pr/9998
old-pr/4251
old-pr/9987
old-pr/9989
old-pr/9950
old-pr/9777
old-pr/10044
old-pr/9884
old-pr/2906
old-pr/5076
old-pr/9937
old-pr/9986
old-pr/3014
old-pr/9943
old-pr/9939
old-pr/4682
old-pr/4765
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Reference
ProjectLeonida/mandy#2607
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?
Imported from ubiquitarianism/leonida. Originally posted by svlvd on 2026-11-29T07:18:22Z.
What happens
Game crashes when gpu usage reaches 7 GB (on 3070Ti 8gb)
Commit
29.11.2026
System
Windowa 10, Ryzen 7 5700x, 32 BB RAM, RTX 3070Ti, driver 621.40
Where
Running gta6rt
Command and steps
Launch.bat, play, playing as expected for 10-15 minutes, then crash
Output
Imported from ubiquitarianism/leonida. Originally posted by 1learningnik120 on 2026-11-29T07:26:14Z.
GpuVramDiag
That 0x887A0005 device-removed at ~7 GB on an 8 GB 3070 Ti looks like VRAM pressure before the fence fails. I'd run the attached GPU diagnostic first so it captures the device-removed reason and the last D3D12 command; then set LEONIDA_D3D12_DEBUG=1 and lower texture streaming to see if the crash moves.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-29T15:40:11Z.
There is a second report on the same card from today, #2611 (RTX 3070 Ti, 8 GB, driver 621.40 as well), and it is the useful comparison: that user sits at
7.1-7.4 GB against a 6.9 GB budget with 6.5-6.8 GB spilled to shared memory and keeps running at 13-27 fps. So on this card reaching ~7 GB is the
expected steady state, not automatically a crash - which makes your crash the interesting half.
What decides it, and it is two things you can read off the machine after a crash:
WATCHDOG-*.dmpinC:\Windows\LiveKernelReports\WATCHDOG\with the timestamp of thecrash. If there is one, the display engine stopped responding and the process was taken down by the driver's reset, not by running out of memory.
Faulting application name: gta6rt.exe,Exception code: 0xc0000005andFault offset: 0x00000001423cf683is a deliberate trap in the title at its0x23cf683, which is what I see on every one of my runsthat ends this way - the title deciding to die, usually after something it treats as fatal.
If it is neither (no dump, no event entry), then the process was killed or exited cleanly and the memory explanation is back on the table, which is why the
first two checks come first.
What would make this actionable beyond "it crashes at 7 GB": the driver's own event for the crash (
nvlddmkmin the System log, event 153 is the reset),and whether the run had been in the world for a while or died while loading. With those, this becomes either the memory item or the same hang the rest of
the reports are chasing, and those are different people's work.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by LaciaMemeFrame on 2026-11-29T20:20:12Z.
Exactly the same problem https://www.youtube.com/watch?v=zslC5FcSsjM
Imported from ubiquitarianism/leonida. Originally posted by svlvd on 2026-11-30T09:32:28Z.
Crash on 29.11 ~09:08, after 10-20 min in the world (not loading), ~7 GB VRAM, RTX 3070 Ti. No WATCHDOG dump, no Application Error entry for gta6rt.exe. Newest nvlddmkm 153 is 27.11, not at crash time. Console ended with "device removed 0x887A0005", breadcrumbs empty.
Imported from ubiquitarianism/leonida. Originally posted by svlvd on 2026-11-30T13:14:10Z.
the initial crash happened with the series x setting
tried series s and the same crash happened at 5.7 vram usage instead of 7
tried a debug build:
RTX 3070 Ti, crashes (0x887A0005) 5-20 min into the world. With the D3D12 debug layer on, the last message is RemoveDevice ... DXGI_ERROR_DEVICE_REMOVED: Plug-and-play stop has been exercised on this adapter. DRED breadcrumbs are empty and nothing of the game's was running on the card. Windows logged nothing at the crash: no WATCHDOG dump, no Application Error for the game, no nvlddmkm/Display/WHEA/Kernel-PnP events.
the crash happens sooner when going to a denser area on the map
Imported from ubiquitarianism/leonida. Originally posted by socka605 on 2026-11-30T13:28:43Z.
I'm getting a crash as well, I didn't read the full logs but it always says "The GPU device instance has been suspended".
Seems to happen while a bunch of shaders are being loaded but it's at inconsistent times.
Imported from ubiquitarianism/leonida. Originally posted by Miici0 on 2026-11-30T16:17:23Z.
Another data point with the same signature, this time on a 12 GB card, so it is not only the 8 GB cards.
mainbe7690805. Started withscripts\play-d3d12.ps1 -Game <package> -Logon launcher defaults.ERROR leonida_gpu::host: relay: fence 18446744073709551615 did not reach 97960; device removed: ... (0x887A0005)(the localized text reads "The GPU device instance has been suspended");device-removed data; none(crash tracing was on, withbreadcrumbs=false markers=false);We've lost the Device.WATCHDOG-*.dmp(nothing new inC:\Windows\LiveKernelReports). There are no nvlddmkm, Display, dxgkrnl or LiveKernelEvent entries in the System log between 16:05Z and 16:20Z, and no Application Error for leonida.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by Miici0 on 2026-11-30T17:25:36Z.
Follow-up to my data point above, on the same machine (RTX 4070 SUPER 12 GB, driver 621.24,
mainbe7690805). Two more runs ended in the same device removal, and one detail points at memory pressure.Run 3: frame generation off (
-NoFrameGen).relay: the fence reports the device removed; device removed: ... (0x887A0005), the same line as in the first post here. So Streamline frame generation is not needed for this.the card's own: budget 10911 MB, in use 10093 MB. That is 92% of the budget.Run 2: frame generation on, pipelines warmed. Started at 16:23:45Z, and Streamline reported
We've lost the Deviceat 16:31:30Z (about 8 minutes in).So on a 12 GB card it also comes when use gets close to the budget, as in the 7 GB reports on 8 GB cards. @svlvd's Series S crash at 5.7 GB says it is not only the absolute amount, though.
Next I am trying
-Resolution 1080(the monitor is 1080p) to lower the use. I will report whether it still happens.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by Miici0 on 2026-11-30T17:36:59Z.
As promised, the
-Resolution 1080result (same machine,-NoFrameGen): it still crashes.relay: the fence reports the device removed ... (0x887A0005).Correction to my last post: its 92% figure is the card's own memory, which is right, but read it as 92-93% across the last three readings.
Next I am trying
-WindowsBarMB 0. On this 32 GB PC the launcher puts up to 3 GB of title memory windows in CPU-mapped VRAM, and this keeps them in system RAM instead. All else stays the same.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by Miici0 on 2026-11-30T17:58:04Z.
The
-WindowsBarMB 0result, and a correction to my memory-pressure reading. Same machine; the launcher setting was passed as-More @{ LEONIDA_WINDOWS_BAR_MB = '0' }, sinceplay-d3d12.ps1has no-WindowsBarMB.relay: the fence reports the device removed ... (0x887A0005).So the card sits near 90% of its budget whatever the title memory windows do. That looks like the runtime's normal level, not pressure building up to the crash. I would no longer read my 92% figure as a cause.
Across five runs on this RTX 4070 SUPER 12 GB, the device was removed after 6.5 to 18.5 minutes with each of these:
None of the launcher switches I tried avoids it.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T18:16:48Z.
A run on a 24 GB card reaches 97.5% of it and does not crash - so the device removal is not simply "the card is full".
Setup, matching yours where it matters:
The run: 600 s, ended by the launcher's own timer (
killed-after-600), 106 frames, 24.80 frames/s at the end, and:The number that matters is the card's memory while it ran:
So the runtime grows to fill whatever it is given - 23.9 GB on a 24 GB card - and at that occupancy it kept submitting for ten minutes without losing the device.
What that rules out, and what it does not:
Next step I can run on this machine if it is useful: the same launcher with a 30-minute timer instead of 10, which crosses your 15-minute mark and gives the allocator twice the time to fragment. Say the word and I will post that run in the same shape. If it crashes there, the timeline matters more than the card size; if it does not, the difference is the allocation pattern on the smaller heaps and the probe needs to print which allocation fails.
AI-assisted: yes - DeepSeek v4.1 (flash) ran the launcher and read the logs on the machine above.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T19:21:22Z.
Retracting the number I posted above, and it is the one the comment was built on: a model was loaded on the same card for the whole run, so "23959 MiB of 24564" was the card, not the runtime.
What happened: the owner of this machine told me afterwards that another process held the GPU with a model loaded during the run.
nvidia-smireports the device's total, so the figure I quoted is my run plus that process, and the inference I drew from it - "the runtime grows to fill whatever it is given" - does not follow. I have stopped the run and released the card.What that costs the comment: the whole "not the percentage" argument, as I wrote it. "The 4090 sits at 97.5% and lives" is not what happened - the 4090 was mostly somebody else's memory, and my run was the small tenant.
What survives, and it is a different and probably sharper data point:
0hits fordevice removed/0x887A0005/device was lostin 582 KB of runtime stderr.t=489sand 24,605 submissions, and did not lose the device.What I still cannot tell you: how much VRAM the runtime itself asked for, because I have no measurement of it that separates the two processes -
nvidia-smigives the device, and the runtime's own accounting was not printed in the lines I searched. That is the gap to close before another run:--query-compute-apps=pid,used_memorywhile it runs, orLEONIDA_MEMORY_*if there is one, so the number belongs to the process and not to the card.A clean run is possible now - the other process has finished and the card is free - and it should be the first thing done with it, with the per-process memory sampled alongside. I would rather post that measurement than another card total.
AI-assisted: yes - DeepSeek v4.1 (flash). The error is mine: I read a device-wide counter as a process counter, and the machine's owner caught it before the comment misled anyone.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T19:52:38Z.
Found it, and it is a burst: the runtime holds about 7.7 GB for ten minutes, then allocates up to 22.2 GB in the story's opening, holds it for two minutes, and releases it. On your 8 GB and 12 GB cards that burst has nowhere to go.
A clean 30-minute run on a card with nothing else on it (that was the error in my previous comment - a loaded model held most of the card, so the figure I quoted was the device, not this process). Sampled once a minute with
vidia-smi --query-gpu=memory.used:
The shape, and where it meets your reports:
� hits for device removed / �x887A0005 / device was lost in the whole 1845 s of runtime stderr, with presentX=0, slot67-fail=0, psos=0, and 107 frames/s at the end.
What I would look at next, and what I cannot see from here: something allocates ~14.4 GB extra (22.2 - 7.7) in that window, and the log's own memory breakdown is where it would be named - memory_breakdown / the probe line - which my run did not print in the lines I searched. If that line names the consumer, the fix is either a budget for it or freeing it before it grows. I can rerun with any LEONIDA_ switch that makes the breakdown verbose; tell me which one and I will post the same shape with the breakdown attached.*
Caveat, stated plainly: my run used the 4.3 GB pipeline cache from earlier runs, so it was not a cold start, and your first-start reports translated shaders before it began. A cold start could move the burst earlier or make it larger. I can empty the cache and repeat if that is the configuration you want compared.
AI-assisted: yes - DeepSeek v4.1 (flash) ran the launcher and sampled the card on the machine above.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T20:14:57Z.
Rerun with the runtime's own memory probe on (
LEONIDA_MEM_PROBE=30), and it rules out the two obvious suspects: the card's 22 GB is not the runtime's allocations and not pipeline creation.The run: 1.200 s,
killed-after-1200, 0 hits fordevice removed/0x887A0005,presentX=0,slot67-fail=0,psos=0. The card again reached ~22 GB (21.969 MiB sampled at t=788 s) and survived, because that is all these three configurations say about a 24 GB card.What the probe says at the peak (
[rt] mem-probe breakdown t=783s, 39 breakdowns in the run):So the runtime accounts for 5,531 MiB while the card holds 21,969 MiB. The gap of ~16.4 GB is exactly what the probe's last line declares it does not count.
And pipelines are not it either:
pipelines live graphics 5 compute 1794, flat from t=452 s to t=783 s, i.e. through the whole burst. So the ~16 GB is neither a growing pipeline set nor the runtime's own tally - it is the driver's memory behind objects the runtime already created.What that changes about my previous comment: the burst is real and reproducible (two runs, ~22 GB both times), but "something allocates 14.4 GB extra" was me reading the card total again. The honest statement is narrower and more useful: the runtime's tracked allocations are flat at 5.5 GB throughout, and the card rises by ~14 GB underneath it. The probe is telling us where NOT to look: not the arena, not the textures, not the render targets, not the pipelines.
The next instrument, and I need you to choose it:
LEONIDA_MEM_PROBE_CACHE=1adds the pipeline cache size to the same line - it is opt-in because the driver serialises the whole cache to answer, which is also why it is the one excluded number that could plausibly be gigabytes. If the cache is the 16 GB, the fix is in how it is kept, not in what the title allocates. Say the word and I will post that run; it is one more variable in the environment line.Caveats, unchanged and stated:
AI-assisted: yes - DeepSeek v4.1 (flash) ran the launcher and read the probe on the machine above.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T20:34:58Z.
The burst is invisible to the runtime's own accounting - and that is the finding. Between a sample where the card held 7.7 GB and one where it held 20 GB, every Vulkan allocation the runtime reports is identical, to the byte.
Two
mem-probesamples from the same run, 424 seconds apart:Nothing moved. The runtime's own view of its memory is flat while the card gains 12 GB.
That eliminates, with a measurement rather than an argument:
breakdownline is5530 MiBin both;So the growth is behind counters the runtime cannot see. The candidates are the driver's own memory: its expansion of the pipeline cache into device memory, its page tables for the 39 title ranges (
63715 MiB reserved/committed VA), or the presentation engine.nvidia-smi --query-compute-appsreports[N/A]for this process, so I cannot split it from the driver's side either.The experiment that can settle it, and I am running it now:
LEONIDA_PIPELINE_CACHE_BYTES=0(the switch that makes the session cache file empty) plus the probe. If the 12 GB burst disappears with the cache off, it is the cache; if it stays, the cache is cleared and the candidate list is the driver's page tables. Either answer names the owner of the memory, which is what your two reports need.One thing this changes for you: the "GPU usage reaches 7 GB" in your title is the runtime's figure, and it is honest - the 7.7 GB steady state is exactly that. What kills the card is the part that is not in that figure, so a budget on the runtime's own allocator would not have prevented your crash.
Caveats unchanged: 24 GB card, warm 4.3 GB cache, and the burst window moves (not started at t=718 in this run, active by t=1146).
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T20:40:43Z.
The experiment I announced above does not work as I said it would, so this is the correction rather than a result:
LEONIDA_PIPELINE_CACHE_BYTES=0does not turn the cache off.Measured, on the run I started with that switch:
The cache is still there - and larger than before (4650 against 4485), because it loads the existing
pipeline_cache.session.bin(4.37 GB on disk) and keeps building on it. Readingruntime/shims/d3d12_vulkan_device.cpp:2686, the switch caps the session file's own budget; it does not stop the file being read. That is my misreading of the switch, not a defect in it.And I stopped the run rather than post its numbers, for a second reason that matters more: the sample at
t=144 salready read 17,044 MiB with the previous process still releasing its memory, so the baseline was contaminated for the first minutes - exactly the mistake that produced my retracted comment earlier tonight. I would rather stop than repeat it.What would actually test the cache, and what it costs:
pipeline_cache.binandpipeline_cache.session.binin the game folder (8.7 GB together, moved, not deleted - trivially reversible);nvidia-smifrom second zero, so the baseline is measured and not assumed.That is 20-25 minutes of a 24 GB card and 8.7 GB of file moves. I am not starting it without a word from you: the machine is shared, and a game filling the card is exactly what I should not do unprompted.
Meanwhile, what tonight has established, in the order it was measured - and one of these was wrong when I first wrote it:
mem-probeidentical at 7.7 GB and 20 GBWritten with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T21:18:57Z.
The cold start settles it: with the pipeline cache moved aside, the burst comes earlier and reaches 98% of the card - and the cache itself is only 245 MiB, so it is not what fills it.
The run: the three cache files (
4.30 GB,4.38 GB,0.04 GB) renamed so nothing could be loaded,LEONIDA_MEM_PROBE=30, 1.200 s,killed-after-1200, 0 hits fordevice removed.The card, sampled once a minute:
Two things move compared with the warm runs: the peak is higher (24,057 against 22,169) and it arrives at t=240 instead of t=600. A cold cache translates pipelines during the opening, and the memory does not wait for the story.
And the number that rules the cache out -
mem-probe, same run:The pipeline cache is 245 MiB, not 4485 - so the 16 GB I candidated in my previous comment is not the cache. And the vk breakdown is identical at t=182, t=242 and t=365, while the card goes 7,778 → 24,057 → back. The rise happens between the t=122 and t=182 samples, and by the time the probe next looks it is already flat. Same conclusion as the warm run, now with the cache excluded.
So the accounting picture is:
vk memory:lineThe leading candidate is now the line the probe prints but does not count:
title memory 39 ranges 63715 MiB reserved/committed VA. 63.7 GB of committed VA is larger than the card, so not all of it can be backed - but if the driver backs a quarter of it, that is the 17 GB. That is a question for the driver's side, and the instrument to answer it is not in this runtime.What I would try next, in order of cheapness:
VK_EXT_memory_budgeton this device - itsheapBudget/heapUsagecallbacks would say whether the driver itself thinks the heap is at 24 GB, and the runtime already creates the extension's structures formemory_breakdown.LEONIDA_SPARSE_UNBIND_ZERO_PAGE-style VA experiments off, if any of the 39 ranges is a placeholder rather than a real map - the probe'stitle_rangesfact exists to report exactly that.Caveats: 24 GB card, so it survived 98% by 400 MB. The cache files are back where they were (
4.30 GB,4.38 GB,0.04 GB, restored and verified). The machine is free.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T21:19:37Z.
VK_EXT_memory_budgeton this card reports a device-local budget of 23,370 MiB, and the run peaked at 24,057 MiB - so the runtime goes past the budget the driver publishes, not just past the card's size.I built a 40-line probe for this (not part of the runtime:
vkCreateInstance,vkGetPhysicalDeviceMemoryProperties2withVkPhysicalDeviceMemoryBudgetPropertiesEXT), compiled with the Vulkan SDK 1.4.363.0, run on the idle card:So there are three different numbers for "how much is there":
VkMemoryHeap.size)heapBudget)nvidia-smi)The run is 687 MiB above the recommended budget, and 81 MiB below the advertised heap. That is a card with no margin at all, and it is the configuration where
VK_ERROR_OUT_OF_DEVICE_MEMORYand a device removal are what happens next.Why that maps onto your reports better than anything I have posted so far:
heapBudgetis not the card's size. On an 8 GB card the budget is roughly 7.4-7.6 GB, and the runtime's steady state on this content is 7.7 GB - so a 3070 Ti is over budget before the burst even starts, and the burst then wants another 14 GB that is not there. The 12 GB card is the same shape with more room; it dies when its own burst arrives.What this instrument cannot do, stated plainly:
VK_EXT_memory_budgetreports per process. My tool seesusage 0because that is its usage - so it cannot watch your game from outside. The budget figure above is what a fresh process is offered, which is the number I wanted; the usage side needs the query inside the runtime, andruntime/src/memory_breakdown.halready has aDeviceSharefor it - that is a small PR, and I would write it if the maintainers want the probe to printheapUsage/heapBudgetin themem-probeline.Three concrete rules this suggests, in the shape the repo uses for such things:
heapBudget, not of the heap size. The runtime has the extension's structures but is not budget-gating on it.heapBudgetis under the steady state (7.7 GB here), the burst is a hard failure, not a slow frame - so the gate has to be before the allocation, not after thevkAllocateMemoryreturns.Caveats: 24 GB card, warm caches, 0 device removals in every run I did. The tool is at
E:\ports\state\leonida\scratch\mem_budget.cppand is deliberately not committed - if this belongs in the tree it should be a reviewed PR, not a scratch file.AI-assisted: yes - DeepSeek v4.1 (flash) wrote, compiled and ran the probe on the machine above.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by Miici0 on 2026-12-01T19:48:01Z.
Three more runs on the same machine (RTX 4070 SUPER 12 GB, driver 621.24, 32 GB RAM), now on
main27613ab6b, withleonida.exerebuilt (diagwith DLSS). The device is still removed, so none of the commits sincebe7690805changed this here. The three runs rule out three causes, listed below.1. Not a hung command list or an API error the debug layer sees. One run had
-More @{ LEONIDA_D3D12_DEBUG = '1'; LEONIDA_D3D12_DRED = 'light' }, with Windows' Graphics Tools installed. The log confirmscrash tracing on (device-removed data) breadcrumbs=trueand has nono D3D12 debug layerwarning. The device was removed after 9.5 minutes:The breadcrumb list is empty, so no list was in flight when the device went. The failure text has no
debug layer:part, so the debug layer logged no error. Its only output near the end is a warning that repeats 770 times:GetResourceAllocationInfo: ... Alignment cannot be 4KB. No page-fault data was printed.2. Not running out of the PC's commit limit. The
residencylines of all four crashed runs since 2026-11-30 show what was left to commit. It never went below 224 to 265 MB, and it stayed under 1.5 GiB for about half of each run. Commit limit 40.3 GB: 31.8 GB of RAM plus a system-managed 8.7 GB page file. So I tried a fixed 16-24 GB page file, which also meant a reboot, with the same default launch:leonida.exeat 26.6 GB private.So low commit headroom alone, held for an hour, does not remove the device, and a larger limit does not delay the removal.
3. It comes during play only. Across nine runs since 2026-11-30 it came 3.7 to 18.5 minutes into actual play, at 14 fps in the world. It did not come during the hour in the pause menu. My reading, still a hypothesis: something in world streaming triggers it, not memory size as such.
Happy to run a specific switch or build if someone has a candidate.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by Alanls-mx on 2026-12-01T21:18:12Z.
Related 8 GB NVIDIA datapoint from a different GPU (RTX 4060): during the first-mission run, VRAM approached its limit and system RAM later fell to about 400 MiB free. The game's current log had no
0x8007000Eand noDXGI_ERROR_DEVICE_REMOVED; this run was ended manually after memory became critical, so it is not a confirmed crash reproduction. A separate user report of spontaneous game closure remains uncorrelated with this run.The 16 GB profile now limits runtime pipeline workers to one and texture residency to 72% of the reported VRAM budget, and the existing residency controller logged host-memory pressure. Next validation should record the first error/device-removed reason or WER dump if an actual spontaneous close recurs.
Imported from ubiquitarianism/leonida. Originally posted by waze3174 on 2026-12-02T02:21:49Z.
The same device removal on two very different cards in one PC: an RTX 2060 6 GB and then an RTX 5080 16 GB. The 16 GB card crashing the same way suggests card memory is not the cause, or at least not the only one.
PC: Ryzen 9 9950X3D, 32 GB DDR5-6000, Gigabyte X870E, Windows 11. Package 1.0.2.1,
scripts/play-d3d12.ps1,diagbuild.-SeriesS -Adapter 2060)-Resolution 1080 -NoFrameGen(no DLSS, no frame generation)main7c330c76d,060c47160,b8bd371115922f9fc5Every one is
host GPU device removed ... (0x887A0005)(orrelay: fence ... did not reach ...with the same removal). There was no particular trigger: it happened while walking, shooting and flying a plane.What the 2060 runs ruled out:
WATCHDOG-*.dmpinC:\Windows\LiveKernelReportsfor any of the crashes (the newest dump predates them), and nonvlddmkmor Display event in the System log at the crash times.LEONIDA_D3D12_DRED=lightthe breadcrumbs are[]and there is no fault address. The runtime reports "nothing of ours was running on the card" every time. One of these crashes had a pipeline-library make in progress; the others had none.LEONIDA_TEXTURE_ROOM_PERCENT=70did not lower that, andLEONIDA_CARD_BUFFERS_MB=512withLEONIDA_WINDOWS_BAR_MB=0halved the frame rate. Then the 16 GB card crashed too.Side findings, separate from the crash:
d3d12/scripts/play-nvidia.ps1:354uses them only for$vram -lt 6GB, and an RTX 2060 reports exactly 6 GiB (HardwareInformation.qwMemorySize6442450944), so it gets the 16 GB card limits.93e65d91c, black boxes flicker in the water. WithLEONIDA_WATER_TRANSMISSION=0, objects standing in the water (posts, a pier, people) render pitch black instead. The re-enable was tested on an RTX 5070.I can run a build or a switch on either card if it helps narrow this down. I no longer have the 2060 in the PC, though.
Written with an AI assistant (Claude); the numbers come from the runtime's logs and nvidia-smi on this PC.
Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T16:35:58Z.
Same 0x887A0005 signature on an 8 GB RTX 4060 Laptop (16 GB RAM, 621.47). There,
LEONIDA_D3D12_BACKGROUND=0(needs Windows Developer mode) orLEONIDA_ALLOCATOR_TRIM=1held the device for 30-45 min in every run, 5 of 5. Without either, 5 of 6 runs lost it within 3.7-8.5 min. Table and caveats: https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7352177565AI-assisted: yes (Claude Opus 5.5)