You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected error: Cannot find window menu for id 1. #3313
Error: Cannot find window menu for id 1.
at wt.getWindowMenuById (/Applications/Mark Text.app/Contents/Resources/app.asar/dist/electron/main.js:2:260308)
at IpcMainImpl.<anonymous> (/Applications/Mark Text.app/Contents/Resources/app.asar/dist/electron/main.js:2:262120)
at IpcMainImpl.emit (events.js:315:20)
at Object.<anonymous> (electron/js2c/browser_init.js:157:8980)
at Object.emit (events.js:315:20)
Version
Mark Text: v0.16.3
Operating system: Darwin x64 21.5.0 (darwin)
I do not remember what I did, but I remember I was trying to close windows. Firefox got some tabs stuck as well. It could potentially be a system issue, but not all apps were impacted.
I've got the same error while exiting the app.
An unexpected error occurred in the main process.
This content was created by mark text application automatically.
Stack Trace
Error: Cannot find window menu for id 1.
at ft.getWindowMenuById (/Applications/Mark Text.app/Contents/Resources/app.asar/dist/electron/main.js:2:250602)
at IpcMainImpl.<anonymous> (/Applications/Mark Text.app/Contents/Resources/app.asar/dist/electron/main.js:2:252725)
at IpcMainImpl.emit (events.js:210:5)
at WebContents.<anonymous> (electron/js2c/browser_init.js:3908:15)
at WebContents.emit (events.js:210:5)
Version
Mark Text: v0.16.2
Operating system: Darwin x64 21.6.0 (darwin)
Closing — this crash was reported against the legacy webpack-bundled build (the stack trace points into dist/electron/renderer.js / dist/electron/main.js / webpack:/marktext/..., which no longer exists).
The renderer + main process were rewritten on top of electron-vite in PR #4001 (commit 85607dd, shipped in 0.18.x). Many of the crash sites referenced in stacks like this were either rewritten, replaced, or now sit behind explicit guards. The general "Unexpected error" surface was also re-audited and given regression tests in PR #4268.
Please upgrade to the latest 0.18.x build. If you still hit a crash on a recent build, please reopen with the new MarkText version and the steps that triggered it — the new stack traces will point us to the actual current code.
Activity
Toover commentedon Jun 16, 2022
I do not remember what I did, but I remember I was trying to close windows. Firefox got some tabs stuck as well. It could potentially be a system issue, but not all apps were impacted.
XXMY commentedon Oct 23, 2023
Description
I've got the same error while exiting the app.
An unexpected error occurred in the main process.
This content was created by mark text application automatically.
Stack Trace
Version
Mark Text: v0.16.2
Operating system: Darwin x64 21.6.0 (darwin)
Jocs commentedon May 23, 2026
Closing — this crash was reported against the legacy webpack-bundled build (the stack trace points into
dist/electron/renderer.js/dist/electron/main.js/webpack:/marktext/..., which no longer exists).The renderer + main process were rewritten on top of electron-vite in PR #4001 (commit 85607dd, shipped in 0.18.x). Many of the crash sites referenced in stacks like this were either rewritten, replaced, or now sit behind explicit guards. The general "Unexpected error" surface was also re-audited and given regression tests in PR #4268.
Please upgrade to the latest 0.18.x build. If you still hit a crash on a recent build, please reopen with the new MarkText version and the steps that triggered it — the new stack traces will point us to the actual current code.