@DodoTheDev Ok, just needed to check if it was a Wayland issue. The crash is in Qt, not novelWriter, as mentioned. Do you have "highlight current line" enabled? If you turn it off, does that help? You'd need to edit the config file inside the flatpak's user config folder. It should be:
~/.var/app/io.novelwriter.novelwriter/config/noverlwriter.toml
The setting is lineHighlight