[Bug] Unexpected error with message Cannot read properties of null (reading 'querySelector') · Issue #5116 · marktext/marktext · GitHub
Skip to content

[Bug] Unexpected error with message Cannot read properties of null (reading 'querySelector') #5116

Closed

Description

@hky035

Description

An Unexpected renderer process error occurs when pasting an image into the editor using CMD + v.

After the error occurs once, it continues to occur repeatedly whenever I move the mouse over the editor. The issue persists for that markdown file (or blank note) until the file is deleted or a new note is created.

Minimal Reprouducible Markdown Example (or Steps)

  1. Open Mark Text.
  2. Create a new markdown document.
  3. Copy an image to the clipboard (for example, from the macOS screenshot tool or another application)
  4. Paste the image into the editor using CMD + v

Stack Trace

TypeError: Cannot read properties of null (reading 'querySelector')
    at HTMLBodyElement.mouseMove (file:///Applications/MarkText.app/Contents/Resources/app.asar/out/renderer/assets/index-Bjcbqr7S.js:148891:35)

Version

MarkText: v0.19.1
Operating system: Darwin arm64 24.3.0 (darwin)

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