openless icon indicating copy to clipboard operation
openless copied to clipboard

[windows] 启动阶段先显示空边框再长时间白屏

Open Cooper-X-Oak opened this issue 7 months ago • 2 comments

## 现象

  • 触发条件:Windows 真机启动 OpenLess 打包产物。
  • 当前表现:窗口会先出现只有边框的透明空壳,随后变成白屏,等待一段时间后才渲染主界面。
  • 已定位根因:tauri.conf.json 中 main window visible: true,Rust setup() 又立即 show_main_window();此时 React 首屏仍在权限 gate 中,gate === checking 返回 null,所以用户看到空壳/白屏。
  • 本地验证信号:改为前端首帧 ready 后再 show(),新 exe 约 378ms 出现可响应窗口。

影响

  • Windows 用户会误以为应用卡死或闪退。
  • 真机回归难以区分启动慢、WebView 白屏和后端崩溃。
  • 首次体验严重受损,是 Windows 版本当前最高优先级体验问题之一。

建议接受标准

  • [ ] Windows 主窗口不在 React 首帧前显示空边框。
  • [ ] 启动时不出现长时间纯白屏;如需等待,必须显示明确启动态。
  • [ ] 权限探测不能阻塞 Windows 首屏渲染。
  • [ ] 打包产物启动后 1 秒内能看到可识别的 OpenLess UI 或启动态。

TODO / 不确定项

  • TODO:补充 process start -> webview ready -> first render -> show 的启动耗时日志,便于 CI/真机回归观察。

Cooper-X-Oak avatar Apr 29 '26 14:04 Cooper-X-Oak

这项已被后续 Windows 启动路径修复覆盖,可关闭。对应方向包括修复启动空壳白屏、让 Windows 首屏不再被权限/启动时序阻塞。

Cooper-X-Oak avatar Apr 30 '26 10:04 Cooper-X-Oak

Closing as addressed by later fixes and follow-up work on main/develop.

Cooper-X-Oak avatar Apr 30 '26 10:04 Cooper-X-Oak