Problem running spm12 using R2019a on Centos 7

7 次查看(过去 30 天)
When I issue the spm command, it displays the startup window. After clicking on a button, I get:
(MATLAB:374189): GLib-GObject-WARNING **: 09:26:25.382: cannot register existing type 'GtkObject'
(MATLAB:374189): GLib-GObject-CRITICAL **: 09:26:25.382: g_type_register_static: assertion 'parent_type > 0' failed
(MATLAB:374189): GLib-GObject-CRITICAL **: 09:26:25.382: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(MATLAB:374189): GLib-GObject-WARNING **: 09:26:25.382: cannot register existing type 'GtkBuildable'
(MATLAB:374189): GLib-GObject-CRITICAL **: 09:26:25.382: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
(MATLAB:374189): GLib-CRITICAL **: 09:26:25.382: g_once_init_leave: assertion 'result != 0' failed
(MATLAB:374189): GLib-GObject-CRITICAL **: 09:26:25.382: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(MATLAB:374189): GLib-GObject-CRITICAL **: 09:26:25.383: g_type_register_static: assertion 'parent_type > 0' failed
and then it freezes.
OS: Linux 3.10.0-957.el7.x86_64
Compiler: gcc 6.3.0
Glib: 2.42.2
Java: 1.8.0_211
Any ideas on what needs to be fixed?

采纳的回答

Kestas Subacius
Kestas Subacius 2019-4-30
The error messages you provided indicates that this issue may be related to an internal type conversion between MATLAB data-types and the SPM12 data-types.
Since you can start the SPM12 application through MATLAB, and the freezing only occurs after the button press, this issue seems to originate in the SPM12 codebase.
My best suggestion would be to reach out to someone from SPM team for assistance in debugging and resolving this issue.

更多回答(1 个)

Anna Mai
Anna Mai 2020-3-18
Hi All,
I had the same problem with Ubuntu 18.04 (gcc: 7.5.0, glibc: 2.27-3ubuntu1, java: 1.8.0_242).
I reached out to one of the developers about this and was told that the error is due to an issue with Java when displaying the welcome message in the graphics window. You can see the cause in the source code here: https://github.com/spm/spm12/blob/master/spm_browser.m#L54
To fix it, export the environment variable SPM_HTML_BROWSER as 0 before launching SPM12. In a terminal, this would be "export SPM_HTML_BROWSER=0"
This worked for me, and I hope it works for others as well.
  2 个评论
Aaron Ward
Aaron Ward 2020-3-20
This worked for me! I am now able to use the GUI and load images just fine. Thanks!
Running Ubuntu 18.04 and R2019b
Foroogh R.
Foroogh R. 2021-6-11
Worked for me too. THANKS A LOT!
Running Ubuntu 20.04 and R2019b

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by