Closed Polkas closed 1 year ago
Can you provide me with the means to reproduce this locally (on arm64). If not I'll not be able to debug the issue
Sorry, It is very hard to reproduce it with the base shiny (simplified code). Feel free to close it. At least we have a record which could be find by others, and then possibly more investigation applied.
looks to be linked with https://github.com/r-lib/ragg/issues/82
ragg::agg_png(res = NULL, units = 'in')
will crash the R session, 80 percent is connected with my problem will check it further
> ragg::agg_png(res = NULL, units = 'in')
*** caught segfault ***
address 0xc0005ffe80dddb20, cause 'invalid permissions'
Traceback:
1: ragg::agg_png(res = NULL, units = "in")
An irrecoverable exception occurred. R is aborting now ...
zsh: segmentation fault R -e "ragg::agg_png(res = NULL, units = 'in')"
EDIT
and other arguments could not be NULL too, like width and height
Thanks - I may not check the red correctly before passing it into the C code
The same for other arguments width and height, NULL will crash the R session such value is possible in shiny.
Hi @Polkas, do you happen to have reprex of a Shiny app that results on this error?
With simplified scope:
options(shiny.useragg = TRUE);shiny:::startPNG(tempfile(), NULL, NULL, NULL)
In my original app I think it is connected with https://github.com/rstudio/shiny/issues/3637 The app is based on the framework build on shiny, https://github.com/insightsengineering/teal It will not be easy to investigate it from such perspective.
I find out that the ragg is causing the shiny crashes on my arm64. The error seems to come from https://github.com/rstudio/shiny/blob/d4527cdc289c897b92a0b06eef4200537c0d98b1/R/imageutils.R#L1-L12. When I remove the ragg package from the R env, then the shiny app works correctly. Of course reinstalling of the ragg is not helping.
Error message from the shiny app:
sessionInfo: