Effacer les filtres
Effacer les filtres

Problem running spm12 using R2019a on Centos 7

7 vues (au cours des 30 derniers jours)
Eugene Fluder
Eugene Fluder le 23 Avr 2019
Commenté : Foroogh R. le 11 Juin 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?

Réponse acceptée

Kestas Subacius
Kestas Subacius le 30 Avr 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 commentaire
Walter Roberson
Walter Roberson le 30 Avr 2019
Looks like a library compatibility issue to me.

Connectez-vous pour commenter.

Plus de réponses (1)

Anna Mai
Anna Mai le 18 Mar 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 commentaires
Aaron Ward
Aaron Ward le 20 Mar 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. le 11 Juin 2021
Worked for me too. THANKS A LOT!
Running Ubuntu 20.04 and R2019b

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by