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 destructure property 'text' of 'n' as it is null. #2099
An unexpected error occurred in the renderer process.
I just openen a new file and using @ I tried to add Header 1 when the error occured.
Stack Trace
TypeError: Cannot destructure property 'text' of 'n' as it is null.
at $r.updateParagraph (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/contentState/paragraphCtrl.js:451:13)
at Dc.selectItem (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/ui/quickInsert/index.js:136:22)
at Object.call (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/ui/quickInsert/index.js:68:22)
at invokeHandler (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/node_modules/snabbdom/modules/eventlisteners.js:6:17)
at handleEvent (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/node_modules/snabbdom/modules/eventlisteners.js:34:9)
at HTMLDivElement.A (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/node_modules/snabbdom/modules/eventlisteners.js:39:9)
Version
Mark Text: v0.16.1 (7f80be4)
Operating system: Linux x64 5.4.36-1-MANJARO (linux)
Closing this with the regression-guard e2e specs added in #4268.
The crash in paragraphCtrl.updateParagraph no longer reproduces on the current develop. The upstream guard at src/muya/lib/ui/quickInsert/index.js:160-164 (which short-circuits when this.block is null) plus isAllowedTransformation filtering prevent the null block from reaching the destructuring statement.
The original recipe (type @ then pick Header 1) and adjacent paths (delete-paragraph-then-menu) are encoded as Playwright tests in test/e2e/crash-update-paragraph.spec.ts.
If you still hit this crash on a recent build, please reopen with the exact MarkText version and the steps that triggered it.
Activity
Jocs commentedon May 23, 2026
Closing this with the regression-guard e2e specs added in #4268.
The crash in
paragraphCtrl.updateParagraphno longer reproduces on the currentdevelop. The upstream guard atsrc/muya/lib/ui/quickInsert/index.js:160-164(which short-circuits whenthis.blockis null) plusisAllowedTransformationfiltering prevent the null block from reaching the destructuring statement.The original recipe (type
@then pick Header 1) and adjacent paths (delete-paragraph-then-menu) are encoded as Playwright tests intest/e2e/crash-update-paragraph.spec.ts.If you still hit this crash on a recent build, please reopen with the exact MarkText version and the steps that triggered it.
test(e2e): address second-round Copilot review on PR #4268
test(e2e): regression guards for previously-reported "Unexpected erro…
test(desktop): update e2e selectors + recipes for @muyajs/core mu- DOM
test(desktop): update e2e selectors + recipes for @muyajs/core mu- DOM
feat(desktop): migrate editor.vue to @muyajs/core engine (#4406)
test(e2e): regression guards for previously-reported "Unexpected erro…