Closed wvictor14 closed 1 month ago
I have discovered that the apps will run if started from R from bash, rather than directly in my rstudio-server console.
This made me think that maybe it is an issue with running shiny from Rstudio-server. So I updated to one of the recent rstudio-server dailies but still bug is not fixed
https://dailies.rstudio.com/rstudio/chocolate-cosmos/server/jammy-amd64/ rstudio-server-2024.04.2-755-amd64.deb
Do you see anything else in the viewer when running shiny::devmode(TRUE)
before launching the app?
There might also be something weird with the default graphics device...
shiny::plotPNG(function() plot(1))
? Do you get an error?install.packages("ragg")
fix it?Hi @cpsievert, thank you for your help,
shiny::plotPNG(function() plot(1)) #runs without error [1] "/tmp/RtmpmdNfhq/file78241653308.png"
I updated ragg to v1.3.2 (latest) and still error occurs
I tried running shiny::devmode(TRUE)
before running the shiny example app and no informative messages appear in console / viewer
> shiny::devmode(TRUE);shiny::runExample('01_hello')
shiny devmode - Turning on shiny autoreload. To disable, call `options(shiny.autoreload = FALSE)`
This message is displayed once every 8 hours.
Listening on http://127.0.0.1:7135
shiny devmode - Using full shiny javascript file. To use the minified version, call `options(shiny.minified = TRUE)`
This message is displayed once every 8 hours.
shiny devmode - Turning off caching of Sass -> CSS compilation. To turn caching on, call `options(sass.cache = TRUE)`
This message is displayed once every 8 hours.
shiny devmode - Disabling the use of bslib precompiled themes. To be able to use precompiled themes, call `options(bslib.precompiled = TRUE)`
This message is displayed once every 8 hours.
shiny devmode - Enabling warnings about low color contrasts found inside `bslib::bs_theme()`. To suppress these warnings, set `options(bslib.color_contrast_warnings = FALSE)`
This message is displayed once every 8 hours.
Huh, ok, if you right-click -> Inspect -> Console do you see (JavaScript) errors?
Hello, I have a similar issue since, I am not able to launch the shiny app example.
R version 4.3.1 (2023-06-16 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows Server 2012 x64 (build 9200)
Matrix products: default
locale: [1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252 LC_MONETARY=German_Switzerland.1252 [4] LC_NUMERIC=C LC_TIME=German_Switzerland.1252
time zone: Europe/Zurich tzcode source: internal
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] bslib_0.7.0 shiny_1.8.1.1
loaded via a namespace (and not attached): [1] digest_0.6.35 later_1.3.2 R6_2.5.1 httpuv_1.6.15 fastmap_1.2.0 magrittr_2.0.3
[7] cachem_1.1.0 memoise_2.0.1 htmltools_0.5.8.1 lifecycle_1.0.4 promises_1.3.0 cli_3.6.1
[13] xtable_1.8-4 sass_0.4.9 jquerylib_0.1.4 withr_3.0.0 compiler_4.3.1 rstudioapi_0.16.0 [19] tools_4.3.1 mime_0.12 Rcpp_1.0.12
And I only get this message :
Error in is.call(funBody[[idx]]) && as.character(funBody[[idx]][[1]]) == : 'length = 3' in coercion to 'logical(1)'
It is very strange but it seems that the error has went away after these few days...
I can update if encountered again, but otherwise feelfree to close this issue
Describe the problem in detail
My shiny apps today are suddenly all crashing without any error showing in R console. I run an app from rstudio-server (ubuntu 22) on R version 4.4.0, shiny 1.8.1 and the app greys out as if an error occurred. Even occurs running shiny example apps via
shiny::runExample
See screenshot of dead app:
System details
Browser Version:
Output of
sessionInfo()
:Example application or steps to reproduce the problem
```R Restarting R session... > library(shiny) > shiny::runExample() Valid examples in {shiny}: "01_hello", "02_text", "03_reactivity", "04_mpg", "05_sliders", "06_tabsets", "07_widgets", "08_html", "09_upload", "10_download", "11_timer" > shiny::runExample('01_hello') Attaching package: ‘bslib’ The following object is masked from ‘package:utils’: page Listening on http://127.0.0.1:5809 ```