每次从工作区导入项目时,或者当我执行jUnit测试时,Eclipse都会崩溃。 .log没有提供崩溃的信息,它只是默默地退出而没有消息。
目前正在使用Eclipse 3.8,但这种情况发生在我试过的所有其他版本的Eclipse(包括Luna)上运行Ubuntu 14.04(32位)的联想ThinkPad上。运行java 1.7。并将adb更新为最新版本。
我还在eclipse.ini中添加了-Dorg.eclipse.swt.browser.DefaultType=mozilla
- 有什么帮助吗?
!SESSION 2014-11-04 16:17:53.738 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 16:17:58.126
!MESSAGE No search provider was registed. Tasks search is not available.
!SESSION 2014-11-04 16:19:44.042 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 16:19:47.069
!MESSAGE No search provider was registed. Tasks search is not available.
!SESSION 2014-11-04 16:22:33.202 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 16:22:35.782
!MESSAGE No search provider was registed. Tasks search is not available.
!SESSION 2014-11-04 16:28:54.839 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 16:28:57.871
!MESSAGE No search provider was registed. Tasks search is not available.
!SESSION 2014-11-04 16:35:29.208 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.core.resources 2 10035 2014-11-04 16:35:30.567
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 16:35:32.051
!MESSAGE No search provider was registed. Tasks search is not available.
!SESSION 2014-11-04 16:52:37.089 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 16:52:39.672
!MESSAGE No search provider was registed. Tasks search is not available.
!SESSION 2014-11-04 17:02:53.792 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 17:02:56.183
!MESSAGE No search provider was registed. Tasks search is not available.
!SESSION 2014-11-04 17:03:53.709 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2014-11-04 17:03:56.173
!MESSAGE No search provider was registed. Tasks search is not available.
答案 0 :(得分:0)
从命令行运行后获取日志。有一个对g_object_get_qdata的引用,这似乎是一个GTK2主题冲突。需要使用不同的GTK2主题(如Raleigh)运行Eclipse:
GTK2_RC_FILES=/usr/share/themes/Raleigh/gtk-2.0/gtkrc /usr/bin/eclipse
可以正常使用此解决方法。
见缺陷:https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/1205452