Open zao opened 3 years ago
Additionally, on my system xvfb-run
requires use of the -a
argument to start at all.
fonts-dejavu-core installed solved the problem, no need for any other X-package.
While working on a new R release, R-4.0.4, I have experienced probably a related issue that didn't result in the seg fault.
* installing *source* package gWidgets2tcltk ...
** package gWidgets2tcltk successfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] failed to allocate font due to internal system font engine problem.
Error: unable to load R code in package gWidgets2tcltk
Execution halted
ERROR: lazy loading failed for package gWidgets2tcltk
I will try to install the missing package. Let's see does this fixes the issue. EDIT: I have found that a similar issue happens in other packages, for PDE it is reported under section "Error when starting interactive user interface on Mac (failed to allocate tcl font)". However, the issue in my case happens on CentOS 8.3. https://cran.r-project.org/web/packages/PDE/readme/README.html
This error indeed gets solved by installing the dejavu font packages. Note: it is better to install more of them to ensure you have the correct packages. For CentOS 7, I installed the following packages:
yum install bpg-dejavu-sans-fonts dejavu-fonts-common dejavu-lgc-sans-fonts dejavu-lgc-sans-mono-fonts dejavu-lgc-serif-fonts dejavu-sans-fonts dejavu-sans-mono-fonts dejavu-serif-fonts -y
no DISPLAY variable so Tk is not available Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] invalid command name "font". Error: unable to load R code in package ‘gWidgets2tcltk’ Execution halted
how can i solve this issue
The installation for
gWidgets2tcltk
is run viaxvfb-run
and crashes with a segmentation fault like this if run standalone:See https://github.com/easybuilders/easybuild-easyconfigs/pull/11663#issuecomment-748937252 for the error when run as part of an EB build of R/4.0.3.
If I installed
xterm
on the system (with a fair number of dependencies) the installation ofgWidgets2tcltk
suddenly succeeds. The package that tipped the scales into working wasfonts-dejavu-core
, implying that something in the build hard-requires some sort of font presence.