Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Occasionally hangs on "Finishing boot" during boot in certain cases https://github.com/siyuan-note/siyuan/issues/18008

Daniel7ffad9e99be1
diff --git a/app/electron/main.js b/app/electron/main.js
index fb695c3810..be5b17fc8d 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -600,8 +600,10 @@ const initMainWindow = () => {
// 强制销毁 boot 窗口并显示主窗口,避免永久卡在启动页
const readyToShowTimeout = setTimeout(() => {
if (bootWindow && !bootWindow.isDestroyed()) {
- writeLog("siyuan-ready-to-show timeout, force showing main window");
- currentWindow.show();
+ if (!currentWindow.isDestroyed()) {
+ writeLog("siyuan-ready-to-show timeout, force showing main window");
+ currentWindow.show();
+ }
bootWindow.destroy();
}
}, 60000);