I use LibreOffice regularly on my Ubuntu 23.04, having installed it from the default repos. Yesterday, I turned on my computer and saw fsck complain something about orphaned segments it fixed automatically. After logging in, I opened LibreOffice and clicked on a name of a document I had been working on previously: the program crashed with no message appearing on the screen. I restarted soffice from command line and tried to open a blank document but the program crashed again and gave me the following:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
terminate called recursively
Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x41502)[0x7f48b6237502]
...
Ever since, I have not been able to open any documents or even create a new document in Writer, since every single time the program crashes immediately. I have tried reinstalling the apt packages, deleting the user profile folder in ~/.config/libreoffice/, deleting all the /tmp/lu* folders, launching LO in Safe Mode and resetting initial settings but none of this has helped. What's even stranger is that all other users on the same computer can launch their LO Writer as usual. I even created a new username and opened a new document in LO, and it worked perfectly.
So it seems there's something wrong with my user account but I can't figure out what it could be, since even recreating user profile doesn't help. Any ideas on what I could try? In older threads, I have seen people suggesting turning off hardware acceleration of the graphics card and Java but in my case, they don't seem to have any effect. Calc works as usual, so the issue seems to be only with Writer.
Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: fi-FI
Ubuntu package version: 4:7.5.5-0ubuntu0.23.04.1
Calc: threaded`