[Kubuntu 14.04][Eclipse] ADT 在项目属性中的 OK 按钮时崩溃

nou*_*ame 6 themes gtk java crash 14.04

由于我升级到 kubuntu 14.04,我的 Eclipse 在不同情况下崩溃。大多数情况下,我可以在去项目属性时“模拟”它并按确定。然后它总是崩溃。

我的系统:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
Run Code Online (Sandbox Code Playgroud)

我的爪哇:

java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
Run Code Online (Sandbox Code Playgroud)

我的 ADT 版本:

Android Development Toolkit
Version: 23.0.0.1245622
Run Code Online (Sandbox Code Playgroud)

我已经尝试将它添加到adt-bundle-linux-x86_64/eclipse/configuration/configuration.ini

org.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.DefaultType=mozilla
Run Code Online (Sandbox Code Playgroud)

错误:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe049eb1718, pid=5964, tid=140601811232512
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgobject-2.0.so.0+0x19718]  g_object_get_qdata+0x18
#
# Core dump written. Default location: /home/maddin/core or core.5964
#
# An error report file with more information is saved as:
# /home/maddin/hs_err_pid5964.log
Compiled method (nm)   28866 4166     n 0       org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native)
 total in heap  [0x00007fe051da6790,0x00007fe051da6af0] = 864
 relocation     [0x00007fe051da68b0,0x00007fe051da68f8] = 72
 main code      [0x00007fe051da6900,0x00007fe051da6ae8] = 488
 oops           [0x00007fe051da6ae8,0x00007fe051da6af0] = 8
#
# 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.
#
Run Code Online (Sandbox Code Playgroud)

现在,只要我将SystemSettings -> Application Apperance -> GTK -> GTKn-Design更改为其他内容,但“oxygen-gtk”,这种崩溃就不会再发生了。

但是应用程序的外观也是丑陋的。除此之外,我收到了很多这样的错误/警告:

(SWT:6148): GLib-GObject-CRITICAL **: g_closure_add_invalidate_notifier: assertion 'closure->n_inotifiers < CLOSURE_MAX_N_INOTIFIERS' failed 
Run Code Online (Sandbox Code Playgroud)

或来自特定设计的其他 GTK 警告,没有主题引擎。

到目前为止,这实际上并没有引起任何崩溃。


所以我有3个选择:

  • 接受崩溃
  • 接受警告(也许是最好的选择)
  • 接受丑陋的设计

如何在不更改设计设置的情况下解决此问题?

Ale*_*kov 8

您遇到了以下尚未修复的错误:https : //bugzilla.gnome.org/show_bug.cgi?id=736323

解决方法:

  1. 找到您的 GTK2 主题配置文件。对于氧气,它是/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc
  2. 编辑主题的配置文件(如根):改GtkComboBox::appears-as-list10