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 'o' as it is null. #3663
An unexpected error occurred in the renderer process.
Stack Trace
TypeError: Cannot destructure property 'text' of 'o' as it is null.
at Rs.filter [as updateParagraph] (file:///Applications/MarkText.app/Contents/Resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/contentState/paragraphCtrl.js:447:7)
at oc.event [as selectItem] (file:///Applications/MarkText.app/Contents/Resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/ui/quickInsert/index.js:119:23)
at HTMLDivElement.<anonymous> (file:///Applications/MarkText.app/Contents/Resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/ui/baseScrollFloat/index.js:33:21)
Version
MarkText: v0.17.1 (821244bf)
Operating system: Darwin arm64 22.6.0 (darwin)
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
maxscott commentedon Aug 8, 2023
(Duplicate, should close this in favor of #3664)
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): regression guards for previously-reported "Unexpected erro…
test(e2e): regression guards for previously-reported "Unexpected erro…