Bug report: memory blowout when file frequently updates

Viewed 1

The link provided in the app gives a 404 error; I hope this is the right place to report this bug.

// Please enter a detailed description of the issue
// Description of the issue:
I opened a markdown file (initially ≈ 1 KB, never more than 1MB) that was being updated very frequently - every 5 seconds. (My internet connection was constantly dropping, so I wrote a script to collect a connection log to battle with my ISP.) This was the only file open in Marked 2. Marked 2’s memory footprint blossomed to multiple GB and eventually crashed.

I understand that this is a very extreme and abusive use of Marked 2, but I thought you’d like to know.

(I now just use tail on the file to monitor it.)

// Please enter a list of steps required to reproduce the issue
// Steps to reproduce:

  1. Create a simple markdown file and open it in Marked 2
  2. Update that file by appending a line frequently (in my case every 5 seconds)
  3. Watch Markded 2’s memory footprint

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit)
Marked 2 1071 (Direct)
macOS Version: 27.0

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 0
defaultProcessor: MultiMarkdown
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: NO
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

0 Answers