MATLAB 2019b on Ubuntu 18.04 LTS - Pango and canberra errors when running SPM
10 views (last 30 days)
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
Sai Bhargav Avula on 27 Mar 2020
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:
sudo apt-get install libcanberra-gtk-module
sudo apt-get install --reinstall libcanberra-gtk-module
Hope this helps!
Francesco Lo Russo on 19 Apr 2020
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.
Francesco Lo Russo on 14 May 2020
Hi, the SPM mailing list suggested me to follow this link. I’ll try the fix and see if it works.
Francesco Lo Russo on 23 May 2020
I found an easy fix. Before launching SPM12 just luanch the following command. It solved the problem for me!
#first command to launch
#and after that