Filter löschen
Filter löschen

Problem running spm12 using R2019a on Centos 7

7 Ansichten (letzte 30 Tage)
Eugene Fluder
Eugene Fluder am 23 Apr. 2019
Kommentiert: Foroogh R. am 11 Jun. 2021
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?

Akzeptierte Antwort

Kestas Subacius
Kestas Subacius am 30 Apr. 2019
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.

Weitere Antworten (1)

Anna Mai
Anna Mai am 18 Mär. 2020
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 Kommentare
Aaron Ward
Aaron Ward am 20 Mär. 2020
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. am 11 Jun. 2021
Worked for me too. THANKS A LOT!
Running Ubuntu 20.04 and R2019b

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by