Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual tests fails on GitHub Actions (macOS) #80

Closed
yutannihilation opened this issue Jan 10, 2020 · 3 comments
Closed

Visual tests fails on GitHub Actions (macOS) #80

yutannihilation opened this issue Jan 10, 2020 · 3 comments

Comments

@yutannihilation
Copy link
Contributor

(Sorry, I'm not sure whether I should report this here or r-lib/actions...)

I see this error on runs-on: macOS-latest, which is added usethis::use_github_actions():

unable to load shared object '/Users/runner/runners/2.163.1/work/_temp/Library/systemfonts/libs/systemfonts.so':
  dlopen(/Users/runner/runners/2.163.1/work/_temp/Library/systemfonts/libs/systemfonts.so, 6): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
  Referenced from: /Users/runner/runners/2.163.1/work/_temp/Library/systemfonts/libs/systemfonts.so
  Reason: image not found
Backtrace:
  1. vdiffr::expect_doppelganger
  2. base::getExportedValue(pkg, name)
  3. base::asNamespace(ns)
  4. base::getNamespace(ns)
  5. base::loadNamespace(name)
  8. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
 11. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
 12. base::library.dynam(lib, package, package.lib)
 13. base::dyn.load(file, DLLpath = DLLpath, ...)

https://github.com/yutannihilation/gghighlight/commit/bf77c205d1e9e570eecbc1b821b6eccad524a132/checks?check_suite_id=394064558#step:5:136

@rsangole
Copy link

I'm facing the same problem today. Were you able to find a resolution for this issue?

@jimhester
Copy link
Member

jimhester commented Mar 6, 2020

You need to install XQuarz, brew cask install xquartz will do this on GitHub Actions.

Googling 'Library not loaded: /opt/X11/lib/libfreetype.6.dylib' will lead you to this conclusion pretty quickly.

Also the best place for these workflow related issues is on the RStudio community site with the 'github-actions' tag.

@yutannihilation
Copy link
Contributor Author

Wow, thanks!!!

Googling 'Library not loaded: /opt/X11/lib/libfreetype.6.dylib' will lead you to this conclusion pretty quickly.

Aw, sorry.... Last time I tried, my google-fu is not enough to reach me to that info. I'll use RStudio community next time!

krassowski added a commit to krassowski/complex-upset that referenced this issue Dec 4, 2020
krassowski added a commit to krassowski/complex-upset that referenced this issue Dec 4, 2020
* Create r.yml

* Update and rename r.yml to test.yml

* Remove Travis config and badge

* Install ubuntu dependency, do not fail fast nor test on Win

* Fix typos in workflow

* Fix scale test, update namespace and re-render documentation

* Fix macOS issue with fonts, see r-lib/vdiffr#80 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants