I should point out that both people with the "can't state PNG" error were viewing with macbook pro retina screens. I read somewhere that shiny tries to send higher resolution graphs when it detects high resolution clients.
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I read somewhere that shiny choose a different DPI for pmg output based on the client resolution. And this is causing some errors in the device. I think the fix is not too difficult
Did anyone find a solution to this problem?I have a basically identical screenshot from a user on Mac OS X 10.9 with Chrome Version 32.0.1700.41 beta -- it says "Error: unable to start device PNG" instead of all the plots.Every one else can view the plots. For example, I am running Chrome 31.0.1650.48 and it works fine (Mac or Linux).This is very odd to me because I feel like this is a server side error. But somehow the client is influencing it. Is shiny that picky about what client is being used? I remember earlier we had to upgrade from Shiny 0.6 to 0.7 because of an incompatibility in Chrome. It was a web sockets issue that time. We are using Shiny 0.8 now.The Macbook "retina screen" thing sounds plausible to me. Any further info?Andy
Listening on port 20050
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Warning in pngfun(filename = filename, width = width, height = height, res = res, :
unable to open connection to X11 display ''
Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, :
unable to start device PNG
Andy
options(bitmapType="cairo")
The app is running on a Linux box with Shiny 0.8 (without shiny server). As I was saying, this only happens for *some clients*. For those clients, it happens with ALL shiny apps, even "01_helloworld" and such. There are many people using these Shiny apps without any problems.The Mac Retina theory that Saptarshi points out matches the bug report very well, although I haven't been able to get my hands on a Mac Retina to dig any deeper.As I was saying, it definitely seems like a server error, but it's actually dependent on the *client*. The code snippets he pointed to seem plausible as the cause as well.Andy
I know this is very late to this discussion, but I am experiencing EXACTLY this error when serving png(s) from an Azure Ubuntu install of R+Shiny using just apt-get. My shiny app works perfectly when browsed to by windows (IE/Chrome/FF) or ubuntu (FF), but will gives the "unable to start device 'png'" error on my Mac in both chrome and safari.The code that gens the png tab pages - that others have used too:rl = lapply(sprintf(all), png::readPNG)gl = lapply(rl, grid::rasterGrob)gridExtra::grid.arrange(grobs=gl, ncol = 6, nrow = 200)"all" is a nice list of filenames to read...no trouble there...Very strange. None of the suggestions about cairo, etc., work for me...--Dr. Stephen C. Hayne, Professor, CIS, Colorado State University___(_)___ "I love to fly AngelFlights! 310I - N8109M