Eclipse 64 bit aborta ao iniciar no Linux


Olá pessoal!

Esta daqui vai para a galera que tá programando no Linux e que de repente resolveu instalar o Eclipse 64 bit e teve alguma surpresa do tipo “o programa aborta a inicialização”. Show de bola!

fonte: https://mastigado.wordpress.com

Para você ver melhor que tipo de erro é esse sugiro tentar executar o Eclipse via linha de comando, pois assim será mostrado que erro é este que está retornando.

Bem o meu erro foi este:

org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.

(java:4196): GLib-GObject-WARNING **: cannot register existing type `GdkDisplayManager’

(java:4196): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0′ failed

(java:4196): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)’ failed

(java:4196): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(java:4196): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)’ failed

(java:4196): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(java:4196): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)’ failed

(java:4196): GLib-GObject-WARNING **: cannot register existing type `GdkDisplay’

(java:4196): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0′ failed

(java:4196): GLib-GObject-CRITICAL **: g_type_register_static: assertion `parent_type > 0′ failed

(java:4196): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0′ failed

(java:4196): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)’ failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe19c97173f, pid=4196, tid=140607381382912
#
# JRE version: Java(TM) SE Runtime Environment (7.0_72-b14) (build 1.7.0_72-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.72-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgdk-x11-2.0.so.0+0x5173f] gdk_display_open+0x3f
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again
#
# An error report file with more information is saved as:
# /usr/local/eclipse/hs_err_pid4196.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
jonas@note:/usr/local/eclipse$ more /usr/local/eclipse/hs_err_pid4196.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe19c97173f, pid=4196, tid=140607381382912
#
# JRE version: Java(TM) SE Runtime Environment (7.0_72-b14) (build 1.7.0_72-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.72-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgdk-x11-2.0.so.0+0x5173f] gdk_display_open+0x3f
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Dei uma fuçada no Google e descobri que é algo que envolve o GTK. Bem, primeiro teste o comando abaixo no terminal e depois execute o Eclipse:

export SWT_GTK3=0

Se o seu Eclipse rodar normalmente, abra o arquivo eclipse.ini e acrescente a linha abaixo:

–launcher.GTK_version 2

Mais precisamente no local em negrito:

–launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.cpp.product
–launcher.defaultAction
openFile
-showsplash
–launcher.GTK_version 2
org.eclipse.platform
–launcher.XXMaxPermSize
256m
–launcher.defaultAction
openFile
–launcher.appendVmargs
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

E pronto! Aparentemente resolvido.

fonte: http://forums.debian.net/viewtopic.php?f=8&t=115477

fonte: http://stackoverflow.com/questions/19332489/how-to-fix-failed-to-write-chttp://forums.debian.net/viewtopic.php?f=8&t=115477ore-dump-core-dumps-have-been-disabled-error-whil

fonte: https://mastigado.wordpress.com

Anúncios

Sobre Mastigado
Sou um daqueles que precisa mudar o mundo.

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s

%d blogueiros gostam disto: