Skip to content

fix(installer-ui): 崩溃弹窗提供 WebView2 运行时下载引导 - #127

Merged
Yundi339 merged 3 commits into
mainfrom
fix/crash-dialog-webview2-link
Nov 29, 2026
Merged

Yundi339 merged 3 commits into
mainfrom
fix/crash-dialog-webview2-link

Conversation

@Yundi339

Copy link
Copy Markdown
Member

说明

面板崩溃恢复的最后一步(原生错误弹窗)只让用户发日志,没有给出最常见的修复路径。WebView2 用户数据目录/运行时损坏是这类 0xc0000005 渲染进程崩溃循环最常见的根因(实测关 GPU 加速也无法恢复的场景),所以在弹窗里直接提供官方运行时的下载入口。

修改

  • webview_runtime::show_window_failed_dialog(TaskDialog)新增按钮"下载 WebView2 运行时"(zh/zh_TW/ja/en 四语文案),点击用 ShellExecuteW 打开微软官方 Evergreen Bootstrapper(https://go.microsoft.com/fwlink/?link=2099617 ,MicrosoftEdgeWebview2Setup.exe)。
  • 正文补一句修复引导:最常见原因是 WebView2 运行时损坏,安装官方运行时后重开面板;仍建议随附 panel.log / Windows 版本 / 显卡型号。
  • 默认按钮改为下载按钮;"打开日志文件夹""关闭"保留。
  • window_failed_text 从 5 行扩为 6 行(新增按钮文案),四语文案齐全并有测试断言。

验证

  • cargo test --release -p sunshine-gui the_window_failed_dialog 通过。

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Yundi339
Yundi339 merged commit 008d24e into main Nov 29, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant