Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 日食全天关闭_Java_Eclipse - Fatal编程技术网

Java 日食全天关闭

Java 日食全天关闭,java,eclipse,Java,Eclipse,我使用的是Ubuntu 13.04版 日食朱诺 及 java-7-openjdk-amd64 在那之后,我做了一个“调试”,他关闭了它,我打开了它,当它再次打开时,它加载并关闭,每次我尝试“调试”它都这样做。会不会出现硬件问题 # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fc6e05396d5, pid=5236, tid=14049470

我使用的是Ubuntu 13.04版

日食朱诺

java-7-openjdk-amd64

在那之后,我做了一个“调试”,他关闭了它,我打开了它,当它再次打开时,它加载并关闭,每次我尝试“调试”它都这样做。会不会出现硬件问题

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc6e05396d5, pid=5236, tid=140494709798656
#
# JRE version: 7.0_25-b15
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libwebkitgtk-1.0.so.0+0x4246d5]  webkitWebViewRegisterForIconNotification+0xb5
#
# 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.
#

---------------  T H R E A D  ---------------

Current thread (0x00007fc770009800):  JavaThread "main" [_thread_in_native, id=5237, stack(0x00007fc779353000,0x00007fc779454000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000001c1c

Registers:
RAX=0x0000000000000000, RBX=0x00007fc77037ba10, RCX=0x00007fc764afeb00, RDX=0x00007fc77037ba10
RSP=0x00007fc779451218, RBP=0x00007fc770e1f0c0, RSI=0x00007fc6e0512180, RDI=0x0000000000001bac
R8 =0x00007fc7702ce530, R9 =0x0000000000000020, R10=0x0000000000000000, R11=0x0000000000000028
R12=0x00007fc764dafa00, R13=0x00007fc7702f0120, R14=0x00007fc77026f7b0, R15=0x00007fc770e1f0c0
RIP=0x00007fc6e05396d5, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007fc779451218)
0x00007fc779451218:   00007fc6e0512108 0000000000000001
0x00007fc779451228:   0000000000000004 00007fc770e1f0c0
0x00007fc779451238:   00007fc6e0512189 0000000000000004
0x00007fc779451248:   00007fc764afeb1b 00007fc764dafa00
0x00007fc779451258:   0000000000000004 00007fc7703aba80

...
和eclipse ini的配置:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=512m
-Xms40m
-Xmx1024m

由于错误发生在
libwebkitgtk
中,因此它应该与Eclipse中的浏览器视图(如Javadoc视图)相关。您可以尝试使用包管理器更新有问题的库。您也可以尝试关闭视图


该bug可能位于本机库中,也可能位于使用该库的JVM桥接代码中。

这是一个与Eclipse和Webkit相关的bug。()

一种解决方法是告诉Eclipse不要使用Webkit,而是使用Mozilla的Gecko

在eclipse.ini的末尾添加以下两行:

-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner
默认情况下,此解决方案大大减少了JavaDoc悬停视图的功能。 丢失的功能可以通过安装一个名为“XULRunner”的库来恢复。 据介绍,Eclipse4.x可以使用的最新版本XULRunner是10.x。我们可以从你那里得到它

以下命令将下载并解压缩64位XULRunner版本:

wget https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0/runtimes/xulrunner-10.0.en-US.linux-x86_64.tar.bz2
tar xjvf xulrunner-10.0.en-US.linux-x86_64.tar.bz2
sudo cp -R ./xulrunner/ /usr/lib/
wget https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0/runtimes/xulrunner-10.0.en-US.linux-i686.tar.bz2
tar xjvf xulrunner-10.0.en-US.linux-i686.tar.bz2
sudo cp -R ./xulrunner/ /usr/lib/
如果您使用的是32位版本的Linux,请下载并解压缩32位版本的XULRunner:

wget https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0/runtimes/xulrunner-10.0.en-US.linux-x86_64.tar.bz2
tar xjvf xulrunner-10.0.en-US.linux-x86_64.tar.bz2
sudo cp -R ./xulrunner/ /usr/lib/
wget https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0/runtimes/xulrunner-10.0.en-US.linux-i686.tar.bz2
tar xjvf xulrunner-10.0.en-US.linux-i686.tar.bz2
sudo cp -R ./xulrunner/ /usr/lib/

Aleksandr Zhuikov在他的博客中还有一个解决方法:

他提供了一个修改版的libwebkitgtk包来解决这个问题。 不幸的是,他的软件包现在已无法通过正常方式在更新的系统上安装,因为它破坏了其他库,如“libjavascriptcoregtk”

但是,可以手动解包并直接替换现有的webkit库:

dpkg -x libwebkitgtk-1.0-0_1.10.0-0ubuntu1.1_amd64.deb ./ sudo cp ./usr/lib/libwebkitgtk-1.0.so.0.17.3 /usr/lib/libwebkitgtk-1.0.so.0.17.3 sudo ln -f -s /usr/lib/libwebkitgtk-1.0.so.0.17.3 /usr/lib/libwebkitgtk-1.0.so.0 dpkg-x libwebkitgtk-1.0-0_1.10.0-0ubuntu1.1_amd64.deb/ sudo cp./usr/lib/libwebkitgtk-1.0.so.0.17.3/usr/lib/libwebkitgtk-1.0.so.0.17.3 sudo ln-f-s/usr/lib/libwebkitgtk-1.0.so.0.17.3/usr/lib/libwebkitgtk-1.0.so.0 显然,这可能会在将来破坏其他基于Webkit的应用程序,所以我们希望Eclipse在更多问题出现之前解决这个问题。

自从Eclipse Kepler(4.3)以来,您可以通过定义
SWT\u GTK3
环境变量来告诉SWT加载
libwebkitgtk-3.0

export SWT_GTK3=1
这将消除“libwebkitgtk-1.0”版本中遇到的大多数崩溃原因


在4.3中,SWT_GTK3可以取任何值(仅测试是否存在)。在4.4中,唯一有意义的值可能是“1”。(更多详细信息,请参阅)。

即使在Eclipse 4.7和4.8(光子)中的libjavascriptcoregtk-4.0(不是3.0或1.0),例如在Fedora 26上,类似的问题仍然可能(或再次)发生,并且(新的)问题似乎正在解决中。

可能通过在
窗口>首选项中更改浏览器来避免问题,常规>Web浏览器
帮助。对于Eclipse4.4,默认情况下我已经有了3.0有问题的框架:#C[libwebkitgtk-3.0.so.0+0x42682e]webkitwebviewsregisterforincontentification+0xbe