필터 지우기
필터 지우기

Problem running spm12 using R2019a on Centos 7

조회 수: 7 (최근 30일)
Eugene Fluder
Eugene Fluder 2019년 4월 23일
댓글: Foroogh R. 2021년 6월 11일
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
Walter Roberson
Walter Roberson 2019년 4월 30일
Looks like a library compatibility issue to me.

댓글을 달려면 로그인하십시오.

추가 답변 (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