Fontconfig error - "out of memory"
Solution 1
It is a bug in Khmer fonts, see https://bugs.launchpad.net/ubuntu/+source/fonts-khmeros/+bug/1254967.
If it bothers you and you do not need Khmer fonts, you can get rid of it removing (with configuration) the fonts:
apt-get purge fonts-khmeros-core
If you need the fonts, there are various workarounds in the aforementioned bug. The most correct way seems to edit the failing file and remove the <match>
and </match>
tags, as explained here: http://permalink.gmane.org/gmane.linux.debian.devel.bugs.general/1095401
Solution 2
According to this bug report, installing the latest DEB for this package (the Khmer OS font) from here also solves the issue. Looks like the bug was resolved for Trusty, but was never backported to the Saucy repository.
Broadly speaking, the "error message" is just a symptom while actual functionality that breaks/misbehaves is the root cause. By uninstalling the package, we are fixing the symptom while getting rid of the functionality itself.
Related videos on Youtube
Ali
Updated on September 18, 2022Comments
-
Ali over 1 year
I am trying to launch the Android Studio on Xubuntu. When I type ./studio.sh in terminal I get this error:
Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line 14: out of memory Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line 23: out of memory Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line 32: out of memory
BUT the android studio launches and it seems to work without any problems. Why am I getting this error and how can I fix it?
-
Ali about 10 yearsThanks. Who needs this font? ;) I had never heard of it before. Just removed it.
-
Hosam.Yousof about 10 yearsstill got this error when upgrading to 14.04 from 13.10. So it seems it is NOT REALLY resolved for Trusty.
-
jbx about 10 yearsGot the same error to when upgrading from 13.10 to 14.04