TypeError: Cannot read properties of undefined (reading 'length')

I tried that:

I searched a bit more, and I also found others having the same behavior. It could also relate to key repeat speed, which I set to as low as possible on mac, so I can just press and stay for repeat.

But it is not related to vim I found, also happens when I use arrow keys. And what is the bad thing here, this worked for my last two years with no problem. So it must have come when I updated all my plugins lately (didn’t update for a long time) or with a newer Obsidian version, although I didn’t update at that particular time. Or my vault has hit a critical mass, but when I only open a singular note, I’d expect it doesn’t matter how big my vault is, it shouldn’t have lags. I also notice it’s mostly with longer markdown files that have links, tables, etc. But yeah, that is the whole purpose I use Obsidian.

I hope it will go away soon, I still haven’t found the culprit, but will certainly update when I have.

UPDATE: I found that the lag that initially made me investigate in searching the error is related to recalculate style. Most of the time is used doing that. I updated the installer version from 1.4.13 to the latest 1.6.7 (as I couldn’t export performance logs), but this didn’t solve the problem either. But the log and a screenshot of that Lag I added on Obsidian Cursor Cannot Keep Up with High Key Repeat Frequency - #16 by sspaeti. I hope that helps find the culprit.