summaryrefslogtreecommitdiff
path: root/dev/Inbox.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 12:11:02 -0300
committerGabriel Schneider <[email protected]>2026-11-25 12:27:49 -0300
commit1803c4e7a8c0a6eb6360a7f602358c470b11dfbf (patch)
tree854479cce605fe67f13396629ce7d7f0fe055c06 /dev/Inbox.zig
parent58d7434f56a9fef3098cfc191fbd1cb32ec09cfb (diff)
downloadpardes-1803c4e7a8c0a6eb6360a7f602358c470b11dfbf.tar.gz
pardes-1803c4e7a8c0a6eb6360a7f602358c470b11dfbf.zip
gui: a touchpad's fraction or a wheel's glide over a body whose TreeContext rows went no longer kills the window: emitScrollRows drew a body layer's rows past the grid's whenever the pane's slot kept a count of context rows (`context_rows != 0`), and a slot keeps that count, its width and its cells after its layer goes (draw.zig sets only `rows = 0` each frame; `rows == 0` is no layer, Layer.zig, as holdContext, renderFrame and the cover read it), so the first frame with a lag over a body whose context rows went (TreeContext turned off, or scrolled to where the top line has none) ran `for (bh..layer.rows)` with rows 0 under a body of bh rows and the range's length underflowed: `panic: integer overflow`, the session gone; the installed 9bd7dbb00a01 died so at 2026-11-25 11:58:30 (core dump: scroll_pane 1, scroll_lag +0.883, the glide at rest, the scroll's body 72 rows and 121 wide, the slot's layer rows 0 with context_rows 2, cols 121 and cells for 74 rows, its first rows the context rows it was last filled with; the pane's file at line 834 with tree_context false and context_rows 0: TreeContext had been on there and was off, then a touchpad scroll up; the trace's gui.zig:3706:49 is the one panic call ReleaseSafe merged the function's overflow checks into, a Debug build puts it on the range); THE FIX: the layer's rows are drawn from a layer the frame has (`rows != 0`), and scrollBody holds a scroll to its body layer's bounds: a layer shorter than the scroll's body (a pane shrunk under a glide, which keeps the rect it began on: the same underflow) or with fewer cells than its rows makes no scroll body, so that frame is drawn as it is, unmoved, where the loop panicked or read past the cells; TEST FIRST: gui.zig "a touchpad's fraction over a body whose context rows went (scrolled out of, TreeContext off) draws the rows the frame has: its body layer went with them" (quarter notches up from under two context rows to the file's top, then again after TreeContext off, each frame's instances counted: on the base `panic: integer overflow` at gui.zig:3708 `for (bh..layer.rows)`, each of the two ways alone) and "a scroll's body taller than its body layer (the pane shrunk under a glide) is drawn still, and nothing past a layer's cells is read" (on the base the same panic); GATES: unit-test -Dplatform=gui 1901/1905 (4 skipped), the one failed step the perf check's known BaselineHarnessMismatch; core-test 1083/1254 (171 skipped), as the base; a user hits it at the first touchpad scroll or wheel glide over a TreeContext body whose context rows went, every time, since d1cc6d5e3310 (2026-11-07); TreeContext is off by default, so the user met it once in that time
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'dev/Inbox.zig')
0 files changed, 0 insertions, 0 deletions