-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
This causes a segfault:
> library(ragg)
> agg_png("test.png")
> plot(1,1, main = "\u6771\u4eac")
Failed to get face: /System/Library/PrivateFrameworks/FontServices.framework/Resources/Reserved/PingFangUI.ttc, 0
Process 70990 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc0)
frame #0: 0x000000010389032c textshaping.so`hb_ft_face_create(ft_face=0x0000000000000000, destroy=(textshaping.so`_hb_ft_face_destroy(void*) at hb-ft.cc:125:3)) at hb-ft.cc:1137:17 [opt]
This is likely caused by a bug in textshaping (see r-lib/textshaping#77) triggered by the unrecognized font format used on the Mac.
> library(ragg)
> sessionInfo()
R version 4.5.2 (2025-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.7.2
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1
locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
time zone: America/Toronto
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ragg_1.5.0
loaded via a namespace (and not attached):
[1] compiler_4.5.2 cli_3.6.5 textshaping_1.0.4 lifecycle_1.0.5
[5] rlang_1.1.7 systemfonts_1.3.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels