Problems selecting text

I'm having trouble selecting text in Silverbullet. To rule out local issues, I've switched to the 2.10.0 server from github, removed all libraries, and disabled my space lua block (which simply added the journal button). It still reproduces for me.

If I have a line that wraps, I get a rectangular selection:

If it is four lines or longer, I get no selection and a stack overflow on the console:


The stack is inside codemirror, but the issue may be interaction with the markdown support, I haven't dug too much.

Does this happen to anyone else? Any ideas what is going on? I'm using chrome on MacOS. Safari is similar, but they have tail call optimization, so it freezes forever instead of giving a stack overflow.

No issues here, with 2.9.0 on server and 2.10.0 on client (silverbullet+) or opening via firefox (so version 2.9.0).

Can't test 2.10.0 on server + client, so hopefully someone else can chime in

Could you report this as a bug on github? That would make it easier to track.

Thanks, that's helpful to know. It's not reproducing on firefox for me either.

I dug a little further and I did have a block of space-style that I had not disabled. It looks like this was the root cause. Here are the details:

I'm using a font that I bought - Comic Code - with SilverBullet. It's installed on my system and if I reference it with html { --editor-font: ...}, everything is fine. Except the font doesn't work on iOS - it's installed at the system level, but for privacy reasons, Apple doesn't let web pages see installed fonts. So I put the font up somewhere and used @font-face to define it. This seems to cause the problem. Works fine without the @font-face. I don't know if it's because the font is .otf or just that it's loading too late in the process and the editor is confused.

Anyway, it is usable now, so I'll mark this as resolved.