LibreOffice + Java 7 = BEX
Just upgraded from LibreOffice 3.4.1 for Windows to 3.5.0 and it kept crashing during the splash screen with a buffer overflow exception (BEX) in msvcr90.dll.
Turns out the culprit is Java Runtime 7. For whatever reason LibreOffice doesn’t detect the JRE 7 during setup/startup.
On a clean install it would complain about Java missing, but with old config files it seems to do things it shouldn’t be doing. I didn’t feel like digging deeper into this, because the fix is quite simple. Let the devs figure this one out 🙂
To fix the crashes
- Delete the whole folder: C:\Users\{USER}\AppData\Roaming\LibreOffice
- Run LibreOffice, it will complain a few times about Java missing (you might have to start it twice as it shuts down the first time around)
- Go to Settings > LibreOffice > Java and manually add the path to the installed JRE (usually C:\Program Files\Java\jre7).
Thanks! I just updated and had to face this error.
Make the goddess of happiness visit you daily.
You could just go to %appdata%\LibreOffice\3\user\config and delete the file javasettings_Windows_x86.xml.. 🙂
It didn’t ask for anything or give any warnings..
thank you. it restored my libreoffice.