Obsidian HANGS when using VIM reverse search with ^ regex - in note having line starting with 🌞 emoji

Steps to reproduce

Initial conditions:

  • VIM editing mode enabled
  • Preview mode enabled
  • Editing any note with some text in it AND SPECIFICALLY, a line beginning with the smiley-face-sun emoji, e.g.:

:sun_with_face: What’s going on.

User Actions:

  1. type β€œ?” to initiate VIM backwards search – the search input bar appears at bottom of window
  2. type β€œ^” (regex for beginning of line)

RESULT: all keyboard and mouse input to the window stop working - as if app is frozen or hung

Expected result

Normal mouse and key input should work as usual. Further typing should have continued appending to the VIM backwards search input box.

Actual result

All mouse & keyboard input frozen. Processor activity for Obsidian process jumped from ~20% to ~55% and remained steady there.

The above steps seem to only cause a problem if there’s a line BEGINNING with the sun emoji. And, so far, that smiley-sun emoji is the only emoji that caused the problem for me. I tried with a heart emoji and that was fine.

Environment

  • Operating system: Windows 10 (latest)
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v0.14.15
    Installer version: v0.12.12
    Operating system: Windows 10 Home 10.0.19043
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Safe mode: on

RECOMMENDATIONS:
none

just verifying, I went back to my original problem note where this occurred and added a single space in front of the line starting with :sun_with_face: and thereafter VIM reverse search works fine in that note.

original

:sun_with_face: Stuff boutta break

modified

_🌞 this will work fine

I used _ above for legibility but space or any character in front of the emoji seems to resolve the issue.

  1. Download and reinstall Obsidian
  2. Does it happen in the sandbox vault?
  3. Does it happen in source mode?
  4. Does it happen here https://codemirror.net/5/demo/vim.html ?
  5. Does it happen here https://codemirror-vim--util.repl.co/ ?

I can’t reproduce in 0.15.4

I can reproduce too.

Just reproduced in #1 (sandbox vault) and #4 https://codemirror-vim--util.repl.co/

ok, thanks

I opened upstream bug report: