Skip to content

Unexpected error with message Cannot read properties of undefined (reading 'chunkSize') #4921

Closed

Description

@arthurlacoste

Description

Unexpected renderer process error.

Minimal Reprouducible Markdown Example (or Steps)

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

  1. marked 意外错误消息 #4924 as a duplicate of this issue on Sep 10, 2026
  2. marked 意外错误消息 #4929 as a duplicate of this issue on Sep 10, 2026
  3. marked 意外错误消息 #4945 as a duplicate of this issue on Sep 10, 2026
  4. marked 意外错误消息 #5146 as a duplicate of this issue on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions