How can I stop LibreOffice from randomly crashing?

Solution 1:

According to this thread http://ubuntuforums.org/showthread.php?t=1813246 and http://forums.linuxmint.com/viewtopic.php?f=47&t=77851&p=456737 this problem is linked with the graphics card in use is Intel HD Graphics and on an Intel Sandy Bridge CPU like the (Intel(R) Core(TM) i5-2540M).

The suggested fix is to disable anti-aliasing on LibreOffice. To do so go to the Tools menu, select options. Then on the next screen select "view" from the "LibreOffice" menu and then deselect "Use Anti-Aliasing"

I confirm it worked for me. So far Libre office has not misbehaved after I disabled the Graphics Output options from the LibreOffice View preferences. Thank's to the mint and Ubuntu forums. That saved my day. I've been searching for so long...

Solution 2:

Since it is a Java error try to switch the JRE. Use OpenJDK. If you dont have OpenJDK install it.

In Libre Office go to ToolsOptions ... → LibreOfficeJava ( wait a little bit until the list of JREs appears) and then switch to version 1.6.0_20. When you highlight it, the location should be something like /usr/lib/jvm/java-6-openjdk/jre.

Hit the OK-Button and close all open documents or windows of LibreOffice. Then start Libre Office again.

Solution 3:

I had the same problem, but it was solved after an Ubuntu reinstall. However, most people would use this as a last option. Some things that you could to to replicate the results would be to:

  • Delete the .libreoffice folder as scouser73 said
  • Remove and reinstall Java or OpenJDK
  • Reinstall LibreOffice (try using the latest version from the website)

Hopefully one of those will help. If you do decide to reinstall, remember to backup all files you may need.

Solution 4:

I would suggest that you delete the LibreOffice profile, I think this may remove the problem you are having with random crashing.

1 - Go to your home folder

2 - Press CTRL & H to show the hidden folders

3 - Locate the folder .libreoffice

4 - Right click on it and delete it

This won't delete any documents you have made, basically what you're doing is starting from a clean slate.

Solution 5:

Every time libreoffice crashes, it leaves a log file either at your home folder and at the working directory. Read that log to find out the actual source of problem. Even I do suffer the same problem. Most of the times, the log says the JRE has something to do with it's crash. As a non-developer, I do not understand :-( I find removing the option to use unstable-experimental features (its in tools>options) helped a little.