java - GLib-CRITICAL ** : g_base64_encode_step: assertion 'in != NULL' failed problems in ubuntu

标签 java eclipse ubuntu eclipse-plugin

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'失败

最佳答案

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

g_base64_encode_step: assertion 'in != NULL' failed



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

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

Negative content width -x (allocation y, extents axb) while allocating gadget (node toolbar, owner GtkToolbar)



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

要将 eclipse 与 GTK2 一起使用,请使用以下步骤之一。
  • 运行命令“env SWT_GTK3=0 SWT_WEBKIT2=1 $EclipsePath”
  • 运行命令“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 中单击

    Help -> About Eclipse IDE -> Installation details -> Configuration tab



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

    以下流程图解释了 SWT 流层次结构。了解SWT详细信息,请点击https://wiki.eclipse.org/SWT/Devel/Gtk/Dev_guide
    enter image description here

    关于java - GLib-CRITICAL ** : g_base64_encode_step: assertion 'in != NULL' failed problems in ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48467865/

    相关文章:

    c++ - 在 Eclipse 中使用遗留项目

    linux - 在 bash 中定义一个类似函数的宏

    java - iText PDF 中第一页和最后一页的页边距不同

    java - 子类化和泛型

    java - 不明白如何使用 GridLayout.spec()

    c++ - VideoWriter 不写任何东西

    ruby-on-rails - 使用 gem 安装 Rails 卡在 "parsing documentation"

    java - 如何获取已安装的音频播放器的列表?

    java - 如果使用第谷从子项目构建,则找不到目标平台

    android - SDL 初始化失败,原因是 : No available video device in ubuntu 12. 04 LTS