mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3606
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1679
Author: @nekomario28
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix-1607-commit-limit📝 Commits (1)
44fdbabWindows: cap conversation-memory admission at the commit limit too (#1607)📊 Changes
3 files changed (+9 additions, -5 deletions)
View changed files
📝
include/strata/core/conversation_memory.hpp(+3 -2)📝
src/core/conversation_memory.cpp(+4 -1)📝
src/program/generate.cpp(+2 -2)📄 Description
Fixes #1607.
The conversation-cache/checkpoint admission reads
ullAvailPhysonly, so it admits allocations the commit limit (RAM + page file) then refuses — the engine exits0xC0000409with no message even with GiB of physical RAM free. Under WDDM the card's VRAM is charged to the commit too (#141), and the reporter reproduced the crash 6 times, every time within 0.1 GiB of the limit.Change
conversation_available_memory()on Windows now returnsmin(ullAvailPhys, ullAvailPageFile)— the same pairhost_available_memoryalready exposes to the expert-source path. It never admits more than today (when the page file is generous, physical RAM is still the bound); the admission floor logic is untouched, and Linux still readsMemAvailable. The two parking log lines drop the word "physical" since the bound can now be the commit charge.Test plan
x86_64-w64-mingw32-g++ -fsyntax-onlyonconversation_memory.cppand_conversation_memory_test.cpp: the_WIN32TU type-checks against real windows.h.conversation_memory_test: 23 checks pass; the Windows-specific check (*available <= ullTotalPhys) still holds since the bound only tightens.g++ -fsyntax-onlyon the Linux path: unchanged, clean.Not tested: the actual 0xC0000409 crash on Windows (no Windows box here) — the change only tightens admission, and the reporter's trace ties every crash to the commit boundary this now respects.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.