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 'pathname' of 'A.tabs[n]' as it is undefined. #3100
An unexpected error occurred in the renderer process.
Stack Trace
TypeError: Cannot destructure property 'pathname' of 'A.tabs[n]' as it is undefined.
at forEach (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/renderer/store/editor.js:256:15)
at Array.forEach (<anonymous>)
at Store.CLOSE_TABS (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/renderer/store/editor.js:254:15)
at wrappedMutationHandler (/usr/lib/marktext/app.asar/node_modules/vuex/dist/vuex.common.js:846:13)
at commitIterator (/usr/lib/marktext/app.asar/node_modules/vuex/dist/vuex.common.js:468:7)
at Array.forEach (<anonymous>)
at /usr/lib/marktext/app.asar/node_modules/vuex/dist/vuex.common.js:467:11
at Store._withCommit (/usr/lib/marktext/app.asar/node_modules/vuex/dist/vuex.common.js:626:3)
at Store.commit (/usr/lib/marktext/app.asar/node_modules/vuex/dist/vuex.common.js:466:8)
at boundCommit (/usr/lib/marktext/app.asar/node_modules/vuex/dist/vuex.common.js:411:19)
Version
Mark Text: v0.16.3 (N/A)
Operating system: Linux x64 5.15.25-1-MANJARO (linux)
Activity
Anarion-zuo commentedon Mar 4, 2022
This is an generated by MarkText automatically right after I clicked don't save of opened files.
Jocs commentedon May 23, 2026
Closing — this was fixed during the Vuex → Pinia migration.
CLOSE_TABSnow uses a nullish-coalescing fallback atsrc/renderer/src/store/editor.ts:1044:so a concurrent mutation that removes a tab between
findIndexand the array access no longer crashes.If you still see this on a recent build, please reopen with the exact version and the multi-tab steps that triggered it.