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 with message Cannot read properties of undefined (reading 'chunkSize') #4921
On pasting an old bash script from an old blog :
#!/usr/bin/env bash
type_slowly() {
local text="$1"
local pause_after="$2"
local pause_clear="$3"
local i
printf '\n'
for ((i = 0; i < ${#text}; i++)); do
printf '%s' "${text:i:1}"
sleep 0.1
done
sleep "$pause_after"
clear
sleep "$pause_clear"
}
matrix() {
clear
type_slowly "Wake up, Neo..." 2 1
type_slowly "The Matrix has you" 3 1
type_slowly "Follow the white rabbit." 2 2
type_slowly "Knock, knock, Neo." 4 3
}
matrix
Stack Trace
TypeError: Cannot read properties of undefined (reading 'chunkSize')
at lineNo (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:161346:39)
at buildLineContent (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:162204:80)
at getLineContent (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:162631:16)
at buildLineElement (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:162728:21)
at patchDisplay (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:164806:24)
at updateDisplayIfNeeded (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:164729:9)
at endOperation_W1 (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:164419:48)
at endOperations (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:164397:11)
at file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:164387:13
at finishOperation (file:///Applications/marktext.app/Contents/Resources/app.asar/out/renderer/assets/index-BXt6R5Ri.js:162545:11)
Version
MarkText: v0.20.0-rc.1
Operating system: Darwin arm64 27.0.0 (darwin)
Activity
fix: cherry-pick upstream crash and large-document fixes
fix: cherry-pick upstream crash and large-document fixes