-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
shiny timeout when running locally? #1967
Comments
Hi @vnijs, are you still seeing this? If so, can you try updating |
Oh, and |
Yep. Just happened again 2 days ago. Not sure how to reproduce though as it happens infrequently. I'm pretty sure I was already using the latest |
FYI Happened once today and once yesterday. App was just open in the back ground then just timed-out when running locally. Listening on http://127.0.0.1:6762
Error in execCallbacks(timeoutSecs) :
Condition variable failed to timedwait
Stopped Radiant I wonder if it may be related to #2033 > devtools::session_info()
Session info ----------------------------------------------------------------------------------------
setting value
version R version 3.4.4 (2018-03-15)
system x86_64, darwin15.6.0
ui RStudio (1.1.447)
language (EN)
collate en_US.UTF-8
tz America/Los_Angeles
date 2018-04-27
Packages --------------------------------------------------------------------------------------------
package * version date source
abind 1.4-5 2016-07-21 CRAN (R 3.4.0)
AlgDesign 1.1-7.3 2014-10-15 CRAN (R 3.4.0)
assertthat 0.2.0 2017-04-11 CRAN (R 3.4.0)
backports 1.1.2 2017-12-13 CRAN (R 3.4.3)
base * 3.4.4 2018-03-15 local
base64enc 0.1-3 2015-07-28 CRAN (R 3.4.0)
bindr 0.1.1 2018-03-13 CRAN (R 3.4.4)
bindrcpp * 0.2.2 2018-03-29 CRAN (R 3.4.4)
bit 1.1-12 2014-04-09 CRAN (R 3.4.0)
bit64 0.9-7 2017-05-08 CRAN (R 3.4.0)
blob 1.1.0 2017-06-17 CRAN (R 3.4.0)
brew 1.0-6 2011-04-13 CRAN (R 3.4.0)
broom 0.4.4 2018-03-29 CRAN (R 3.4.4)
car 3.0-0 2018-04-02 CRAN (R 3.4.4)
carData 3.0-1 2018-03-28 CRAN (R 3.4.4)
cellranger 1.1.0 2016-07-27 CRAN (R 3.4.0)
class 7.3-14 2015-08-30 CRAN (R 3.4.4)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.0)
compiler 3.4.4 2018-03-15 local
crosstalk 1.0.0 2016-12-21 CRAN (R 3.4.0)
curl 3.2 2018-03-28 CRAN (R 3.4.4)
data.table 1.10.4-3 2017-10-27 CRAN (R 3.4.2)
data.tree 0.7.5 2018-03-06 cran (@0.7.5)
datasets * 3.4.4 2018-03-15 local
DBI 0.8 2018-03-02 CRAN (R 3.4.3)
DEoptimR 1.0-8 2016-11-19 CRAN (R 3.4.0)
devtools 1.13.5 2018-02-18 CRAN (R 3.4.3)
DiagrammeR 1.0.0 2018-03-01 CRAN (R 3.4.3)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
downloader 0.4 2015-07-09 CRAN (R 3.4.0)
dplyr * 0.7.4 2017-09-28 CRAN (R 3.4.2)
DT 0.4 2018-01-30 CRAN (R 3.4.3)
e1071 1.6-8 2017-02-02 CRAN (R 3.4.0)
evaluate 0.10.1 2017-06-24 CRAN (R 3.4.1)
feather 0.3.1 2016-11-09 CRAN (R 3.4.0)
forcats 0.3.0 2018-02-19 CRAN (R 3.4.3)
foreign 0.8-69 2017-06-22 CRAN (R 3.4.1)
ggplot2 * 2.2.1 2016-12-30 CRAN (R 3.4.0)
ggrepel 0.7.0 2017-09-29 CRAN (R 3.4.2)
glue 1.2.0 2017-10-29 CRAN (R 3.4.2)
Gmedian 1.2.4 2017-09-15 CRAN (R 3.4.1)
GPArotation 2014.11-1 2014-11-25 CRAN (R 3.4.0)
graphics * 3.4.4 2018-03-15 local
grDevices * 3.4.4 2018-03-15 local
grid 3.4.4 2018-03-15 local
gridExtra 2.3 2017-09-09 CRAN (R 3.4.1)
gtable 0.2.0 2016-02-26 CRAN (R 3.4.0)
haven 1.1.1 2018-01-18 CRAN (R 3.4.3)
highr 0.6 2016-05-09 CRAN (R 3.4.0)
hms 0.4.2 2018-03-10 CRAN (R 3.4.3)
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.0)
htmlwidgets 1.2 2018-04-19 CRAN (R 3.4.4)
httpuv 1.4.0 2018-04-19 CRAN (R 3.4.4)
httr 1.3.1 2017-08-20 CRAN (R 3.4.1)
igraph 1.2.1 2018-03-10 CRAN (R 3.4.4)
import 1.1.0 2015-06-22 CRAN (R 3.4.0)
influenceR 0.1.0 2015-09-03 CRAN (R 3.4.0)
jsonlite 1.5 2017-06-01 CRAN (R 3.4.0)
knitr 1.20 2018-02-20 cran (@1.20)
labeling 0.3 2014-08-23 CRAN (R 3.4.0)
later 0.7.1 2018-03-07 CRAN (R 3.4.4)
lattice 0.20-35 2017-03-25 CRAN (R 3.4.4)
lazyeval 0.2.1 2017-10-29 CRAN (R 3.4.2)
lubridate * 1.7.4 2018-04-11 CRAN (R 3.4.4)
magrittr * 1.5 2014-11-22 CRAN (R 3.4.0)
markdown 0.8 2017-04-20 CRAN (R 3.4.0)
MASS 7.3-49 2018-02-23 CRAN (R 3.4.4)
Matrix 1.2-14 2018-04-09 CRAN (R 3.4.4)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.0)
methods * 3.4.4 2018-03-15 local
mime 0.5 2016-07-07 CRAN (R 3.4.0)
mnormt 1.5-5 2016-10-15 CRAN (R 3.4.0)
munsell 0.4.3 2016-02-13 CRAN (R 3.4.0)
mvtnorm * 1.0-7 2018-01-25 CRAN (R 3.4.3)
NeuralNetTools 1.5.1 2018-02-05 CRAN (R 3.4.3)
nlme 3.1-137 2018-04-07 CRAN (R 3.4.4)
nnet 7.3-12 2016-02-02 CRAN (R 3.4.4)
openxlsx 4.0.17 2017-03-23 CRAN (R 3.4.0)
parallel 3.4.4 2018-03-15 local
pillar 1.2.1 2018-02-27 CRAN (R 3.4.3)
pkgconfig 2.0.1 2017-03-21 CRAN (R 3.4.0)
plotly * 4.7.1 2017-07-29 CRAN (R 3.4.1)
plyr 1.8.4 2016-06-08 CRAN (R 3.4.0)
polycor 0.7-9 2016-08-27 CRAN (R 3.4.0)
promises 1.0.1 2018-04-21 Github (rstudio/promises@afe9e8f)
psych 1.8.3.3 2018-03-30 cran (@1.8.3.3)
purrr 0.2.4 2017-10-18 CRAN (R 3.4.2)
R6 2.2.2 2017-06-17 CRAN (R 3.4.0)
radiant * 0.9.3.0 2018-04-23 local
radiant.basics * 0.9.3.0 2018-04-27 local
radiant.data * 0.9.3.0 2018-04-27 local
radiant.design * 0.9.3.0 2018-04-27 local
radiant.model * 0.9.3.0 2018-04-27 local
radiant.multivariate * 0.9.3.0 2018-04-27 local
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.4.0)
Rcpp 0.12.16 2018-03-13 cran (@0.12.16)
readr 1.1.1 2017-05-16 CRAN (R 3.4.0)
readxl 1.1.0 2018-04-20 CRAN (R 3.4.4)
reshape2 1.4.3 2017-12-11 CRAN (R 3.4.3)
rgexf 0.15.3 2015-03-24 CRAN (R 3.4.0)
rio 0.5.10 2018-03-29 CRAN (R 3.4.4)
rlang 0.2.0 2018-02-20 CRAN (R 3.4.3)
rmarkdown 1.9 2018-03-01 cran (@1.9)
robustbase 0.92-8 2017-11-01 CRAN (R 3.4.2)
Rook 1.1-1 2014-10-20 CRAN (R 3.4.0)
rpart 4.1-13 2018-02-23 CRAN (R 3.4.4)
rprojroot 1.3-2 2018-01-03 cran (@1.3-2)
rsconnect 0.8.8 2018-03-09 CRAN (R 3.4.4)
RSpectra 0.12-0 2016-06-12 CRAN (R 3.4.0)
RSQLite 2.0 2017-06-19 CRAN (R 3.4.1)
rstudioapi 0.7.0-9001 2018-01-08 local
sandwich 2.4-0 2017-07-26 CRAN (R 3.4.1)
scales 0.5.0 2017-08-24 CRAN (R 3.4.1)
shiny * 1.0.5.9000 2017-09-12 local
shinyAce 0.3.0.1 2018-04-21 Github (trestletech/shinyAce@78a6f34)
stats * 3.4.4 2018-03-15 local
stringi 1.1.7 2018-03-12 CRAN (R 3.4.4)
stringr 1.3.0 2018-02-19 cran (@1.3.0)
tibble 1.4.2 2018-01-22 cran (@1.4.2)
tidyr * 0.8.0 2018-01-29 cran (@0.8.0)
tidyselect 0.2.4 2018-02-26 CRAN (R 3.4.3)
tools 3.4.4 2018-03-15 local
utils * 3.4.4 2018-03-15 local
viridis 0.5.1 2018-03-29 CRAN (R 3.4.4)
viridisLite 0.3.0 2018-04-23 Github (sjmgarnier/viridisLite@91199d1)
visNetwork 2.0.3 2018-01-09 cran (@2.0.3)
withr 2.1.2 2018-04-23 Github (jimhester/withr@79d7b0d)
XML 3.98-1.11 2018-04-16 CRAN (R 3.4.4)
xtable 1.8-2 2016-02-05 CRAN (R 3.4.0)
yaml 2.1.18 2018-03-08 CRAN (R 3.4.4)
zoo 1.8-1 2018-01-08 CRAN (R 3.4.3) |
Thanks. @wch I'm thinking I should add some proper error logging around the timedwait? I can do that today. |
I was just looking at this. A basic start would be to add the following code here: if (ret == EINVAL) fprintf(stderr, "cnd_timewait: EINVAL\n");
if (ret == EPERM) fprintf(stderr, "cnd_timewait: EPERM\n"); But I suspect we'll need even more info, like the values of I wish we we were able to consistently reproduce the error -- then we could run R with a debugger and put breakpoints in those locations. |
@vnijs Can you |
No problem. It just happened again (running in Rstudio Window). Hadn't touched the app for a few minutes before the timeout. The output and stacktrace is shown below. Let me know if there is anything else you need.
Messages shown in console: > traceback()
15: stop(e)
14: (function (e)
{
if (is.null(attr(e, "stack.trace", exact = TRUE))) {
calls <- sys.calls()
parents <- sys.parents()
attr(calls, "parents") <- parents
attr(e, "stack.trace") <- calls
}
if (deepStacksEnabled()) {
if (is.null(attr(e, "deep.stack.trace", exact = TRUE)) &&
!is.null(.globals$deepStack)) {
attr(e, "deep.stack.trace") <- .globals$deepStack
}
}
stop(e)
})(list(message = "Condition variable failed to timedwait", call = execCallbacks(timeoutSecs),
cppstack = NULL))
13: stop(list(message = "Condition variable failed to timedwait",
call = execCallbacks(timeoutSecs), cppstack = NULL))
12: .Call("_later_execCallbacks", PACKAGE = "later", timeoutSecs)
11: execCallbacks(timeoutSecs)
10: run_now(timeoutMs/1000)
9: service(timeout)
8: serviceApp()
7: ..stacktracefloor..(serviceApp())
6: withCallingHandlers(expr, error = doCaptureStack)
5: globals$domain$wrapSync(expr)
4: promises::with_promise_domain(createStackTracePromiseDomain(),
expr)
3: captureStackTraces({
while (!.globals$stopped) {
..stacktracefloor..(serviceApp())
Sys.sleep(0.001)
}
})
2: ..stacktraceoff..(captureStackTraces({
while (!.globals$stopped) {
..stacktracefloor..(serviceApp())
Sys.sleep(0.001)
}
}))
1: shiny::runApp("inst/app") Session info: > devtools::session_info()
Session info --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
setting value
version R version 3.4.4 (2018-03-15)
system x86_64, darwin15.6.0
ui RStudio (1.1.447)
language (EN)
collate en_US.UTF-8
tz America/Los_Angeles
date 2018-04-28
Packages ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
package * version date source
abind 1.4-5 2016-07-21 CRAN (R 3.4.0)
AlgDesign 1.1-7.3 2014-10-15 CRAN (R 3.4.0)
assertthat 0.2.0 2017-04-11 CRAN (R 3.4.0)
backports 1.1.2 2017-12-13 CRAN (R 3.4.3)
base * 3.4.4 2018-03-15 local
base64enc 0.1-3 2015-07-28 CRAN (R 3.4.0)
bindr 0.1.1 2018-03-13 CRAN (R 3.4.4)
bindrcpp * 0.2.2 2018-03-29 CRAN (R 3.4.4)
bit 1.1-12 2014-04-09 CRAN (R 3.4.0)
bit64 0.9-7 2017-05-08 CRAN (R 3.4.0)
blob 1.1.0 2017-06-17 CRAN (R 3.4.0)
brew 1.0-6 2011-04-13 CRAN (R 3.4.0)
broom * 0.4.4 2018-03-29 CRAN (R 3.4.4)
car 3.0-0 2018-04-02 CRAN (R 3.4.4)
carData 3.0-1 2018-03-28 CRAN (R 3.4.4)
cellranger 1.1.0 2016-07-27 CRAN (R 3.4.0)
class 7.3-14 2015-08-30 CRAN (R 3.4.4)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.0)
compiler 3.4.4 2018-03-15 local
crayon 1.3.4 2017-09-16 CRAN (R 3.4.1)
crosstalk 1.0.0 2016-12-21 CRAN (R 3.4.0)
curl 3.2 2018-03-28 CRAN (R 3.4.4)
data.table 1.10.4-3 2017-10-27 CRAN (R 3.4.2)
data.tree 0.7.5 2018-03-06 cran (@0.7.5)
datasets * 3.4.4 2018-03-15 local
DBI 0.8 2018-03-02 CRAN (R 3.4.3)
DEoptimR 1.0-8 2016-11-19 CRAN (R 3.4.0)
devtools 1.13.5 2018-02-18 CRAN (R 3.4.3)
DiagrammeR 1.0.0 2018-03-01 CRAN (R 3.4.3)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
downloader 0.4 2015-07-09 CRAN (R 3.4.0)
dplyr * 0.7.4 2017-09-28 CRAN (R 3.4.2)
DT 0.4.9 2018-04-28 local
e1071 1.6-8 2017-02-02 CRAN (R 3.4.0)
evaluate 0.10.1 2017-06-24 CRAN (R 3.4.1)
feather 0.3.1 2016-11-09 CRAN (R 3.4.0)
forcats 0.3.0 2018-02-19 CRAN (R 3.4.3)
foreign 0.8-69 2017-06-22 CRAN (R 3.4.1)
ggplot2 * 2.2.1 2016-12-30 CRAN (R 3.4.0)
ggrepel 0.7.0 2017-09-29 CRAN (R 3.4.2)
glue 1.2.0 2017-10-29 CRAN (R 3.4.2)
Gmedian 1.2.4 2017-09-15 CRAN (R 3.4.1)
GPArotation 2014.11-1 2014-11-25 CRAN (R 3.4.0)
graphics * 3.4.4 2018-03-15 local
grDevices * 3.4.4 2018-03-15 local
grid 3.4.4 2018-03-15 local
gridExtra 2.3 2017-09-09 CRAN (R 3.4.1)
gtable 0.2.0 2016-02-26 CRAN (R 3.4.0)
haven 1.1.1 2018-01-18 CRAN (R 3.4.3)
hms 0.4.2 2018-03-10 CRAN (R 3.4.3)
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.0)
htmlwidgets 1.2 2018-04-19 CRAN (R 3.4.4)
httpuv 1.4.0 2018-04-19 CRAN (R 3.4.4)
httr 1.3.1 2017-08-20 CRAN (R 3.4.1)
igraph 1.2.1 2018-03-10 CRAN (R 3.4.4)
import 1.1.0 2015-06-22 CRAN (R 3.4.0)
influenceR 0.1.0 2015-09-03 CRAN (R 3.4.0)
jsonlite 1.5 2017-06-01 CRAN (R 3.4.0)
knitr 1.20 2018-02-20 cran (@1.20)
later 0.7.1.9000 2018-04-28 Github (r-lib/later@c0a2040)
lattice 0.20-35 2017-03-25 CRAN (R 3.4.4)
lazyeval 0.2.1 2017-10-29 CRAN (R 3.4.2)
lubridate * 1.7.4 2018-04-11 CRAN (R 3.4.4)
magrittr * 1.5 2014-11-22 CRAN (R 3.4.0)
markdown 0.8 2017-04-20 CRAN (R 3.4.0)
MASS 7.3-49 2018-02-23 CRAN (R 3.4.4)
Matrix 1.2-14 2018-04-09 CRAN (R 3.4.4)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.0)
methods * 3.4.4 2018-03-15 local
mime 0.5 2016-07-07 CRAN (R 3.4.0)
mnormt 1.5-5 2016-10-15 CRAN (R 3.4.0)
munsell 0.4.3 2016-02-13 CRAN (R 3.4.0)
mvtnorm 1.0-7 2018-01-25 CRAN (R 3.4.3)
NeuralNetTools 1.5.1 2018-02-05 CRAN (R 3.4.3)
nlme 3.1-137 2018-04-07 CRAN (R 3.4.4)
nnet 7.3-12 2016-02-02 CRAN (R 3.4.4)
openxlsx 4.0.17 2017-03-23 CRAN (R 3.4.0)
parallel 3.4.4 2018-03-15 local
pillar 1.2.1 2018-02-27 CRAN (R 3.4.3)
pkgconfig 2.0.1 2017-03-21 CRAN (R 3.4.0)
plotly * 4.7.1 2017-07-29 CRAN (R 3.4.1)
plyr 1.8.4 2016-06-08 CRAN (R 3.4.0)
polycor 0.7-9 2016-08-27 CRAN (R 3.4.0)
promises 1.0.1 2018-04-28 Github (rstudio/promises@afe9e8f)
psych 1.8.3.3 2018-03-30 cran (@1.8.3.3)
purrr 0.2.4 2017-10-18 CRAN (R 3.4.2)
R6 2.2.2 2017-06-17 CRAN (R 3.4.0)
radiant 0.9.3.1 2018-04-28 local
radiant.basics 0.9.3.1 2018-04-28 Github (radiant-rstats/radiant.basics@718f125)
radiant.data 0.9.3.1 2018-04-28 Github (radiant-rstats/radiant.data@12bc895)
radiant.design 0.9.3.1 2018-04-28 Github (radiant-rstats/radiant.design@4830956)
radiant.model 0.9.3.1 2018-04-28 Github (radiant-rstats/radiant.model@eb5ffea)
radiant.multivariate 0.9.3.1 2018-04-28 Github (radiant-rstats/radiant.multivariate@cb1f49d)
radiant.update 0.3 2018-04-28 local
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.4.0)
Rcpp 0.12.16 2018-03-13 cran (@0.12.16)
readr 1.1.1 2017-05-16 CRAN (R 3.4.0)
readxl 1.1.0 2018-04-20 CRAN (R 3.4.4)
reshape2 1.4.3 2017-12-11 CRAN (R 3.4.3)
rgexf 0.15.3 2015-03-24 CRAN (R 3.4.0)
rio 0.5.10 2018-03-29 CRAN (R 3.4.4)
rlang 0.2.0 2018-02-20 CRAN (R 3.4.3)
rmarkdown 1.9 2018-03-01 cran (@1.9)
robustbase 0.92-8 2017-11-01 CRAN (R 3.4.2)
Rook 1.1-1 2014-10-20 CRAN (R 3.4.0)
rpart 4.1-13 2018-02-23 CRAN (R 3.4.4)
rprojroot 1.3-2 2018-01-03 cran (@1.3-2)
rsconnect 0.8.8 2018-03-09 CRAN (R 3.4.4)
RSpectra 0.12-0 2016-06-12 CRAN (R 3.4.0)
RSQLite 2.0 2017-06-19 CRAN (R 3.4.1)
rstudioapi 0.7.0-9001 2018-01-08 local
sandwich 2.4-0 2017-07-26 CRAN (R 3.4.1)
scales 0.5.0 2017-08-24 CRAN (R 3.4.1)
shiny * 1.0.5.9000 2018-04-28 Github (rstudio/shiny@01b24e9)
shinyAce 0.3.0.1 2018-04-28 Github (trestletech/shinyAce@71e48de)
stats * 3.4.4 2018-03-15 local
stringi 1.1.7 2018-03-12 CRAN (R 3.4.4)
stringr 1.3.0 2018-02-19 cran (@1.3.0)
tibble * 1.4.2 2018-01-22 cran (@1.4.2)
tidyr * 0.8.0 2018-01-29 cran (@0.8.0)
tools 3.4.4 2018-03-15 local
utils * 3.4.4 2018-03-15 local
viridis 0.5.1 2018-03-29 CRAN (R 3.4.4)
viridisLite 0.3.0 2018-04-23 Github (sjmgarnier/viridisLite@91199d1)
visNetwork 2.0.3 2018-01-09 cran (@2.0.3)
withr 2.1.2 2018-04-23 Github (jimhester/withr@79d7b0d)
XML 3.98-1.11 2018-04-16 CRAN (R 3.4.4)
xtable 1.8-2 2016-02-05 CRAN (R 3.4.0)
yaml 2.1.18 2018-03-08 CRAN (R 3.4.4)
zoo 1.8-1 2018-01-08 CRAN (R 3.4.3) |
@vnijs We're trying to reproduce the problem. Do you know if you need to interact with the application for it to crash, and if so, do you know what interactions are needed? |
Not that I have been able to determine. I open the app (e.g., https://github.com/radiant-rstats/radiant.data) in an Rstudio Window and then after some time (could be 10 min, an hour, or multiple hours) it might suddenly time out when I'm not using it. It is possible it is related to actions that happened > 10 minutes before but I have no way to know that. The only thing I can think of that might be (indirectly) related is #2033, i.e., if you clicked the refresh Sorry I don't have anything more specific. It is an odd one. Any way to build in more diagnostics that I could share if (when) it happens again? Refresh state: Load state file: |
I think it's very unlikely that it has to do with #2033 - this is happening at a very low level in code that is related to the event loop from the later package. Could you try installing this branch of later, and do your work as normal? When it hits the error, it will log some information which will help us find out what's going on: devtools::install_github('r-lib/later@joe/timedwait-logging') |
Will do. Thanks @wch. In case it is relevant ... I see the following message when installing that branch
|
@vnijs The fix for later has been merged into master. As for the |
later 0.7.2 is on CRAN now. Thanks @vnijs, we really dodged a bullet! |
No problem @jcheng5 I'm concerned there might be a new (related) issue. I posted to rstudio/rstudio but just now realized that On macOS, (almost) every time I use Install using:
> radiant:::radiant_window()
Starting radiant in an Rstudio window ...
Use radiant::radiant() to open radiant in the default browser or radiant::radiant_viewer() in Rstudio to open radiant in the Rstudio viewer
Listening on http://127.0.0.1:4463
Hide Traceback
Rerun with Debug
Error in execCallbacks(timeoutSecs) : c++ exception (unknown reason)
19.
stop(e)
18.
h(simpleError(msg, call))
17.
.handleSimpleError(function (e)
{
if (is.null(attr(e, "stack.trace", exact = TRUE))) {
calls <- sys.calls() ...
16.
stop(structure("c++ exception (unknown reason)", class = "try-error", condition = structure(list(
message = "c++ exception (unknown reason)", call = NULL), .Names = c("message",
"call"), class = c("simpleError", "error", "condition"))))
15.
execCallbacks(timeoutSecs)
14.
run_now(timeoutMs/1000)
13.
service(timeout)
12.
serviceApp()
11.
..stacktracefloor..(serviceApp())
10.
withCallingHandlers(expr, error = doCaptureStack)
9.
globals$domain$wrapSync(expr)
8.
promises::with_promise_domain(createStackTracePromiseDomain(),
expr)
7.
captureStackTraces({
while (!.globals$stopped) {
..stacktracefloor..(serviceApp())
Sys.sleep(0.001) ...
6.
..stacktraceoff..(captureStackTraces({
while (!.globals$stopped) {
..stacktracefloor..(serviceApp())
Sys.sleep(0.001) ...
5.
shiny::runApp(system.file("app", package = package), launch.browser = run)
4.
withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
3.
suppressPackageStartupMessages(shiny::runApp(system.file("app",
package = package), launch.browser = run))
2.
radiant.data::launch(package = "radiant", run = "window") at radiant.R#25
1.
radiant:::radiant_window()
Stopped Radiant > devtools::session_info()
Session info ------------------------------------------------------------------------------------------------------------------------------
setting value
version R version 3.4.4 (2018-03-15)
system x86_64, darwin15.6.0
ui RStudio (1.1.447)
language (EN)
collate en_US.UTF-8
tz America/Los_Angeles
date 2018-05-01
Packages ----------------------------------------------------------------------------------------------------------------------------------
package * version date source
abind 1.4-5 2016-07-21 CRAN (R 3.4.0)
AlgDesign 1.1-7.3 2014-10-15 CRAN (R 3.4.0)
assertthat 0.2.0 2017-04-11 CRAN (R 3.4.0)
backports 1.1.2 2017-12-13 CRAN (R 3.4.3)
base * 3.4.4 2018-03-15 local
base64enc 0.1-3 2015-07-28 CRAN (R 3.4.0)
bindr 0.1.1 2018-03-13 CRAN (R 3.4.4)
bindrcpp * 0.2.2 2018-03-29 CRAN (R 3.4.4)
bit 1.1-12 2014-04-09 CRAN (R 3.4.0)
bit64 0.9-7 2017-05-08 CRAN (R 3.4.0)
blob 1.1.0 2017-06-17 CRAN (R 3.4.0)
brew 1.0-6 2011-04-13 CRAN (R 3.4.0)
broom 0.4.4 2018-03-29 CRAN (R 3.4.4)
car 3.0-0 2018-04-02 CRAN (R 3.4.4)
carData 3.0-1 2018-03-28 CRAN (R 3.4.4)
cellranger 1.1.0 2016-07-27 CRAN (R 3.4.0)
class 7.3-14 2015-08-30 CRAN (R 3.4.4)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.0)
compiler 3.4.4 2018-03-15 local
crosstalk 1.0.0 2016-12-21 CRAN (R 3.4.0)
curl 3.2 2018-03-28 CRAN (R 3.4.4)
data.table 1.10.4-3 2017-10-27 CRAN (R 3.4.2)
data.tree 0.7.5 2018-03-06 cran (@0.7.5)
datasets * 3.4.4 2018-03-15 local
DBI 0.8 2018-03-02 CRAN (R 3.4.3)
DEoptimR 1.0-8 2016-11-19 CRAN (R 3.4.0)
devtools 1.13.5 2018-02-18 CRAN (R 3.4.3)
DiagrammeR 1.0.0 2018-03-01 CRAN (R 3.4.3)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
downloader 0.4 2015-07-09 CRAN (R 3.4.0)
dplyr * 0.7.4 2017-09-28 CRAN (R 3.4.2)
DT 0.4 2018-01-30 CRAN (R 3.4.3)
e1071 1.6-8 2017-02-02 CRAN (R 3.4.0)
evaluate 0.10.1 2017-06-24 CRAN (R 3.4.1)
feather 0.3.1 2016-11-09 CRAN (R 3.4.0)
forcats 0.3.0 2018-02-19 CRAN (R 3.4.3)
foreign 0.8-69 2017-06-22 CRAN (R 3.4.1)
ggplot2 * 2.2.1 2016-12-30 CRAN (R 3.4.0)
ggrepel 0.7.0 2017-09-29 CRAN (R 3.4.2)
glue 1.2.0 2017-10-29 CRAN (R 3.4.2)
Gmedian 1.2.4 2017-09-15 CRAN (R 3.4.1)
GPArotation 2014.11-1 2014-11-25 CRAN (R 3.4.0)
graphics * 3.4.4 2018-03-15 local
grDevices * 3.4.4 2018-03-15 local
grid 3.4.4 2018-03-15 local
gridExtra 2.3 2017-09-09 CRAN (R 3.4.1)
gtable 0.2.0 2016-02-26 CRAN (R 3.4.0)
haven 1.1.1 2018-01-18 CRAN (R 3.4.3)
hms 0.4.2 2018-03-10 CRAN (R 3.4.3)
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.0)
htmlwidgets 1.2 2018-04-19 CRAN (R 3.4.4)
httpuv 1.4.1.9000 2018-05-01 Github (rstudio/httpuv@8a28cdb)
httr 1.3.1 2017-08-20 CRAN (R 3.4.1)
igraph 1.2.1 2018-03-10 CRAN (R 3.4.4)
import 1.1.0 2015-06-22 CRAN (R 3.4.0)
influenceR 0.1.0 2015-09-03 CRAN (R 3.4.0)
jsonlite 1.5 2017-06-01 CRAN (R 3.4.0)
knitr 1.20 2018-02-20 cran (@1.20)
later 0.7.2 2018-05-01 Github (r-lib/later@207d4e0)
lattice 0.20-35 2017-03-25 CRAN (R 3.4.4)
lazyeval 0.2.1 2017-10-29 CRAN (R 3.4.2)
lubridate * 1.7.4 2018-04-11 CRAN (R 3.4.4)
magrittr * 1.5 2014-11-22 CRAN (R 3.4.0)
markdown 0.8 2017-04-20 CRAN (R 3.4.0)
MASS 7.3-49 2018-02-23 CRAN (R 3.4.4)
Matrix 1.2-14 2018-04-09 CRAN (R 3.4.4)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.0)
methods * 3.4.4 2018-03-15 local
mime 0.5 2016-07-07 CRAN (R 3.4.0)
mnormt 1.5-5 2016-10-15 CRAN (R 3.4.0)
munsell 0.4.3 2016-02-13 CRAN (R 3.4.0)
mvtnorm * 1.0-7 2018-01-25 CRAN (R 3.4.3)
NeuralNetTools 1.5.1 2018-02-05 CRAN (R 3.4.3)
nlme 3.1-137 2018-04-07 CRAN (R 3.4.4)
nnet 7.3-12 2016-02-02 CRAN (R 3.4.4)
openxlsx 4.0.17 2017-03-23 CRAN (R 3.4.0)
parallel 3.4.4 2018-03-15 local
pillar 1.2.1 2018-02-27 CRAN (R 3.4.3)
pkgconfig 2.0.1 2017-03-21 CRAN (R 3.4.0)
plotly * 4.7.1 2017-07-29 CRAN (R 3.4.1)
plyr 1.8.4 2016-06-08 CRAN (R 3.4.0)
polycor 0.7-9 2016-08-27 CRAN (R 3.4.0)
promises 1.0.1 2018-05-01 Github (rstudio/promises@afe9e8f)
psych 1.8.3.3 2018-03-30 cran (@1.8.3.3)
purrr 0.2.4 2017-10-18 CRAN (R 3.4.2)
R6 2.2.2 2017-06-17 CRAN (R 3.4.0)
radiant * 0.9.3.1 2018-05-01 local
radiant.basics * 0.9.3.1 2018-05-01 Github (radiant-rstats/radiant.basics@2618193)
radiant.data * 0.9.3.2 2018-05-01 local
radiant.design * 0.9.3.1 2018-05-01 Github (radiant-rstats/radiant.design@4830956)
radiant.model * 0.9.3.1 2018-05-01 Github (radiant-rstats/radiant.model@eb5ffea)
radiant.multivariate * 0.9.3.1 2018-05-01 Github (radiant-rstats/radiant.multivariate@cb1f49d)
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.4.0)
Rcpp 0.12.16 2018-03-13 cran (@0.12.16)
readr 1.1.1 2017-05-16 CRAN (R 3.4.0)
readxl 1.1.0 2018-04-20 CRAN (R 3.4.4)
reshape2 1.4.3 2017-12-11 CRAN (R 3.4.3)
rgexf 0.15.3 2015-03-24 CRAN (R 3.4.0)
rio 0.5.10 2018-03-29 CRAN (R 3.4.4)
rlang 0.2.0 2018-02-20 CRAN (R 3.4.3)
rmarkdown 1.9 2018-03-01 cran (@1.9)
robustbase 0.92-8 2017-11-01 CRAN (R 3.4.2)
Rook 1.1-1 2014-10-20 CRAN (R 3.4.0)
rpart 4.1-13 2018-02-23 CRAN (R 3.4.4)
rprojroot 1.3-2 2018-01-03 cran (@1.3-2)
rsconnect 0.8.8 2018-03-09 CRAN (R 3.4.4)
RSpectra 0.12-0 2016-06-12 CRAN (R 3.4.0)
RSQLite 2.0 2017-06-19 CRAN (R 3.4.1)
rstudioapi 0.7.0-9000 2018-05-01 Github (rstudio/rstudioapi@da62333)
sandwich 2.4-0 2017-07-26 CRAN (R 3.4.1)
scales 0.5.0 2017-08-24 CRAN (R 3.4.1)
shiny * 1.0.5.9000 2018-05-01 Github (rstudio/shiny@01b24e9)
shinyAce 0.3.0.1 2018-05-01 Github (trestletech/shinyAce@71e48de)
stats * 3.4.4 2018-03-15 local
stringi 1.1.7 2018-03-12 CRAN (R 3.4.4)
stringr 1.3.0 2018-02-19 cran (@1.3.0)
tibble 1.4.2 2018-01-22 CRAN (R 3.4.3)
tidyr * 0.8.0 2018-01-29 cran (@0.8.0)
tools 3.4.4 2018-03-15 local
utils * 3.4.4 2018-03-15 local
viridis 0.5.1 2018-03-29 CRAN (R 3.4.4)
viridisLite 0.3.0 2018-04-23 Github (sjmgarnier/viridisLite@91199d1)
visNetwork 2.0.3 2018-01-09 cran (@2.0.3)
withr 2.1.2 2018-04-23 Github (jimhester/withr@79d7b0d)
XML 3.98-1.11 2018-04-16 CRAN (R 3.4.4)
xtable 1.8-2 2016-02-05 CRAN (R 3.4.0)
yaml 2.1.18 2018-03-08 CRAN (R 3.4.4)
zoo 1.8-1 2018-01-08 CRAN (R 3.4.3) |
Another data point: I haven't been able to reproduce this error.
|
Doesn't happen every time and get a slightly different message on my other Mac: > radiant:::radiant_window()
Starting radiant in an Rstudio window ...
Use radiant::radiant() to open radiant in the default browser or radiant::radiant_viewer() in Rstudio to open radiant in the Rstudio viewer
Listening on http://127.0.0.1:5556
Error in execCallbacks(timeoutSecs) : c++ exception (unknown reason)
Stopped Radiant
> traceback()
20: stop(e)
19: h(simpleError(msg, call))
18: .handleSimpleError(function (e)
{
if (is.null(attr(e, "stack.trace", exact = TRUE))) {
calls <- sys.calls()
parents <- sys.parents()
attr(calls, "parents") <- parents
attr(e, "stack.trace") <- calls
}
if (deepStacksEnabled()) {
if (is.null(attr(e, "deep.stack.trace", exact = TRUE)) &&
!is.null(.globals$deepStack)) {
attr(e, "deep.stack.trace") <- .globals$deepStack
}
}
stop(e)
}, "c++ exception (unknown reason)", quote(execCallbacks(timeoutSecs)))
17: stop("c++ exception (unknown reason)")
16: .Call("_later_execCallbacks", PACKAGE = "later", timeoutSecs)
15: execCallbacks(timeoutSecs)
14: run_now(timeoutMs/1000)
13: service(timeout)
12: serviceApp()
11: ..stacktracefloor..(serviceApp())
10: withCallingHandlers(expr, error = doCaptureStack)
9: globals$domain$wrapSync(expr)
8: promises::with_promise_domain(createStackTracePromiseDomain(),
expr)
7: captureStackTraces({
while (!.globals$stopped) {
..stacktracefloor..(serviceApp())
Sys.sleep(0.001)
}
})
6: ..stacktraceoff..(captureStackTraces({
while (!.globals$stopped) {
..stacktracefloor..(serviceApp())
Sys.sleep(0.001)
}
}))
5: shiny::runApp(system.file("app", package = package), launch.browser = run) at radiant.R#62
4: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
3: suppressPackageStartupMessages(shiny::runApp(system.file("app",
package = package), launch.browser = run)) at radiant.R#62
2: radiant.data::launch(package = "radiant", run = "window")
1: radiant:::radiant_window()
> > devtools::session_info()
Session info -------------------------------------------------------------------------------------------
setting value
version R version 3.4.4 (2018-03-15)
system x86_64, darwin15.6.0
ui RStudio (1.1.447)
language (EN)
collate en_US.UTF-8
tz America/Los_Angeles
date 2018-05-01
Packages -----------------------------------------------------------------------------------------------
package * version date source
abind 1.4-5 2016-07-21 CRAN (R 3.4.0)
AlgDesign 1.1-7.3 2014-10-15 CRAN (R 3.4.0)
assertthat 0.2.0 2017-04-11 CRAN (R 3.4.0)
backports 1.1.2 2017-12-13 CRAN (R 3.4.3)
base * 3.4.4 2018-03-15 local
base64enc 0.1-3 2015-07-28 CRAN (R 3.4.0)
bindr 0.1.1 2018-03-13 CRAN (R 3.4.4)
bindrcpp * 0.2.2 2018-03-29 CRAN (R 3.4.4)
bit 1.1-12 2014-04-09 CRAN (R 3.4.0)
bit64 0.9-7 2017-05-08 CRAN (R 3.4.0)
blob 1.1.0 2017-06-17 CRAN (R 3.4.0)
brew 1.0-6 2011-04-13 CRAN (R 3.4.0)
broom 0.4.4 2018-03-29 CRAN (R 3.4.4)
car 3.0-0 2018-04-02 CRAN (R 3.4.4)
carData 3.0-1 2018-03-28 CRAN (R 3.4.4)
cellranger 1.1.0 2016-07-27 CRAN (R 3.4.0)
class 7.3-14 2015-08-30 CRAN (R 3.4.4)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.0)
compiler 3.4.4 2018-03-15 local
crosstalk 1.0.0 2016-12-21 CRAN (R 3.4.0)
curl 3.2 2018-03-28 CRAN (R 3.4.4)
data.table 1.10.4-3 2017-10-27 CRAN (R 3.4.2)
data.tree 0.7.5 2018-03-06 CRAN (R 3.4.4)
datasets * 3.4.4 2018-03-15 local
DBI 0.7 2017-06-18 CRAN (R 3.4.0)
DEoptimR 1.0-8 2016-11-19 CRAN (R 3.4.0)
devtools 1.13.5 2018-02-18 CRAN (R 3.4.3)
DiagrammeR 1.0.0 2018-03-01 CRAN (R 3.4.3)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
downloader 0.4 2015-07-09 CRAN (R 3.4.0)
dplyr * 0.7.4 2017-09-28 CRAN (R 3.4.2)
DT 0.4 2018-01-30 cran (@0.4)
e1071 1.6-8 2017-02-02 CRAN (R 3.4.0)
evaluate 0.10.1 2017-06-24 CRAN (R 3.4.1)
feather 0.3.1 2016-11-09 CRAN (R 3.3.2)
forcats 0.3.0 2018-02-19 CRAN (R 3.4.3)
foreign 0.8-69 2017-06-22 CRAN (R 3.4.4)
ggplot2 * 2.2.1 2016-12-30 CRAN (R 3.4.0)
ggrepel 0.7.0 2017-09-29 cran (@0.7.0)
glue 1.2.0 2017-10-29 CRAN (R 3.4.2)
Gmedian 1.2.4 2017-09-15 CRAN (R 3.4.1)
GPArotation 2014.11-1 2014-11-25 CRAN (R 3.4.0)
graphics * 3.4.4 2018-03-15 local
grDevices * 3.4.4 2018-03-15 local
grid 3.4.4 2018-03-15 local
gridExtra 2.3 2017-09-09 CRAN (R 3.4.1)
gtable 0.2.0 2016-02-26 CRAN (R 3.4.0)
haven 1.1.1 2018-01-18 CRAN (R 3.4.3)
hms 0.4.2 2018-03-10 CRAN (R 3.4.4)
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.0)
htmlwidgets 1.2 2018-04-19 CRAN (R 3.4.4)
httpuv 1.4.1.9000 2018-05-02 Github (rstudio/httpuv@8a28cdb)
httr 1.3.1 2017-08-20 CRAN (R 3.4.1)
igraph 1.2.1 2018-03-10 CRAN (R 3.4.4)
import 1.1.0 2015-06-22 CRAN (R 3.4.0)
influenceR 0.1.0 2015-09-03 CRAN (R 3.4.0)
jsonlite 1.5 2017-06-01 CRAN (R 3.4.0)
knitr 1.20 2018-02-20 CRAN (R 3.4.3)
later 0.7.2 2018-05-02 Github (r-lib/later@207d4e0)
lattice 0.20-35 2017-03-25 CRAN (R 3.4.4)
lazyeval 0.2.1 2017-10-29 CRAN (R 3.4.2)
lubridate * 1.7.4 2018-04-11 CRAN (R 3.4.4)
magrittr * 1.5 2014-11-22 CRAN (R 3.4.0)
markdown 0.8 2017-04-20 CRAN (R 3.4.0)
MASS 7.3-49 2018-02-23 CRAN (R 3.4.4)
Matrix 1.2-14 2018-04-09 CRAN (R 3.4.4)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.0)
methods * 3.4.4 2018-03-15 local
mime 0.5 2016-07-07 CRAN (R 3.4.0)
mnormt 1.5-5 2016-10-15 CRAN (R 3.4.0)
munsell 0.4.3 2016-02-13 CRAN (R 3.4.0)
mvtnorm * 1.0-7 2018-01-25 CRAN (R 3.4.3)
NeuralNetTools 1.5.1 2018-02-05 CRAN (R 3.4.3)
nlme 3.1-137 2018-04-07 CRAN (R 3.4.4)
nnet 7.3-12 2016-02-02 CRAN (R 3.4.4)
openxlsx 4.0.17 2017-03-23 CRAN (R 3.4.0)
parallel 3.4.4 2018-03-15 local
pillar 1.2.1 2018-02-27 CRAN (R 3.4.3)
pkgconfig 2.0.1 2017-03-21 CRAN (R 3.4.0)
plotly * 4.7.1 2017-07-29 CRAN (R 3.4.1)
plyr 1.8.4 2016-06-08 CRAN (R 3.4.0)
polycor 0.7-9 2016-08-27 CRAN (R 3.4.0)
promises 1.0.1 2018-04-13 CRAN (R 3.4.4)
psych 1.8.3.3 2018-03-30 CRAN (R 3.4.4)
purrr 0.2.4 2017-10-18 CRAN (R 3.4.2)
R6 2.2.2 2017-06-17 CRAN (R 3.4.0)
radiant * 0.9.3.1 2018-04-28 local
radiant.basics * 0.9.3.1 2018-04-28 local
radiant.data * 0.9.3.2 2018-05-02 local
radiant.design * 0.9.3.1 2018-04-28 local
radiant.model * 0.9.3.1 2018-04-28 local
radiant.multivariate * 0.9.3.1 2018-04-28 local
RColorBrewer 1.1-2 2014-12-07 CRAN (R 3.4.0)
Rcpp 0.12.16 2018-03-13 CRAN (R 3.4.4)
readr 1.1.1 2017-05-16 CRAN (R 3.4.0)
readxl 1.1.0 2018-04-20 CRAN (R 3.4.4)
reshape2 1.4.3 2017-12-11 CRAN (R 3.4.3)
rgexf 0.15.3 2015-03-24 CRAN (R 3.4.0)
rio 0.5.10 2018-03-29 CRAN (R 3.4.4)
rlang 0.2.0 2018-02-20 CRAN (R 3.4.3)
rmarkdown 1.9 2018-03-01 CRAN (R 3.4.3)
robustbase 0.92-8 2017-11-01 CRAN (R 3.4.2)
Rook 1.1-1 2014-10-20 CRAN (R 3.4.0)
rpart 4.1-13 2018-02-23 CRAN (R 3.4.4)
rprojroot 1.3-2 2018-01-03 CRAN (R 3.4.3)
RSpectra 0.12-0 2016-06-12 CRAN (R 3.4.0)
RSQLite 2.0 2017-06-19 CRAN (R 3.4.1)
rstudioapi 0.7.0-9001 2018-01-08 local
sandwich 2.4-0 2017-07-26 CRAN (R 3.4.1)
scales 0.5.0 2017-08-24 CRAN (R 3.4.1)
shiny * 1.0.5.9000 2018-05-02 Github (rstudio/shiny@9c3a0c8)
shinyAce 0.3.0.1 2018-04-07 local
stats * 3.4.4 2018-03-15 local
stringi 1.1.7 2018-03-12 CRAN (R 3.4.4)
stringr 1.3.0 2018-02-19 CRAN (R 3.4.3)
tibble 1.4.2 2018-01-22 CRAN (R 3.4.3)
tidyr * 0.8.0 2018-01-29 cran (@0.8.0)
tools 3.4.4 2018-03-15 local
utils * 3.4.4 2018-03-15 local
viridis 0.5.1 2018-03-29 CRAN (R 3.4.4)
viridisLite 0.3.0 2018-02-01 CRAN (R 3.4.3)
visNetwork 2.0.3 2018-01-09 CRAN (R 3.4.3)
withr 2.1.2 2018-03-15 CRAN (R 3.4.4)
XML 3.98-1.11 2018-04-16 CRAN (R 3.4.4)
xtable 1.8-2 2016-02-05 CRAN (R 3.4.0)
yaml 2.1.18 2018-03-08 CRAN (R 3.4.4)
zoo 1.8-1 2018-01-08 CRAN (R 3.4.3) |
Just tried closing the window before the Rstudio Window has fully loaded the app. R(studio) segfaults on both my Macs |
I was able to reproduce this occasionally in RStudio, and after several tries, once in the console. Note that after closing the window, I had to press Ctrl-C before it segfaulted.
|
After many tries, I was able to get the error to happen when running R under lldb. The problem appears to be in httpuv:
|
After several more tries, I was also able to get this error:
|
@vnijs We have a potential fix for segfault issue. Can you try installing this version of httpuv? devtools::install_github('rstudio/httpuv@fix-httprequest-close') |
I've had this happen a few times when running a shiny app on my laptop with the latest version of shiny from GitHub. After sitting idle for a while it timesout. I can see that happening on a server but when running locally? Traceback reported below:
The text was updated successfully, but these errors were encountered: