Error: Failed to load Cairo backend

1,605 views
Skip to first unread message

Aaron Mackey

unread,
Apr 3, 2013, 12:19:59 PM4/3/13
to shiny-...@googlegroups.com

I'm sorry this isn't very reproducible, except that two different users have approached me about a shiny server-driven web app that works fine when I freshly start (or restart) shiny-server, but after a few days (or longer) they encounter this Cairo error, as if some piece of the backend machinery has quietly disappeared.  I'm stumped where to begin looking; is shiny-server doing anything special to hibernate between requests?

Thanks for any other clues,
-Aaron

win...@rstudio.com

unread,
Apr 3, 2013, 12:49:01 PM4/3/13
to shiny-...@googlegroups.com
Shiny does check to see if you have the Cairo package installed when renderPlot() is called. I have no idea why it should start throwing that error, though -- I haven't seen it before. Are they using Cairo directly in their apps, or are they just using renderPlot?


In 0.4.1, it was in renderPlot:

In 0.5.0, it was moved to a separate function plotPNG, which gets called from renderPlot:


-Winston

Aaron Mackey

unread,
Apr 3, 2013, 1:07:33 PM4/3/13
to shiny-discuss
I'm using CairoSVG to return SVG from a reactiveText() call (shiny 0.3.1, shiny-server 0.3.0); server.R calls library(Cairo) at startup.

Thanks,
-Aaron

--
Aaron J. Mackey, PhD
Assistant Professor
Center for Public Health Genomics
University of Virginia
ama...@virginia.edu
http://www.cphg.virginia.edu/mackey


--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/Jzs7TTKgn4Y/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages