Yesterday and today, I encountered a weird crash in LibreOffice Writer (version 5.0.4.2). I’ll be typing along and without warning, a window pops up saying something about “Fatal Error: Bad Allocation.” A split second later, LibreOffice shuts down, closing my files. When I double-click a file to reopen it, the recovery dialogue begins, but it always says that particular document can’t be recovered. It will open it, but any changes I’d made since last saving are gone, regardless of whether it auto-saved or not. Needless to say, this is getting extremely frustrating!
After this first happened yesterday, I tried upgrading to the newest version of LibreOffice, but every time I tried, the installation failed. It said a certain file or files were corrupt and the install had to be aborted. I tried twice, but to no avail. When I canceled the installation, I found that it had deleted my old version of LibreOffice, so I had to reinstall it. Fortunately, it installed without issue.
I didn’t have any more crashes after that, so I thought the problem was fixed. But then today, it happened again. Working on a file . . . clicked Save . . . and boom! Halfway through the save, it pops up with the Bad Allocation error and the whole thing shuts down. I lost everything I’d typed in the last five minutes, which was aggravating.
Any idea what’s causing this fatal error? And more importantly, how to prevent it?