mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #3604] [GUI] crashes "Error code: Out of Memory", but GPU keeps working on tasks in the background. #1487
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#1487
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?
Originally created by @GlorpGirl on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3604
Title says it all really,
GPU: 5090 32gb
RAM: 64gb
OS: Windows 11 26H2
The GUI has just crashed, I refresh, and I see this in the monitor tab:
but the chat says:
@github-actions[bot] commented on GitHub (Oct 21, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 21, 2026):
Thanks, this follows the format now.
@GlorpGirl commented on GitHub (Oct 21, 2026):
GUI keeps saying "out of memory" on both full performance mode and 20%.
I tried with a lower context as well but it ends up the same.
@melapisthebee commented on GitHub (Oct 21, 2026):
I encounter the same issue with my hardware as well.
GPU: AMD 7800XT 16GB
RAM: 64GB
OS: Windows 11 Pro 26H2
@Rusoloco73 commented on GitHub (Oct 22, 2026):
Same here 4090
RAM 196gb
@kk92123-dev commented on GitHub (Oct 22, 2026):
Same issue here with an RTX 5090 32GB and 64GB RAM.
The GUI crashes with "Out of Memory" while the GPU continues processing in the background.
@Fi-kun commented on GitHub (Oct 22, 2026):
This may be a different issue, but I encountered a very similar Out of Memory error with Strata Desktop v0.2.2 on Windows 11 (RTX 4090, 64 GB RAM).
During response generation, the WebView2 renderer's memory usage grew from approximately 135 MB to 12.9 GB, eventually causing an OOM error and interrupting the response. The inference engine's memory usage remained relatively stable.
GPT-6 Sol identified a likely cause in
apps/host/src/lib/store.ts: every streamed text chunk triggeredJSON.stringify(sessions)andlocalStorage.setItem(), repeatedly serializing the entire chat history.Our fix was to throttle chat-history persistence to approximately once per second and flush the final state when generation finishes.
After applying this change, responses completed normally, and WebView2 memory stayed around 200–500 M in my tests. A 1,000-chunk regression test also passed.
This resolved the problem in my environment, although longer-term testing is still pending. I'm sharing it in case it helps investigate this issue.
@jun76 commented on GitHub (Oct 22, 2026):
Same issue here with Strata Desktop 0.2.2 on Windows11, RTX 5090 32 GB, and 128 GB RAM.
The GUI repeatedly crashes with “Out of Memory” a few minutes into generation, while the backend continues processing. Pressing the browser Back button on mouse restores the UI, but sending another message returns “This chat is still working.” After waiting for the task to finish, I can send a message and receive a response again.
During a separate diagnostic run, WebView2 renderer private memory peaked at approximately 2.3 GiB, with more than 52 GiB of system RAM still available. That particular run did not crash, so it does not establish the cause, but the GUI OOM has reproduced several times during normal use.
@tazaki commented on GitHub (Oct 22, 2026):
Same issue.
GPU: 5090 32GB
RAM: 64GB
OS: Windows 11 Pro
@lipe123 commented on GitHub (Oct 22, 2026):
@xvcezrqpbxtpzblrt commented on GitHub (Oct 22, 2026):
Same crash on 0.2.2, with a renderer memory spike that lands exactly on the
strata.sessions.v1write.Hardware: RTX 3080 Ti Laptop (16 GB), 64 GB RAM, Windows 11 (10.0.26300), Strata Desktop 0.2.2, engine 0.1.47 (CUDA), IQ3_XXS,
--max-context 393216.What happened
The GUI died with "Error code: Out Of Memory" while the engine kept working. Right after the page crash:
http://127.0.0.1:47831/still answered200(host process alive),nvidia-smi: 14,539 / 16,384 MiB VRAM in use,So only the WebView2 renderer died.
Crash dumps
%LOCALAPPDATA%\ai.strata.desktop\EBWebView\Crashpad\reports\holds 4 dumps: 2026-10-22 20:57 and 21:37, 2026-10-23 03:19 and 04:40 (local time). All four carry the same annotation:It is not system RAM exhaustion
At the last crash: 15.8 GB physical free, commit 75.7 / 85.5 GB (pagefile system-managed, 22.2 GB allocated).
strata.execommits ~57.9 GB (39.68 GiB of experts pinned), but that still left headroom. Consistent with the 128 GB and 196 GB reports above.The sessions blob is rewritten on every streamed chunk
...\EBWebView\Default\Local Storage\leveldb\000362.ldbis 2.18 MB (strata.sessions.v1) and its mtime is exactly the crash second,04:40:57.In the 0.2.2 bundle (
host\dist\assets\index-DsqNG4H4.js):The chat stream handler updates the assistant message through
M->Vefor every SSE event (reasoning, text deltas, tool state), so the whole ~2 MB sessions blob isJSON.stringify'd and synchronously written ~38 times per second during generation (38.6 tok/s in this run). This confirms @Fi-kun's finding. With a 253k-token conversation the blob is large enough that the renderer dies within minutes, which matches the "few minutes into generation" pattern.Throttling
xo(trailing write ~1/s plus a flush when the stream ends or onpagehide) cuts that churn by ~40x. I can test a patched bundle and report back if that is useful.@tazaki commented on GitHub (Oct 23, 2026):
Updating to 0.2.3 seems to have fixed this issue for me
@Niko1221 commented on GitHub (Oct 24, 2026):
This is fixed in Strata 0.2.3. Please update to the latest release (in the Terminal:
strata update; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.