Eclipse segmentation error

I updated my Ubuntu 14.04 and since then my eclipse has crashed. On startup, it gives a segmentation error as soon as I press the menu buttons or try to use any short keys. I tried most of the workarounds I could find on the Internet. This is my contents of the eclipse.ini file

-startup plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar --launcher.GTK_version 2 --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.dist -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Xms40m -Xmx1024m -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins -Dorg.eclipse.swt.browser.DefaultType=mozilla 

I turn on the core dump and checked it with gdb, it seems to be damaged.

I can not find anything in /var/logs/system.log

If I remember him correctly, the update had to do something with some C ++ libraries. Request for help

+5
source share
8 answers

Steps using grub : First, you must have it when you start your computer. If not, do it in the terminal:

 sudo gedit /etc/default/grub 

Now change the line

 GRUB_HIDDEN_TIMEOUT=0 

to

 #GRUB_HIDDEN_TIMEOUT=0 

Then update grub:

 sudo update-grub 

Check your kernel version:

 uname -r 

You now have grub at startup. Reboot the computer. A new black screen with grub options will appear. Select "advanced options." Then select the previous version of linux to download.

After loading, test your kernel version:

  uname -r 

Now try running eclipse. Good luck

To uninstall the last update, for a normal download you must run

 sudo apt-get purge linux-image-xxx linux-headers-xxx 
+3
source

we faced the same problem inside our company. The fix we implemented was to directly call java using the -vm option.

It is not known why it solves it, but I accidentally discovered this when researching a problem.

Open the eclipse.ini file and add the following directly after openFile:

 -vm /usr/bin/java 

This should solve the problem.

+5
source

This seems to be caused by installing eclipse.ini, as shown below:

 -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so 
+2
source

Yesterday I had the same problem with eclipse before updating ubuntu. I could not open the workspace (a popup window started, but there was no more) and always returned a segmentation error before clicking the button.

I saw in /var/log/apt/history.log that this update installed linux-image-3.13.0-121-generic. I will transfer the installation from grub to the previous linux image and now I can correctly eclipse eclipse.

+1
source

I am using eclipse STS and there is no eclipse.ini file ... There is a STS.ini file, but adding vm arg does not work here.

What worked for me was to pass it on the command line:

 ./STS -vm /usr/lib/jvm/java-8-openjdk-i386/jre/bin/java 
+1
source

I had the same problem. It looks like this was caused by an update. To solve the problem, I did the following:

Looking at the eclipse.ini file, I saw that it did not contain

-vm / USR / Library / JVM / Java -8-OpenJDK-i386 / JRE / bin / Java

By simply adding it, Eclipse no longer reports a segment violation. Note that in the end I had to include "java"; just using / usr / lib / jvm / java-8-openjdk-i386 / jre / bin / (as suggested elsewhere), it didn't work

I hope this helps

0
source

From what I read, adding the -vm flag does the trick, another parameter sets it in the eclipse.ini file, see above ... I think both solutions are equivalent.

/ usr / bin / java is a link, so it allows the eclipse.ini option described above

 ls -l /usr/bin/java lrwxrwxrwx 1 root root 22 Jul 22 2014 /usr/bin/java -> /etc/alternatives/java ls -l /etc/alternatives/java lrwxrwxrwx 1 root root 45 Jun 5 2016 /etc/alternatives/java -> usr/lib/jvm/java-8-openjdk-i386/jre/bin/java 
0
source

i updated the kernel to 4.11.8-041108-generic using UKUU, and the eclipse segmentation error no longer occurs.

0
source

Source: https://habr.com/ru/post/1269017/


All Articles