Problem running spm12 using R2019a on Centos 7
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Eugene Fluder
am 23 Apr. 2019
Kommentiert: Ricardo Martins
am 21 Aug. 2024
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?
0 Kommentare
Akzeptierte Antwort
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.
1 Kommentar
Weitere Antworten (1)
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.
3 Kommentare
Ricardo Martins
am 21 Aug. 2024
Worked for me too. THANKS A LOT!
The problem was observed in SPM12 and CAT12 neuroimaging toolbox.
Running Ubuntu 20.04.6 LTS, R2019b
Siehe auch
Kategorien
Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!