Searching spins
// Please enter a detailed description of the issue // Description of the issue:
Using Cmd-F to search the preview makes the app spin.
// Please enter a list of steps required to reproduce the issue // Steps to reproduce:
- Cmd-F
A spindump is attached.
// If applicable please attach a sample document that causes the issue for you.
This is the file I'm trying to search:
https://github.com/TheIconfactory/Tapestry/blob/main/Documentation/...
A spindump is attached. Looks like something in WebKit.
// Configuration (do not edit) Marked 2 1071 (Mac App Store)
macOS Version: 15.4
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: 3
defaultProcessor: Discount (GFM)
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: YES
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: YES
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: YES
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES
- Spindump.txt 9.59 MB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 26 Apr, 2025 12:10 AM
Hm, I'm able to load this document and search it willy-nilly. Does the spin happen as soon as you hit ⌘F?
2 Posted by Craig Hockenber... on 29 Apr, 2025 06:27 PM
Spinning started immediately after hitting Cmd-F. But then a day later, it stopped. (Maybe due to a macOS/Safari update?)
Not the first time WebKit got its knickers in a twist.
-ch
Support Staff 3 Posted by Brett on 20 May, 2025 04:11 PM
And unfortunately a lot of Marked's functionality relies on the deprecated version of WebKit, and the search is entirely JavaScript based. The combination seems to lead to some race conditions and leaks that I've had a hard time working around. 90% of the time it functions fine, but then 10% of the time performance suffers. I'm working on pretty massive rewrite right now, but getting away from WebView has been quite difficult. WKWebview just doesn't have a complete set of APIs yet.