MATLAB 2019b on Ubuntu 18.04 LTS - Pango and canberra errors when running SPM

4 ビュー (過去 30 日間)
John Johnson
John Johnson 2020 年 1 月 23 日
コメント済み: Adam Danz 2021 年 3 月 23 日
I've just installed MATLAB 2019b on a new install of Ubuntu 18.04 LTS.
One application I run is called SPM. From what I can glean from the web, these errors are MATLAB issues.
The "Failed to load module "canberra..." error happens when SPM starts.
The other "Pango-CRITICAL..." errors happen after I click a button on SPM's interface.
MATLAB hangs after printing the errors, and I have to kill it.
Does anyone know of a fix?
john@ubuntu:~/Downloads$ matlab -r spm
MATLAB is selecting SOFTWARE OPENGL rendering.
Gtk-Message: 15:33:46.996: Failed to load module "canberra-gtk-module"
(MATLAB:103619): Pango-CRITICAL **: 15:34:18.620: pango_font_description_from_string: assertion 'str != NULL' failed
(MATLAB:103619): Pango-CRITICAL **: 15:34:18.620: pango_font_description_get_family: assertion 'desc != NULL' failed
(MATLAB:103619): Pango-CRITICAL **: 15:34:18.620: pango_font_description_set_family: assertion 'desc != NULL' failed
(MATLAB:103619): Pango-CRITICAL **: 15:34:18.620: pango_font_description_get_size: assertion 'desc != NULL' failed
(MATLAB:103619): Pango-CRITICAL **: 15:34:18.620: pango_font_description_set_size: assertion 'desc != NULL' failed
MATLAB Shutdown Error: Killed by User Request
john@ubuntu:~/Downloads$
  1 件のコメント
Adam Danz
Adam Danz 2021 年 3 月 23 日
Contact the authors of that toolbox for a resolution.
Note that thier website states,
For other platforms [other than Windows], you will need to build the MEX files using a suitable C compiler and the Makefile provided with the SPM distribution.

サインインしてコメントする。

回答 (6 件)

Sapir Golan
Sapir Golan 2020 年 1 月 29 日
Hey,
did you resolved this issue?

Sai Bhargav Avula
Sai Bhargav Avula 2020 年 3 月 27 日
Hi,
It appears to be that 'libcanberra-gtk-module' doesn't exist or is corrupted. Installing or reinstalling the same would solve the issue. To install or reinstall the same on Ubuntu, the following terminal commands may be used:
Install:
sudo apt-get install libcanberra-gtk-module
Reinstall:
sudo apt-get install --reinstall libcanberra-gtk-module
Hope this helps!

Francesco Lo Russo
Francesco Lo Russo 2020 年 4 月 19 日
Hi,
the gtk-module should not be a problem. Unfortunatly the pango critical issues prevents me too to use the SPM12 toolbox on my ubuntu 19 with Matlab 2019b.
  1 件のコメント
Francesco Lo Russo
Francesco Lo Russo 2020 年 5 月 13 日
by the way SPM12 loads on ubuntu 19.10 but the issue is present in ubuntu 20.4. When I try to load SPM12 I get a similar error:
Gtk-Message: 20:50:03.779: Failed to load module "canberra-gtk-module"
(MATLAB:5371): Pango-CRITICAL **: 20:50:56.862: pango_font_description_from_string: assertion 'str != NULL' failed
(MATLAB:5371): Pango-CRITICAL **: 20:50:56.862: pango_font_description_get_family: assertion 'desc != NULL' failed
(MATLAB:5371): Pango-CRITICAL **: 20:50:56.862: pango_font_description_set_family: assertion 'desc != NULL' failed
(MATLAB:5371): Pango-CRITICAL **: 20:50:56.862: pango_font_description_get_size: assertion 'desc != NULL' failed
(MATLAB:5371): Pango-CRITICAL **: 20:50:56.862: pango_font_description_set_size: assertion 'desc != NULL' failed
MATLAB Shutdown Error: Killed by User Request
Still I have not found any solution to the problem.

サインインしてコメントする。


Francesco Lo Russo
Francesco Lo Russo 2020 年 5 月 14 日
Hi, the SPM mailing list suggested me to follow this link. I’ll try the fix and see if it works.
https://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux#Crash_at_startup

Francesco Lo Russo
Francesco Lo Russo 2020 年 5 月 23 日
Dear all,
I found an easy fix. Before launching SPM12 just luanch the following command. It solved the problem for me!
#first command to launch
setenv('SPM_HTML_BROWSER','0')
#and after that
spm

Hilary Dagg
Hilary Dagg 2021 年 3 月 23 日
Just wondering if any one has any other solutions.. setenv('SPM_HTML_BROWSER','0') does not fix it for me

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by