GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'在ubuntu中出现问题

问题描述 投票:7回答:3

org.eclipse.m2e.logback.configuration:在初始化状态位置之前激活了org.eclipse.m2e.logback.configuration包。将在状态位置初始化后重试。

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

(Eclipse:5550):GLib-CRITICAL **:g_base64_encode_step:断言'in!= NULL'失败

java eclipse ubuntu eclipse-plugin
3个回答
2
投票

出现此问题因为ubuntu将GTK版本从GTK2更新为GTK3。

g_base64_encode_step:断言'in!= NULL'失败

通过使用“gnome-tweak-tool”或其他实用工具将ubuntu主题更改为默认值,可以修复上述错误。

但在做同样的事情之前,请先阅读并继续。虽然主题相关的bug不会出现默认主题,但ubuntu GTK3和eclipse SWT存在许多差异和问题。例如,您将收到类似的错误

分配小工具时的负内容宽度-x(分配y,范围axb)(节点工具栏,所有者GtkToolbar)

所以最好使用eclipse论坛中提到的GTK2来解决与现在相同的问题。 https://www.eclipse.org/forums/index.php/t/1081230/

要在GTK2上使用eclipse,请使用以下步骤之一。

  1. 运行命令“env SWT_GTK3 = 0 SWT_WEBKIT2 = 1 $ EclipsePath”
  2. 运行命令“export SWT_GTK3 = 0”,然后运行$ EclipsePath。

如果您担心安全性,请确保通过提供命令“echo $ SWT_WEBKIT2”将$ SWT_WEBKIT2设置为1

每个SWT版本都需要相应的GTK依赖关系。 SWT需要安装以下GTK +版本(或更新版本):

Eclipse/SWT 4.11.x         : GTK+ 3.10.0 and its dependencies
Eclipse/SWT 4.10.x         : GTK+ 3.8.0 and its dependencies
Eclipse/SWT 4.6.x - 4.9.x  : GTK+ 2.24.0 and its dependencies (for GTK+ 2) OR GTK+ 3.0.0 and its dependencies (for GTK+ 3)
Eclipse/SWT 4.5.x and newer: GTK+ 2.18.0 and its dependencies (for GTK+ 2) OR GTK+ 3.0.0 and its dependencies (for GTK+ 3)
Eclipse/SWT 4.4.x          : GTK+ 2.10.0 and its dependencies (for GTK+ 2) OR GTK+ 3.0.0 and its dependencies (for GTK+ 3)
Eclipse/SWT 4.3.x          : GTK+ 2.10.0 and its dependencies
Eclipse/SWT 3.8.x          : GTK+ 2.6.0 and its dependencies
Eclipse/SWT 3.6.x - 3.7.x  : GTK+ 2.4.1 and its dependencies
Eclipse/SWT 3.0.x - 3.5.x  : GTK+ 2.2.1 and its dependencies
Eclipse/SWT 2.1.x          : GTK+ 2.0.6 and its dependencies

这些信息可以从https://www.eclipse.org/swt/faq.php#gtkstartup获得

要检查您的SWT版本,请在eclipse中单击

帮助 - >安装详细信息 - >配置选项卡

搜索org.eclipse.swt.internal.gtk.version并根据您的SWT版本选择GTK2或GTK3。

以下流程图说明了SWT流层次结构。要了解有关SWT的详细信息,请单击https://wiki.eclipse.org/SWT/Devel/Gtk/Dev_guide enter image description here


0
投票

我有同样的问题,但使用Spring工具套件(基于eclipse)。尝试运行eclipse:

env SWT_GTK3=0 [STS/Eclipse executable]

0
投票

当我安装GTK并在安装eclipse之前设计YARU DARK的应用程序时,这发生在我身上。

  • 解决方案是将应用程序的外观更改为默认值:Yaru
© www.soinside.com 2019 - 2024. All rights reserved.