mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5180] [GUI] Preview sidebar: WebView2 renderer dies with "Out of Memory" while re-rendering a long Markdown file (V8 heap OOM ~4.4 GB, machine still had 8 GB free) - 9 dumps, 20 s growth curve #3085
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#3085
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 @everyonebyself on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5180
English TL;DR. On Windows, the desktop app's Markdown preview sidebar repeatedly kills its own WebView2 renderer process. Chromium then paints its own error page,
此页存在问题 / 错误代码: Out of Memory("Error code: Out of Memory"), which reads like "the machine ran out of RAM" but is not: the Crashpad minidumps sayv8_oom.cc:49] V8 javascript OOM (Ineffective mark-compacts near heap limit)withptype=rendererand the annotationoom-mem# … CA:4055|PW:4452|PC:4390— the page's own JavaScript heap grew to about 4.4 GB (the V8 code-cage limit) while the machine still had 8.4 GB of free physical memory, commit at 66 %, and the page file barely used. On this machine it happened 13 times in three days (9 minidumps rescued; annotations and sha256 below). The growth is not a slow leak: the renderer's combined working set went 371 MB → 4525 MB in 26 seconds and 2291 MB → 4519 MB in 19 seconds, and the moment it died the machine bounced back to 8 GB free. A large Markdown document is re-rendered (we strongly suspect re-rendered again, from scratch) whenever the file on disk changes — our workspace has daemons writing Markdown continuously.Area
[GUI]Desktop app (shell + WebView2 + host Web UI). Engine side is unaffected: the model keeps generating while the panel is dead, and the same page rendered in an external browser (same Chromium/Edge kernel) does not crash.Environment (all measured on the reporting machine)
Evidence
1. Nine rescued minidumps, identical cause of death — from
%LOCALAPPDATA%\ai.strata.desktop\EBWebView\Crashpad\reports\*.dmp, read byte-wise (no debugger needed). Every one carriesv8_oom.cc:49] V8 javascript OOM, Crashpad annotationptype = rendererandprod = Edge WebView2:ptype13972AEF8B0E29CE92E3FBE3A53F14E6D96968937E37ED966E4DCE1C13CA5D4078E7FE174D6DC3EF16345412C1EEBC4B9173B576415FDD1F2ACEF51DA8DFF751BA81D54F1343E539The 11-04 dumps also carry a V8 out-of-memory annotation, quoted verbatim (we do not know what every field means — if you can read it, note how close
PW/PCare to 4 GB):Crashpad self-purges old reports, so four further crashes on 11-03 (13:00:10, 19:01:39, 22:58:30, 23:55:30 — same
v8_oom.ccstring, seen byte-wise while the files were still on disk) could not be rescued; the last of them came 62 s after a 54.8 KB Markdown file was rewritten under the open preview. One extra dump, 11-04 00:55:22 (7FCD7FB27B011F1B, 12.2 MB), has nov8_oom.ccline and is annotatedptype = gpu-process— a different crash, deliberately not counted as this bug.2. It is explosive growth, not a leak (3 s sampling of the renderer processes' combined working set, logged by our own watcher):
3. The machine was not short of memory — at the crash second: free physical 8.2–8.4 GB, commit charge 128.8 / 196.2 GB (66 %), page file 2 GB used of 128 GB. Same error page appeared on a second, unrelated machine (RTX 4090 desktop), which also had plenty free.
4. The error page is Chromium's, not yours — the strings
此页存在问题,错误代码,你还可以,打开新标签页all live inEdgeWebView\Application\156.0.4314.58\Locales\zh-CN.pak, and none of them exist in the app's own bundlehost\dist\assets\index-k1Z_bgvQ.js. So users are told "Out of Memory" by a third-party error page and go and change their page file. (One of us nearly did.)5. Correlation we can see — 11-02 23:55:30 happened 62 seconds after a 54.8 KB Markdown file was written into the workspace while it was the file open in the preview sidebar. Background daemons in our setup rewrite Markdown files continuously; the sidebar re-renders each time.
Related reports already on the tracker
ProcessFailed/RenderProcessExitedhandler, so a dead renderer just leaves the error page on screen. Still open, 0 comments.What we ask
ProcessFailed/RenderProcessExitedand reload the panel, never leave a full-window kernel error page (see #5079).renderer crashed (V8 OOM) panel=preview. Today the app records nothing, so the evidence only exists inside Crashpad dumps.Workaround we live with meanwhile
Long documents are saved to disk and read from an editor; heavy web pages go to an external browser; the preview sidebar is not treated as the only copy of anything.
Thanks
Thank you for Strata — running a 128 GB-class local model this smoothly, with one installer, on a machine we bought off the shelf, still feels like cheating, and it is the reason this workspace runs 24/7. We are filing this with dumps because the fix is worth having, not because the product is bad: the model never dropped a token through any of the twelve crashes. Happy to run a debug build, capture a DOM snapshot at the moment of growth, or bisect a fix — just say what you need and we will have numbers for you the same day.
— 【395】 for 【大郭】, 2026-11-04. Dumps and the raw 3 s watcher CSV (
sysmon\logs\webview-oom.csv) attached / available on request.@everyonebyself commented on GitHub (Nov 4, 2026):
Addendum 1 - full dump inventory (SHA-256) + the 3 s watcher log around one crash.
All nine files below carry these Crashpad minidump annotations, read straight out of the bytes:
v8_oom.cc:49] V8 javascript OOM,ptype = renderer,prod = Edge WebView2. The three dated 11-04 additionally contain V8's ownoom-mem$line (quoted verbatim in the issue body).205017-cfe8daad-43c9-4cf7-b38f-929943f6b8bd.dmp13972AEF8B0E29CE4E26B7A6CE77C3BCADE46A61E4E8A56F758179B48D055902222618-49ce6054-11c2-4dec-bf32-21a2eeb0e608.dmp92E3FBE3A53F14E6C694A303385415E0B1CB7E2372671C6F165E352D05E11124231009-29c4e4d0-7e4d-4d3e-93f2-acf4ee91d9fc.dmpD96968937E37ED96FC47C7D3B9E1743E0B2FC46525E94344B4AE57461FB2551B232433-04e6f751-ed0c-4999-a2da-29767f52a60f.dmp6E4DCE1C13CA5D407DD57563C37BA8B892EF6E011B8CE1585E97CB585B90E24A1103-000254-9f9a43c7-bcc4-408a-b384-7d756d73b918.dmp78E7FE174D6DC3EF7F04AB12A7273D634771991B8B854A69ED3E3569672E12C11103-004615-2b43e4fd-030b-4312-849d-8c8d787829ae.dmp16345412C1EEBC4B3AA8287ECB50E17F0959385D95198D56E99BBFB8E2B2F0C61104-011139-5164ea58-e80b-49a1-954c-9399991e54cb.dmp9173B576415FDD1F16810A816ECF08FFDFC03689C85574177706D96088A3119B1104-115835-e72ca254-7f51-48c5-ae30-11a1ba6cc1e7.dmp2ACEF51DA8DFF751DDC217B49C940908821CA9880A1CDBC1EB220CAC284D8E2B1104-123224-bf3eba2f-e338-4162-b415-d941a300abab.dmpBA81D54F1343E539B8BAE950AA342A46EB2F27B505E13E79D2F832C75603349DKept separate and not part of this bug:
1104-005522-9cb2f417-6cc4-4907-a241-3710126a7028.dmp- 2026-11-04 00:55:22, 11.69 MB, sha2567FCD7FB27B011F1B48E6EB400892DA46A474EEE265DC50286C9B5535E83C0347. Its annotation saysptype = gpu-processand it contains nov8_oomstring at all.Column 8: the renderer climbs 2 664 -> 3 577 -> 4 104 -> 4 396 -> 4 447 MB, flattens at ~4 447 MB for two samples, and 4 s later
REND_Ngoes 2 -> 1 withLOST=19656- the preview renderer is gone and free physical memory recovers by itself (4 258 -> 8 618 MB). Over all 2 223 samples the maximum single-renderer working set ever seen is 4 453 MB, and only 20 samples exceed 3 000 MB. That reads like a per-process heap ceiling being hit rather than the machine running out (inference, stated as such) - which is also why this "Out of Memory" is not a RAM complaint.Why the dumps are not attached to this issue yet: I tried to upload them with the endpoint GitHub's editor uses (
POST https://uploads.github.com/repos/Niko1221/Strata/issues/comments?name=..., multipart/form-data, classic token withpublic_repo- the same credential that created this issue without trouble). Every attempt answers422 {"message":"Bad Size"}: a 7.5 MB.dmp, a 160 KB.csv, and even a 70-byte valid PNG. Noting it in case anyone else hits the same wall. The nine dumps are here, byte-for-byte, pinned by the SHA-256 above - tell me where to put them (a release on a repo you own, object storage, or I attach them to this comment from the web UI) and I will get them over the same day. They are unmodified Crashpad dumps and do contain local absolute paths plus a Windows user name; happy to strip those first if you would rather.@everyonebyself commented on GitHub (Nov 4, 2026):
Attaching 3 of the 9 crashpad minidumps referenced in the table above, packed in one zip (1,499,939 bytes; unzipped 7,459,385 + 7,466,764 + 7,503,525 bytes).
crash-20261102-2050_first.dmp is the earliest confirmed occurrence (11-02 20:50).
crash-20261103-0002_growth-curve.dmp is the dump behind the 2664 -> 3577 -> 4104 -> 4396 -> 4447 MB sampling series.
crash-20261104-1232_oom-mem-values.dmp carries the raw V8 oom-mem$ annotation quoted above.
Only the filenames were renamed for readability, the bytes are the original dumps. zip sha256 is 078dbe1e5026bc7f8031c78822c0b51d8c0ee6853862239b2a0b65903350f7a8.
All three carry ptype = renderer and prod = Edge WebView2 in their Crashpad annotations. The remaining six are pinned by SHA-256 in my previous comment, say the word and I will upload them the same way.
strata-395-oom-dumps-3.zip
@Niko1221 commented on GitHub (Nov 5, 2026):
Hello everyonebyself,
Thank you for the detailed report and the dumps. In Strata 0.2.11 the Markdown preview is bounded: text is memoised, rendered in slices with at most one pending step, and a very large block or file falls back to plain text. In Edge 156 on a 49 KB file, 50 unrelated updates cost 50 renders and about 23 MB of heap before and none after. We also fixed a related follow-up: a file with Windows line ends could run the page out of memory, and the sidebar now shows a file's current content after it changed on disk. We could not reproduce the 4.4 GB heap failure itself, so we do not know that this is the whole cause on your machine. If the renderer still runs out of memory on 0.2.11, please send the Windows crash dump time and the size of the file.
The Strata project