Eclipse 退出时生成错误日志文件

Eclipse 退出时生成错误日志文件

我正在运行 Ubuntu 16.04 LTS。当我想编辑 Java 文件时,Eclipse Oxygen(9 月)似乎工作正常,但当我关闭 eclipse 时。在 /home/user/ 中生成了一个带有错误的日志文件

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f3fbd7a8c4c, pid=28399, tid=0x00007f4050387700
#
# JRE version: OpenJDK Runtime Environment (8.0_131-b11) (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
# Java VM: OpenJDK 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libjavascriptcoregtk-4.0.so.18+0xd45c4c]  WTFCrash+0x1c
#
# 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.java.com/bugreport/crash.jsp
#

接下来是来自 Ubuntu 的这个错误信息

在此处输入图片描述

答案1

以下是在 Ubuntu 16.04 上运行 Eclipse Oxygen.1a 的错误日志:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f6f8cc93c4c, pid=10184, tid=0x00007f7000304700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_151-b12) (build 1.8.0_151-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.151-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libjavascriptcoregtk-4.0.so.18+0xd45c4c]  WTFCrash+0x1c
#
# 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.java.com/bugreport/crash.jsp
#

看来该错误不仅与 Ubuntu 有关,还与 Eclipse 和 GTK Webkit 的问题有关。

该问题正在 Eclipse 的 bugtracker 和 Webkit 中跟踪。

https://bugs.eclipse.org/bugs/show_bug.cgi?id=522733

https://bugs.webkit.org/show_bug.cgi?id=177577

解决方法:与之前在 GTK3 中发现的问题一样,一个可能的解决方法是通过在 eclipse.ini 文件(“--launcher.appendVmargs”之前)中添加以下内容强制 Eclipse 切换回 GTK2。

--launcher.GTK_version
2

参考此回答

相关内容