No, that would just hide the error without addressing its cause. This appears to be some bigger problem in the document rendering. It would be very valuable if you can find a way to reliably reproduce this, since it’s hard to say much from just the stack trace.
Okay, after much trial and error I was able to narrow down the problem to a specific set of decorations in combination with the EditorState.lineSeparator facet. The simpler repro also shows a No tile at position error that seems closely related. https://codesandbox.io/p/devbox/beautiful-sound-forked-cs3s97?workspaceId=ws_DetuLAcjQzqJD8grNFUmK7
Please see the comments in the code for more info.
Thanks, that helped isolate and fix this. If you or anyone else runs into any further issues, please open a GitHub issue, so that this thread doesn’t become too much of a mess.
1 Like