Update: it seems like a lot of people find this useful. With the final release of Ubuntu 10.04 Lucid Lynx, xulrunner-1.9.2 is in the main repository. Because of this, just uninstall xulrunner-1.9.1 and you’re done.
I like living on the edge: I use Ubuntu Lucid and Eclipse 3.6M5 on my x86-64 notebook. Since the 25th of February, Eclipse started crashing when closing the content assist popup window. I narrowed it down to the upgrade to libcairo2-1.8.10-2ubuntu1. This causes a RenderBadPicture X Error when the documentation popup that appears on the right of the possible completions is closed. Downgrading to libcairo2-1.8.8 solved the problem, but it seems that the real problem lies within xulrunner 1.9.1 which SWT uses to render the docs. The Mozilla bug is https://bugzilla.mozilla.org/show_bug.cgi?id=522635. A quick workaround is to set the GRE_HOME environment variable to some meaningless path (e.g. /tmp) before launching Eclipse. Another possible solution is to install xulrunner-1.9.2 (only available from the mozilla-daily-ppa). I have filed a bug report un Launchpad asking for an official upgrade to xulrunner 1.9.2.
I had the same problem and fixed it by setting the GRE_HOME environment variable to /tmp as you suggested. Thank you very much.
Thanks for the hint, until the xulrunner lands GRE_HOME is a lifesaver
Thanks, that helped for now !
Thanks also from me!
Thanks for sharing the workaround! You just saved my day! Cheers
Just found out that you can also workaround the problem by:
sudo apt-get remove xulrunner-1.9
sudo apt-get remove xulrunner-1.9.1
lucid comes with 1.9.2, but doesnt remove older versions….
export GRE_HOME=/tmp solve problem for me.
Thanks for the tricks !
setting GRE_HOME didn’t solve the problem for me but removing xulrunner-1.9.1 did. Thanks Chris & Tristan.
Thanks! saved me a lot of trouble!
Way to go! I updated something between yesterday evening and today… guess it included xulrunner 1.9.2.8 but the thing never uninstalled 1.9.1 and my poor Eclipse Helios was dying… it raised “JVM close error=1” with events like autocomplete or copy-paste… tried going back from Helios to Galileo with no joy. Until I found this article and a couple of bug reports related.
Uninstalling xulrunner 1.9.1 did the trick, thanks a lot for your post!!
Info: Ubuntu 10.04 x64 / Eclipse Helios, xulrunner 1.9.1 and 1.9.2 installed (!!).
setting GRE_HOME=/tmp did the trick.
Thanks Tristan, you saved my life.
I am adding your blog to my reading list.
once again THANKS.
removing xul1.9.1 did the trick . many thanks.
Thanks a lot! Uninstalling xulrunner-1.9.1 worked like a charm. This was starting to get really really frustrating.