mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5079] [GUI] 聊天页的渲染进程崩掉后整窗变成 WebView2 内置错误页("此页存在问题 / 404 Not found"):外壳零订阅 ProcessFailed,重载后同一会话继续崩 #2366
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#2366
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 @xvcezrqpbxtpzblrt on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5079
English TL;DR: The chat page's WebView2 renderer process dies (4 crashpad dumps today, the last one 29 s before the screenshot), and nothing in the app notices:
strata-desktop.execontains zero occurrences ofProcessFailed/add_ProcessFailedEventHandler/RenderProcessExited, the desktop log has no line after 10:16:46, so the window is simply left showing WebView2's built-in error page ("此页存在问题 / An error occurred / 重新加载", with the stale status line "404 Not found" and the device line "此设备: 127.0.0.1"). The host is not returning a 404: live probes showGET /→ 200 andGET /nope-does-not-exist→ 200 + index.html (SPA fallback), and WebView2Historyhas no navigation recorded near 16:51 at all — so no server ever served an error page.Area
[GUI] 桌面应用(Tauri 外壳 + WebView2 + host Web UI)
现象
聊天进行一段时间后,整个窗口被一张浏览器错误页替换:标题栏仍是 "Strata",页面正文是
点"重新加载"通常能回到应用(根路径确实返回 200)。用户描述:助手回答完之后经常出现这一页,今天一天内多次。
环境(本机实测)
http://127.0.0.1:47831C:\Program Files (x86)\Microsoft\EdgeWebView\Application\156.0.4314.58\msedgewebview2.exe)10.0.26300,NVIDIA RTX 3080 Ti Laptop / cuda,16 核 / 64 GBs_ml1nn1proflk(长会话,含大量长回答与工具输出)Pasted picture 16-51-21.png(2026-11-03 16:51:21)证据(全部由我在本机取到)
1. 聊天页的渲染进程崩了 4 次,最后一次就在截图前 29 秒
C:\Users\123\AppData\Local\ai.strata.desktop\EBWebView\Crashpad\reports\94e19283-615e-4151-828b-476b8a6a4a9a.dmphttp://127.0.0.1:47831/6a135737-a697-48a8-bc9c-3adea351f57b.dmphttp://127.0.0.1:47831/#/chat/s_ml1nn1proflkda46d03c-b455-4e06-93f0-a438250da259.dmp…/#/chat/s_ml1nn1proflk(同转储内还有…/api/events)1b69e415-a03e-471a-897f-f9d920c28a81.dmp…/#/chat/s_ml1nn1proflk四个转储的命令行串里都有
--type=renderer、--webview-exe-name=strata-desktop.exe、--webview-exe-version=0.2.10、--embedded-browser-webview=1、--user-data-dir="…\ai.strata.desktop\EBWebView"、renderer-client-id=5—— 即聊天那一页的渲染进程。2. 中止原因:V8 垃圾回收调度的致命检查
我用最简 minidump 解析读异常流,四个转储都是 exception code = 0x1100、flags = 0x2000(Chromium 的"故意中止"标记:
CHECK/LOG(FATAL)触发),不是随机内存越权。最近的 16:50:52 转储里含致命符号字符串:
即 V8 并发标记的 worker 调度处 fatal。
3. 崩完 7 秒出现替代渲染进程
Win32_Process:pid 5572msedgewebview2.exe --type=renderer … --webview-exe-name=strata-desktop.exe,创建时间 16:50:59,父进程 pid 6244(同一 Strata webview 的浏览器进程)。与转储时间 16:50:52 对上。4. 服务器不是 404:反证
对活着的 host 直接探测(2026-11-03 17:02 左右):
GET http://127.0.0.1:47831/→ 200,2172 字节,content-type: text/html,cache-control: no-storeGET http://127.0.0.1:47831/nope-does-not-exist→ 200 + index.html(SPA 兜底)→ Strata 的 host 对任何路径都不会产生浏览器 404 页GET http://127.0.0.1:47831/#/chat/s_ml1nn1proflk→ 200(片段只在客户端,服务器看到/)host\dist\index.html2172 字节,mtime 2026-11-03 06:43:06(0.2.10 安装产物,当时没有被写)5. WebView2 的 History 里 16:51 附近没有任何导航记录
…\EBWebView\Default\History(294,912 字节,16:51:29 提交)用node:sqlite读取(Chrome epoch 微秒):urls共 21 行,全部是http://127.0.0.1:47831/…,标题全是 "Strata"/"Strata — local AI, tuned to one model";没有任何指向其它主机/端口的行,没有错误页的行transition=0x32000001,链首)结合第 4 条:那一页不是服务器响应,是浏览器自绘的错误页(错误页不进 History)。页面上的 "404 Not found" 与 "此设备: 127.0.0.1" 是 Chromium 错误页沿用的上一次已提交导航的状态行/主机名 —— 这条是推断,支撑材料是第 4、5 条(服务器永远 200、History 无导航记录)。
6. 为什么是那种"极简"错误页
WebView2 自己的日志
…\EBWebView\Default\settings_diagnostic.log(本次运行 1103/010727 起):完整错误页被关掉 → 只剩标题 + 摘要 + "重新加载"。
7. 外壳完全没察觉,也没记录
AppData\Local\Strata\logs\desktop-20261103-010710.log:546 字节,最后一行是[host] agent · Harness 0.2.1-alpha.3 ready (pid 3884, 1 route(s)),mtime 10:16:46 —— 16:50 的崩溃零记录strata-desktop.exe字符串计数(ASCII):ProcessFailed0、add_ProcessFailedEventHandler0、RenderProcessExited0、WebResourceResponseReceived0、DevToolsProtocolEventReceiver0→ 外壳没有订阅 WebView2 的进程失败/响应事件,所以不自动重载、不提示原因、不落日志。用户只能自己点"重新加载",而重载后同一个会话继续崩(15:45:53 崩在根地址,16:12 崩在同一聊天,说明重载后接着崩)。
复现状态(按 CONTRIBUTING 区分)
--type=renderer、webview-exe-name、异常码 0x1100/0x2000、V8 致命符号);确认 16:50:59 新渲染进程 pid;实测 host 根路径与任意路径都是 200;读取 WebView2 History(无 16:51 记录)与settings_diagnostic.log(错误页开关);核对桌面日志最后时间与 exe 字符串计数建议
ProcessFailed(浏览器进程侧)+ Tauri 的on_page_load/console 落盘到桌面日志。渲染进程死了就:自动重载一次 + 界面明确提示"页面已崩溃并重载"(现在完全静默),并把崩溃转储路径写进日志(用户自己根本找不到Crashpad\reports)。连续崩溃要退避并提示"该会话过长,新建会话",避免重载→立刻再崩的死循环。/api/events的缓冲要有上限。V8 并发标记 fatal 是 GC 压力的直接信号。[shell] renderer process failed (code 0x…) at <url>,便于对号入座。相关已有讨论(先查过仓库)
OCm 多进程共享注册主机内存崩溃问题—— 引擎侧(进程/共享内存)崩溃,与本条 GUI 渲染进程崩溃不同层,相互引用在此。此页存在问题、renderer crash、页面崩溃、blank page 404、white screen crash、崩溃 重载、webview crash;除 #3051 外没有覆盖"GUI 渲染进程崩溃后显示内置错误页"的开放 issue。本报告未包含
History不记录自绘错误页,因此"那一页对应的 URL"无法从 History 得到;本报告的因果链由崩溃转储 + 进程创建时间 + 服务器 200 反证 + 外壳零订阅 四部分共同支撑。版本核对(2026-11-03 补充)
本条不含源码行号引用:全部证据来自运行时产物(crashpad 转储、WebView2 的 History 与
settings_diagnostic.log、进程创建时间、对活 host 的实测、strata-desktop.exe字符串计数),与源码检出新旧无关。已把检出对齐 tag v0.2.10 =ffa80d73(安装产物 mtime 06:37:26 对得上)确认:结论无需修订。@Niko1221 commented on GitHub (Nov 5, 2026):
Hello,
Thank you for the detailed report. In Strata 0.2.11 the desktop shell handles a dead page renderer on Windows: it reloads the same screen, then the home screen, then stops after two recoveries in 120 seconds and leaves the browser's own page (Refresh then works). We tested this on a real WebView2 by killing the renderer three times: the first two were recovered in about 3 seconds, the third within two minutes showed the loop guard. The macOS hook is not compiled and Linux is unchanged. If the window still ends on the error page on 0.2.11, please send the desktop log lines starting with "the page's renderer exited".
The Strata project
您好,
感谢您详细的报告。在 Strata 0.2.11 中,Windows 桌面外壳会处理页面渲染进程的崩溃:先重新加载同一页面,再回到主页,如果 120 秒内已恢复两次则停止,并保留浏览器自带的页面(此时可以点刷新)。我们在真实的 WebView2 上结束渲染进程三次做了测试:前两次约 3 秒内恢复,第三次触发了循环保护。macOS 的处理尚未编译,Linux 没有改动。如果在 0.2.11 上窗口仍停在错误页,请把桌面日志中以 "the page's renderer exited" 开头的几行发给我们。
Strata 项目