我测试了更改/usr/share/applications/XMind.desktop启动参数的方法,并没有起到效果,照样溢出。
经过排查,在console中调用发现这么一条语句
(XMind:7091): Gtk-WARNING **: Allocating size to GtkBox 0x7f3faa55d420 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
所以顺藤摸瓜,修改GTK运行版本,成功解决问题。
具体方法:
使用命令
# emacs /usr/share/xmind/XMind/XMind.ini
修改其中
--launcher.GTK_version
2
将原有的3更改为2,也就是改变原来调用的GTK3。保存一下文件,最后重新打开xmind,可以看一下进程名为java的内存占用。
唯一的缺点是,GTK3变为2,窗口没有原来那么漂亮了。