Open vnijs opened 6 years ago
Hi @vnijs, are you still seeing this? If so, can you try updating later
to the latest CRAN version, if you haven't already?
Oh, and httpuv
from GitHub master as well. Thanks.
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 later
but will install just in case. If I see it again I'll let you know @jcheng5
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 https://github.com/rstudio/shiny/issues/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 _c
, _m
, and ts
here.
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 install_github("r-lib/later")
? That'll at least print the error code next time. Thanks.
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.
pthread_cond_timedwait returned 22
Error in execCallbacks(timeoutSecs) :
Condition variable failed to timedwait
Stopped Radiant
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)
Same return value (22) but (slightly) different messages in Rstudio Window JS console
pthread_cond_timedwait returned 22
Error in execCallbacks(timeoutSecs) :
Condition variable failed to timedwait
Stopped Radiant
@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 actionLink
at some point before (see screen shot below) or if you loaded a state file (e.g., download example and load through Data > Manage with Load data of type
set to radiant state file
). It certainly doesn't happen right away but maybe if you let it sit a while.
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
clang-4.0: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
@vnijs The fix for later has been merged into master.
As for the -pthread
issue, that is a harmless one. More info at r-lib/later#11.
Excellent! Thanks @jcheng5 and @wch
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 run_now
is listed in the traceback. This is with the latest later
from GitHub. See below.
On macOS, (almost) every time I use radiant::radiant_window()
and then close the Rstudio Window I see the execCallbacks(timeoutSecs)
error below. Doesn't seem to happen on Windows.
Install using:
install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/")
> 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.
> 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:5876
Warning message:
replacing previous import ‘dplyr::vars’ by ‘ggplot2::vars’ when loading ‘radiant.data’
Stopped Radiant
> 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:5876
Stopped Radiant
> sessioninfo::session_info()
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.4.4 (2018-03-15)
os macOS High Sierra 10.13.4
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_US.UTF-8
tz America/Chicago
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)
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)
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)
clisymbols 1.2.0 2017-05-21 CRAN (R 3.4.0)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.0)
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)
DEoptimR 1.0-8 2016-11-19 CRAN (R 3.4.0)
DiagrammeR 1.0.0 2018-03-01 CRAN (R 3.4.3)
digest 0.6.15 2018-01-28 cran (@0.6.15)
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.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.9000 2018-04-12 Github (tidyverse/ggplot2@3c9c504)
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)
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-01 local
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-01 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)
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)
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-05-01 local
radiant.basics * 0.9.3.1 2018-04-28 local
radiant.data * 0.9.3.1 2018-04-28 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 (@0.12.16)
readr 1.1.1 2017-05-16 CRAN (R 3.4.0)
readxl 1.0.0 2017-04-18 CRAN (R 3.4.0)
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.9001 2018-04-24 Github (r-lib/rlang@82b2727)
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)
rsconnect 0.8.8 2018-03-09 CRAN (R 3.4.4)
RSpectra 0.12-0 2016-06-12 CRAN (R 3.4.0)
rstudioapi 0.7 2017-09-07 CRAN (R 3.4.1)
sandwich 2.4-0 2017-07-26 CRAN (R 3.4.1)
scales 0.5.0.9000 2018-04-12 Github (hadley/scales@d767915)
sessioninfo 1.0.0 2017-06-21 CRAN (R 3.4.1)
shiny * 1.1.0 2018-04-26 Github (rstudio/shiny@1ce996b)
shinyAce 0.3.0.1 2018-04-07 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 (R 3.4.3)
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)
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.
$ R -e "radiant:::radiant_window()"
> radiant:::radiant_window()
Starting radiant in the default browser ...
Use radiant::radiant_viewer() in Rstudio to open radiant in the Rstudio viewer
or radiant::radiant_window() in Rstudio to open radiant in an Rstudio window
Listening on http://127.0.0.1:6411
^C
*** caught segfault ***
address 0x8, cause 'memory not mapped'
Warning: stack imbalance in '.Call', 93 then 92
Warning: stack imbalance in '{', 89 then 88
Warning: stack imbalance in 'invisible', 86 then 85
Warning: stack imbalance in '{', 82 then 81
Warning: stack imbalance in '{', 76 then 75
Warning: stack imbalance in 'if', 74 then 73
Warning: stack imbalance in 'if', 72 then 71
Warning: stack imbalance in '{', 68 then 67
Warning: stack imbalance in '{', 62 then 61
Warning: stack imbalance in '{', 53 then 52
^C
Warning message:
replacing previous import ‘dplyr::vars’ by ‘ggplot2::vars’ when loading ‘radiant.data’
Stopped Radiant
Execution halted
*** caught segfault ***
address 0x0, cause 'unknown'
An irrecoverable exception occurred. R is aborting now ...
After many tries, I was able to get the error to happen when running R under lldb. The problem appears to be in httpuv:
* thread #2, stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x00000001092d796c httpuv.so`WebSocketConnection::markClosed(this=0x0000000000000000) at websockets.cpp:317
314
315 void WebSocketConnection::markClosed() {
316 ASSERT_BACKGROUND_THREAD()
-> 317 _connState = WS_CLOSED;
318 }
319
320 void WebSocketConnection::onHeaderComplete(const WSFrameHeaderInfo& header) {
(lldb) bt
* thread #2, stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
* frame #0: 0x00000001092d796c httpuv.so`WebSocketConnection::markClosed(this=0x0000000000000000) at websockets.cpp:317
frame #1: 0x000000010928c8ac httpuv.so`HttpRequest::_on_closed(this=0x0000000105e0f380, handle=0x0000000000000000) at httprequest.cpp:590
frame #2: 0x0000000109285b22 httpuv.so`HttpRequest::close(this=0x0000000105e0f380) at httprequest.cpp:604
frame #3: 0x0000000109291c2a httpuv.so`void boost::_mfi::mf0<void, HttpRequest>::call<boost::shared_ptr<HttpRequest> >(this=0x00000001009e85c0, u=0x00000001009e85d0, (null)=0x0000000000000000) const at mem_fn_template.hpp:40
frame #4: 0x0000000109291b7c httpuv.so`void boost::_mfi::mf0<void, HttpRequest>::operator(this=0x00000001009e85c0, u=0x00000001009e85d0)<boost::shared_ptr<HttpRequest> >(boost::shared_ptr<HttpRequest>&) const at mem_fn_template.hpp:55
frame #5: 0x0000000109291b20 httpuv.so`void boost::_bi::list1<boost::_bi::value<boost::shared_ptr<HttpRequest> > >::operator(this=0x00000001009e85d0, (null)=type<void> @ 0x0000700000945648, f=0x00000001009e85c0, a=0x0000700000945670, (null)=0)<boost::_mfi::mf0<void, HttpRequest>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, HttpRequest>&, boost::_bi::list0&, int) at bind.hpp:259
frame #6: 0x0000000109291aca httpuv.so`boost::_bi::bind_t<void, boost::_mfi::mf0<void, HttpRequest>, boost::_bi::list1<boost::_bi::value<boost::shared_ptr<HttpRequest> > > >::operator(this=0x00000001009e85c0)() at bind.hpp:1294
frame #7: 0x0000000109291800 httpuv.so`boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, HttpRequest>, boost::_bi::list1<boost::_bi::value<boost::shared_ptr<HttpRequest> > > >, void>::invoke(function_obj_ptr=0x0000700000945750) at function_template.hpp:159
frame #8: 0x0000000109275368 httpuv.so`boost::function0<void>::operator(this=0x0000700000945748)() const at function_template.hpp:759
frame #9: 0x00000001092765d9 httpuv.so`CallbackQueue::flush(this=0x00000001009b8a70) at callbackqueue.cpp:47
frame #10: 0x00000001092764b0 httpuv.so`flush_callback_queue(handle=0x00000001009b8a70) at callbackqueue.cpp:12
frame #11: 0x00000001092e1292 httpuv.so`uv__async_io(loop=0x0000000109322858, w=0x0000000109322ac8, events=1) at async.c:118
frame #12: 0x00000001092fed9c httpuv.so`uv__io_poll(loop=0x0000000109322858, timeout=-1) at kqueue.c:343
frame #13: 0x00000001092e196f httpuv.so`uv_run(loop=0x0000000109322858, mode=UV_RUN_DEFAULT) at core.c:368
frame #14: 0x00000001092a34cf httpuv.so`io_thread(data=0x00007ffeefbf4100) at httpuv.cpp:112
frame #15: 0x00007fff5c350661 libsystem_pthread.dylib`_pthread_body + 340
frame #16: 0x00007fff5c35050d libsystem_pthread.dylib`_pthread_start + 377
frame #17: 0x00007fff5c34fbf9 libsystem_pthread.dylib`thread_start + 13
After several more tries, I was also able to get this error:
Error in execCallbacks(timeoutSecs) : c++ exception (unknown reason)
Calls: <Anonymous> ... serviceApp -> service -> run_now -> execCallbacks -> .Call
@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: