[bug] map/pause menu wedges the game in menu state (172 draws/frame, never exits) - tied to stream_budget = 2000 112 characters, no markdown wrappers, leads with the symptom and the measurement. #352
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/gamingwithhomie--larp#352
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?
@GreatJack12 on GitHub · 2026-12-05 23:26 UTC · original
TL;DR
Two symptoms on the same machine, both in the title's own UI path (not the layer's F10/F9 overlay),
which I believe are the same underlying fault:
The log shows the swap chain at 3840x2160 while the actual output is 1920x1080.
60 fps but
draws/framestays pinned at 172 (menu-scale) instead of the ~4,700–7,000the world was issuing seconds earlier. Gameplay input dies, the mouse still moves the camera, and
it sometimes ends on a purple screen with menu music that nothing dismisses.
Both are accompanied by
larp_gpu::regionserrors — "a window of title memory outside buffers ismade partly over a buffer the GPU owns: it shows title memory's bytes there, not what the GPU
holds" — i.e. the UI is being composited from memory the GPU does not own.
One-line ask: make
dxgi::display_size()report the real host display, or composite the title'sUI at the real output size the way #144 did for the layer's own panels. That may fix both.
Environment
bin\larp.exe, 16,025,600 bytes, SHA-2562D173388768F288D6F7EF35D280DD31471A72E62560ECACB803B7F33D65B0B5FLARP_DISPLAY_MODE=borderless)series-sLaunch:
data\7952987A\settings.ini:options.ini:Part 1 — title UI is blurred (reproducible)
Steps
Expected
HUD, map and pause menu are sharp at 1920x1080.
Actual
resampled to another. This is not DLSS softness — the 3D scene behind it is sharp.
path, not the overlay renderer.
Evidence — swap chain 4K, output 1080p
Evidence —
larp_gpu::regions, verbatimOne of the errors from an affected session:
It also fires from a second call site, in a later session with
LARP_TRAINER=0— so this is nottrainer-dependent, and there is more than one path that composites unowned title memory:
Two things worth noting about that second one: it is at
host.rs:2266:31rather thanhost.rs:2592:24,and it names 17 buffer ranges taken across frames 2828–8803, i.e. a long-lived accumulation
rather than a single aliased range.
len=2048andwindow=0x15bc00000+0x400000(a 4 MB title window,matching the 4K assumption) are also different from the first.
Related descriptor warnings from the same session (4 total, all within the first ~3.5 minutes,
none afterwards):
Hypothesis
dxgi::display_size()appears to return a hardcoded(3840, 2160)— the comment reads roughly"shortcut: not yet the host display's own size; make it so once a title is seen to render for the
mode it is given". If the title is told its output is 4K it will author HUD and menu assets at 4K;
the picture is then produced at 1920x1080, so the UI is composited against a 4K window. That
explains both the blur and the
regionswarning.#144 ("Respect the selected output size when compositing a larger HUD") is in this build and fixed
this class of problem for the layer's own panels. The title's UI path seems to still take the
old route.
What I ruled out for part 1
resolutionsetting. Settingresolution = 1920x1080explicitly changes thelogged output size to 1920x1080, but the swap chain still logs 3840x2160 and the blur remains.
stream_budget = 2000on 8 GB, no OOM in the log.Part 2 — opening the map or pause menu wedges the game (intermittent)
Three variants I've hit, increasing in severity:
attempt escalates to variant 2.
still moves the camera. No visual glitch — the scene looks completely normal.
music keeps playing. Nothing dismisses it. Variant 2 usually precedes this.
Steps
Repeat opening/closing the map or pause menu several times.
Actual
Locked in one of the three variants above.
Alt+F4/ killinglarp.exeis the only way out.The key measurement — a hang in the title's state machine, not a freeze
draws/frameis what the title submitted that frame. Sampled every 5 s across the capture:Present cadence is completely healthy throughout:
So: 186 seconds at a locked 60 fps rendering 172 draws per frame. The same menu frame is being
pushed to the GPU thousands of times. This is a state machine that entered the menu and never left.
Process state at the snapshot: 141 threads, working set 2,358 MB, window still message-responsive.
CPU time accumulated ~15 s over 3 s wall, i.e. several cores busy — consistent with continuously
rendering at 60 fps, and not with a deadlock (a deadlock would show near-zero CPU).
The 172 doesn't waver much — it moves between 169 and 175, so it is genuinely re-rendering rather
than holding a stale last present. The one outlier is
23:15:02 42.5 fps / 23.5 ms / 172 draws, asingle slow second while still in menu state.
Evidence — the hooks installed in that session
larp_gpu::regionsfired once in this session, ~5 minutes before the wedge.Nothing is logged at the moment of the wedge
The log continues with normal 60 fps present lines right up to the snapshot. No error, no stall
warning, no timeout. From the logs alone the game looks perfectly healthy while it is unusable.
That is the single most frustrating part of this bug, and a one-line
menu state: entered/exitedat debug level would make it immediately diagnosable.
Why I think these are one bug
A camera that still moves while the character cannot is the signature of raw mouse input arriving
normally while the title's menu layer has taken ownership of gameplay input and is not handing it
back. The title believes it is in a menu; the menu either never draws (variant 2) or draws as an
uninitialised purple surface (variant 3); whatever accept/cancel path would exit it never completes.
Audio runs on its own thread, which is why menu music continues over the purple screen.
If the menu's UI surface is aliasing memory the GPU does not own — exactly what
regionsreports —the title may be reading back garbage and never observing the input it is waiting for. That single
fault would explain the blur, the dead input, and the purple screen.
Leads (observations, not conclusions)
I don't have the source, so treat these as things to test rather than a diagnosis:
LARP_TRAINER/menu_sharemaps a trainer page into the title's own menu. If trainer andtitle menu share one input or state path, a page swap is a plausible place to lose the exit
condition. But it is not required for the bug: a session with
LARP_TRAINER=0still logged aregionserror from a different call site (host.rs:2266:31), and I have not yet seen thatsession wedge — so the trainer may be an aggravating factor rather than the cause. I am flagging
it only because variants 2 and 3 both occurred with it enabled.
larp_hle::mapmouseinstalls hooks that remap click/drag/wheel inside the map (click = A,right click = B). The map is where it wedges most reliably, especially in a vehicle. Hooking the
same input the menu depends on is worth ruling out by disabling just the map-mouse layer.
Also ruled out (part 2)
What would help most
dxgi::display_size()is still hardcoded, and whether the title UI pathbypasses #144's output-size compositing.
LARP_TRAINER/menu_shareshares an input or state path with the title's pause menu, andwhether
mapmousehooks can defer or swallow an accept/cancel.regionsfiring shortly before a wedge is a reliable leading indicator or coincidence.Happy to run a debug build, set any env var, or attach
bin\larp.exe zip-logs. I still have thefull
play.errand the save files from the captured wedge.Save safety
The wedge does not appear to corrupt saves. On disk afterwards: last autosave 15:10:41, intact.
@gamingwithhomie on GitHub · 2026-12-06 00:20 UTC · original
Two parts: (1) blurred UI at 1080p with a 3840x2160 swapchain - #144 (output-size compositing) shipped in v1.1.2 and native 3440/1080 work continued in v1.1.3, so please confirm your build (BUILD.txt) and retest on v1.1.6; (2) map/pause menu wedging in menu state with input dead - if that persists on v1.1.6, attach zip-logs and say whether F10 still opens. The wedge sounds input-focus related (#146 territory), so the log matters.
@GreatJack12 on GitHub · 2026-12-06 00:40 UTC · original
Thanks, but I need to correct a misreading on my side first — I think my original report was unclear.
(1) The blur: this is not #144, and there is no blurry UI.
I never reported a blurred interface. The menu text is sharp on v1.1.6, and always has been. My complaint is a latency problem, not a compositing one:
When I open the in-game menu, the background blur effect appears immediately — but the menu itself (the panel, the text, the selections) doesn't render until a few seconds later. So for those seconds I'm looking at a blurred game image with no menu on top of it.
The swap chain logging width=3840 height=2160 against DLSS output 1920x1080 is real, but it isn't producing any visible defect — so please treat the #144 angle as not applicable rather than unconfirmed. I don't want you chasing output-size compositing for a bug that isn't there.
(2) The wedge may be the same bug, taken to its limit.
The menu drawing late and the menu never drawing look like one failure mode. Reproduced on v1.1.6 with an identical signature to v1.1.3:
draws/frame goes 5,164 @ 27.4 fps → 173 @ 60.0 fps at 00:30:47, then flat through 00:36:35. Presents stay healthy (median 16.6 ms), CPU burns ~15.66 s per 3 s wall (spinning, not blocked), window reports Responding=True. It ends on the title's purple menu at menu-level draw count — the blur and the menu frame, but the menu's contents never arrive.
Vehicle-specific: the map opens on foot (mapmouse: the world map is open at 00:29:01 — the only occurrence all session) but never opens in a car. regions immediately before that single success:
00:26:35 ERROR window of title memory made partly over a GPU buffer
00:28:56 ERROR same, x2
00:29:00 WARN windows of title memory already over a buffer when taken (mirrored as before) (said once; diagnostics builds count them)
00:29:01 INFO mapmouse: the world map is open
Worth noting: if I open the menu on foot I get the blur-then-menu delay, and it eventually arrives. In a vehicle it never arrives at all.
(3) F10 answer: yes, F10 still opens. Tested at the wedge, still at 173 draws — the LARP SETTINGS menu opens and F9 toggles the performance panel. So the host's keyboard path is alive; this isn't total input loss at the layer. Only the title-facing menu state is stuck, which may narrow #146 rather than confirm it.
(4) BUILD.txt is stale by six versions. Mine says v1.1.0 / 6F956369...; bin\larp.exe is AC64BEA2F372CD341448E34CF246C9B3773B736FE71B84EDC25BDBB9A5673D12 (16,175,616 bytes = v1.1.6). UPDATE zips don't refresh it, so you may be getting wrong build IDs from every reporter.
(5) zip-logs skips play.err. It packed only logs/play.log (3.3 KB) and left out play.err (332 KB), which holds draws/frame, regions and mapmouse. Attaching both manually.
@vanya890 on GitHub · 2026-12-06 01:13 UTC · original
The missing diagnostic file is addressed separately in PR #460:
zip-logsnow includes both.logand.errfiles, includingplay.err, with a case-insensitive extension test. This should preserve the draw-count,regions, andmapmouseevidence you had to attach manually. It does not claim to fix the menu-state wedge itself; that still needs the captured diagnostics and a separate investigation. I also noted your correction: the reported symptom is delayed/missing title-menu rendering, not blurry UI, so the #144 compositing lead should not be pursued based on the original wording.@GreatJack12 on GitHub · 2026-12-06 01:31 UTC · original
Correcting my own report first
I never reported a blurred interface. Menu text is sharp on v1.1.6 and always has been.
What I actually see is a timing problem: the background blur appears immediately, but the menu panel doesn't draw for a few seconds — so briefly I'm looking at a blurred image with no menu over it. Then it arrives.
So #144 shouldn't be the lead based on my original wording. The swap chain does log
width=3840 height=2160against DLSS output1920x1080, but I see no visible defect from it.The wedge hasn't recurred at default
stream_budget, andregionswent 4 → 0Wedged run (
--stream-budget 2000) —draws/framecollapsed and never came back:Presents stayed healthy (median 16.6 ms), CPU burned ~15.66 s per 3 s wall (spinning, not blocked), window
Responding=True.regionsimmediately before the only map open of that whole session:Default-budget run (no
--stream-budget, same install, same title, one variable) — 37 minutes, 8 completed returns to world:regionserrors: 4 → 0pool budget lowered from 3977 MB to 2000 MB): absent, since nothing was passedThe wedge reproduces on demand
Set
stream_budget = 2000, drive to a vehicle, open the map. Both v1.1.3 and v1.1.6 wedge identically. Reverting to default clears it.That should let you reproduce without waiting on a report.
The vehicle wasn't the trigger
"Open in a car, hang in a car" was my working repro and it was wrong. The vehicle is just where pager pressure peaked first — which is why it failed there and survived on foot. Turning the camera away from an in-world TV produced the same eviction (separate report, #361): video and audio both stop.
Honest limit: both symptoms shared a trigger and both vanished at default. That doesn't prove a shared mechanism — only a shared precondition.
F10 answer: yes, it still opened
Tested while wedged, still at 173 draws:
Both are the layer's own keys, so the host's keyboard/raw-input path stays alive at the wedge. This isn't total input loss at the layer, and #146 may not be the right frame — only the title-facing menu state was stuck.
Two tooling problems
zip-logsskipsplay.err. It packedlogs/play.log(3.3 KB),options.ini,controls.ini,settings.ini— and left outplay.err(332 KB), which is wheredraws/frame,regionsandmapmousego. I see #460 addresses this; I checked the diff and theis_log_file()case-insensitive.log/.errmatch does exactly what's needed. Until it lands, wedge reports are missing the payload unless attached by hand.BUILD.txtis stale by six versions. Mine reads:while the actual
bin\larp.exeis:UPDATE zips don't refresh
BUILD.txt, so build IDs from anyone on an UPDATE zip are unreliable.Caveat on default
larp holds 6.9 GB, whole system 7.6 GB of 8 GB — flat over 37 minutes, no drift, no crash. That's close enough to
0x887A0005that I'm keeping the 1024 MiB shader heap active (nv-profile --mb 1024). If it faults I go back to 2000 and accept the broken video and the wedge.So the real request is: make eviction not break live windows, rather than "run at default".
Unrelated: the startup advisor reports
Desktop RAM is running at 4400 MT/s (rated 5600 MT/s — XMP/EXPO appears off in BIOS). On a CPU-bound title that's meaningful free performance, and it's currently one line in a log nobody reads.>to [bug] map/pause menu wedges the game in menu state (172 draws/frame, never exits) - tied to stream_budget = 2000 112 characters, no markdown wrappers, leads with the symptom and the measurement.[bug] title UI blurred on 1080p (swap chain 3840x2160) and map/pause menu can wedge the game in menu state — input dead, or purple screen with menu music