Windows crash in textshaping 1.0.5 when rendering text through svglite

Aperta
#80 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, r
Ambito
backend

Direzione di ricerca

Start by running the minimal R example on Windows with textshaping 1.0.5 and compare it with 1.0.4, which the report says avoids the crash. The issue provides no source file or failing test to locate the regression, so trace the text shaping call used by svglite and check existing Windows tests. Done means rendering the text creates an SVG without aborting the R session.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Package build
> packageDescription("textshaping")[c("Version", "Built")]
$Version
[1] "1.0.4"

$Built
[1] "R 4.3.3; x86_64-w64-mingw32; 2026-07-24 09:01:34 UTC; windows"
Minimal reproducible example
library(svglite)

svglite("test.svg")
plot.new()
text(.5, .5, "Hello")
dev.off()
Expected behaviour

Creates an SVG file containing the text.

Actual behaviour

R session aborts when text() is executed.

Environment
  • Windows 11 x64
  • R 4.3.3 (ucrt)
  • RStudio 2026.07.1
  • svglite 2.2.2
  • systemfonts 1.3.1
  • textshaping 1.0.5

Downgrading textshaping to 1.0.4 fixes the issue

The crash also affects ggplot2 but the minimal example already reproduces it

ggsave("test.svg", device = svglite::svglite)

PS. First time submitting a bug report, if there's anything I can do better please tell me! Here to learn :-)
Also had some AI help to find it, not capable of doing this on my own (yet).

Lingua principale
C++
Stelle
20
Fork
11
Merge medio
2g 21h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di r-lib/textshaping

Tutte le issue di r-lib/textshaping

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.