Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty shiny apps always crash in interactive after 1.1.0 #2085

Closed
ksavin opened this issue Jun 5, 2018 · 3 comments
Closed

Empty shiny apps always crash in interactive after 1.1.0 #2085

ksavin opened this issue Jun 5, 2018 · 3 comments

Comments

@ksavin
Copy link

ksavin commented Jun 5, 2018

Hello.

I've just updated shiny to 1.1.0 and can't debug shiny app anymore, including blank fluid page with no server logic. Apps immediately die with gray screen on runApp. No errors are displayed in console.
I'm running apps with R studio server. Apps that are already deployed are running just fine on the same server.

We are using NGINX on this server for basic authentication. Has anything changed in the new shiny version that may have caused a conflict when apps are being run interactively?

R version 3.4.3 (2017-11-30)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.1.0

loaded via a namespace (and not attached):
 [1] compiler_3.4.3   magrittr_1.5     R6_2.2.2         promises_1.0.1   later_0.7.2.9000 htmltools_0.3.6  tools_3.4.3     
 [8] yaml_2.1.18      Rcpp_0.12.17     digest_0.6.15    xtable_1.8-2     httpuv_1.4.3     mime_0.5   
@ksavin ksavin changed the title Empty shiny apps crash on every start after 1.1.0 Empty shiny apps always crashe in interactive after 1.1.0 Jun 5, 2018
@ksavin ksavin changed the title Empty shiny apps always crashe in interactive after 1.1.0 Empty shiny apps always crash in interactive after 1.1.0 Jun 5, 2018
@jcheng5
Copy link
Member

jcheng5 commented Jun 5, 2018

It looks like you're using RStudio Server--what version?

Can you try downgrading to the previous version of Shiny and httpuv, restart, and confirm that the problem goes away? devtools::install_version("shiny", "1.0.5") and devtools::install_version("httpuv", "1.3.6")

@wch
Copy link
Collaborator

wch commented Jun 10, 2018

Can you try installing the development version of httpuv? I believe that rstudio/httpuv#153 (which was merged) should fix it..

You can install with:

devtools::install_github("rstudio/httpuv")

@ksavin
Copy link
Author

ksavin commented Jun 10, 2018

Winston, that solved it. Much appreciated.
httpuv output (is it more verbose in development version?)
Listening on http://127.0.0.1:4435 SEND {"config":{"workerId":"","sessionId":"558e66e215dcc1c9c45f1e92a9b15480","user":null}} RECV {"method":"init","data":{".clientdata_pixelratio":1.2,".clientdata_url_protocol":"http:",".clientdata_url_hostname":"devus1fdp01",".clientdata_url_port":"8787",".clientdata_url_pathname":"/p/4435/",".clientdata_url_search":"",".clientdata_url_hash_initial":"",".clientdata_url_hash":"",".clientdata_singletons":"",".clientdata_allowDataUriScheme":true}} SEND {"errors":[],"values":[],"inputMessages":[]}

Joe, apologies for not getting back for so long. I tried rolling back before opening the thread by getting binaries of Shiny and dependencies from CRAN archive, but I guess, I did not get the right version combinations. After installing the ones you've suggested, I get the following error:
Error : "_httpuv_decodeURIComponent" not available for .Call() for package "httpuv"

Session info:
`R version 3.4.3 (2017-11-30)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] shiny_1.0.5

loaded via a namespace (and not attached):
[1] compiler_3.4.3 R6_2.2.2 htmltools_0.3.6 tools_3.4.3 yaml_2.1.18
[6] Rcpp_0.12.17 digest_0.6.15 xtable_1.8-2 httpuv_1.3.6 mime_0.5 `

R studio server version 1.1.442

@ksavin ksavin closed this as completed Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants