Saturday, August 25, 2012

Eclipse juno constantly crashes on Linux

Since I started using Eclipse Juno, one extremely bad thing that was happening is that JVM was crashing several times a day. After each JVM crash there is no information about the error in eclipse log files, but JVM creates ~/hs_err_pid{PID}.log data file in the home directory. A hs_err log file is being created by the JVM when a fatal error occurs. It contains useful information to identify the cause of the problem. After analyzing these log files I concluded that all crashes related to overlay-scrollbar library. To disable overlay-scrollbar library for eclipse you can set LIBOVERLAY_SCROLLBAR flag to false before launching the eclipse:
#!/bin/sh
LIBOVERLAY_SCROLLBAR=0 eclipse
It solved my problem. No more random eclipse crashes!

References:
[1] Eclipse

1 comment:

  1. Thank you for this post, but unfortunately it did not work for me. This one did though:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776#c6

    ReplyDelete