[GH-ISSUE #3604] [GUI] crashes "Error code: Out of Memory", but GPU keeps working on tasks in the background. #1487

Closed
opened 2026-11-04 01:51:38 +07:00 by bsakaguchi · 13 comments
Owner

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:

Image

but the chat says:

Image
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: <img width="1406" height="1007" alt="Image" src="https://github.com/user-attachments/assets/8606cfcc-ba07-4b61-af22-378c920c96c5" /> but the chat says: <img width="687" height="218" alt="Image" src="https://github.com/user-attachments/assets/85b8735e-450a-4c8f-9eff-55b7757fdd25" />
Author
Owner

@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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Add your graphics card with its VRAM, your RAM and your operating system.

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

<!-- gh-comment-id:6319269210 --> @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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Add your graphics card with its VRAM, your RAM and your operating system. 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](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 21, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6319447462 --> @github-actions[bot] commented on GitHub (Oct 21, 2026): Thanks, this follows the format now.
Author
Owner

@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.

<!-- gh-comment-id:6323263019 --> @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.
Author
Owner

@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

<!-- gh-comment-id:6328507676 --> @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
Author
Owner

@Rusoloco73 commented on GitHub (Oct 22, 2026):

Same here 4090
RAM 196gb

<!-- gh-comment-id:6330307013 --> @Rusoloco73 commented on GitHub (Oct 22, 2026): Same here 4090 RAM 196gb
Author
Owner

@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.

<!-- gh-comment-id:6330649592 --> @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.
Author
Owner

@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 triggered JSON.stringify(sessions) and localStorage.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.

<!-- gh-comment-id:6333101649 --> @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 triggered `JSON.stringify(sessions)` and `localStorage.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.
Author
Owner

@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.

Image
<!-- gh-comment-id:6341303479 --> @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. <img width="1142" height="613" alt="Image" src="https://github.com/user-attachments/assets/d6c99086-40f3-443e-8bca-222662d297d6" />
Author
Owner

@tazaki commented on GitHub (Oct 22, 2026):

Same issue.

GPU: 5090 32GB
RAM: 64GB
OS: Windows 11 Pro

<!-- gh-comment-id:6344901187 --> @tazaki commented on GitHub (Oct 22, 2026): Same issue. GPU: 5090 32GB RAM: 64GB OS: Windows 11 Pro
Author
Owner

@lipe123 commented on GitHub (Oct 22, 2026):

Image What keeps happening to me today is the GUI is using WAAAAAAAAAAAAY too much ram and that causes the OOM error, the engine is still trying to work but the gui is insane. Idk why its using so much ram, it repeatedly does this now every time i start a chat and try to do anything. I start with 15-20GB free memory and after 30sec to a minute of planning the memory keeps spiking higher and higher and then OOM death.
<!-- gh-comment-id:6347107983 --> @lipe123 commented on GitHub (Oct 22, 2026): <img width="392" height="383" alt="Image" src="https://github.com/user-attachments/assets/fbccc8a0-295e-45cb-a80c-fbcc9d0b46b0" /> What keeps happening to me today is the GUI is using WAAAAAAAAAAAAY too much ram and that causes the OOM error, the engine is still trying to work but the gui is insane. Idk why its using so much ram, it repeatedly does this now every time i start a chat and try to do anything. I start with 15-20GB free memory and after 30sec to a minute of planning the memory keeps spiking higher and higher and then OOM death.
Author
Owner

@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.v1 write.

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 answered 200 (host process alive),
  • nvidia-smi: 14,539 / 16,384 MiB VRAM in use,
  • the engine log shows the in-flight request finishing normally (762 tokens in 121 s, 38.6 tok/s), and the chat page had a 253,010-token prompt before it.

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:

ApplicationName=msedgewebview2.exe; ProcessType=renderer; SubCode=0xe0000008;
ModuleName=KERNELBASE.dll; WV=strata-desktop.exe; WV_V=0.2.2

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.exe commits ~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.ldb is 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):

const $7 = "strata.sessions.v1";
function xo(t){ try { localStorage.setItem($7, JSON.stringify(t)) } catch {} }
function Ve(t,c){ const i = is.sessions.map(l => l.id === t ? c(l) : l); xo(i), Ms({sessions:i}) }

The chat stream handler updates the assistant message through M -> Ve for every SSE event (reasoning, text deltas, tool state), so the whole ~2 MB sessions blob is JSON.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 on pagehide) cuts that churn by ~40x. I can test a patched bundle and report back if that is useful.

<!-- gh-comment-id:6351043326 --> @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.v1` write.** 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 answered `200` (host process alive), - `nvidia-smi`: 14,539 / 16,384 MiB VRAM in use, - the engine log shows the in-flight request finishing normally (762 tokens in 121 s, 38.6 tok/s), and the chat page had a 253,010-token prompt before it. 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: ``` ApplicationName=msedgewebview2.exe; ProcessType=renderer; SubCode=0xe0000008; ModuleName=KERNELBASE.dll; WV=strata-desktop.exe; WV_V=0.2.2 ``` ### 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.exe` commits ~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.ldb` is 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`): ```js const $7 = "strata.sessions.v1"; function xo(t){ try { localStorage.setItem($7, JSON.stringify(t)) } catch {} } function Ve(t,c){ const i = is.sessions.map(l => l.id === t ? c(l) : l); xo(i), Ms({sessions:i}) } ``` The chat stream handler updates the assistant message through `M` -> `Ve` for every SSE event (`reasoning`, text deltas, tool state), so the whole ~2 MB sessions blob is `JSON.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 on `pagehide`) cuts that churn by ~40x. I can test a patched bundle and report back if that is useful.
Author
Owner

@tazaki commented on GitHub (Oct 23, 2026):

Updating to 0.2.3 seems to have fixed this issue for me

<!-- gh-comment-id:6370575771 --> @tazaki commented on GitHub (Oct 23, 2026): Updating to 0.2.3 seems to have fixed this issue for me
Author
Owner

@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.

<!-- gh-comment-id:6383445661 --> @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.
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1487
No description provided.