100% CPU expected?
vspinu opened this issue · 2 comments
vspinu commented
With the basic example
ws <- WebSocket$new("ws://echo.websocket.org/")
R takes 100% CPU. Is this expected?
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R Under development (unstable) (2018-09-12 r75294)
os Ubuntu 18.04.1 LTS
system x86_64, linux-gnu
ui X11
language
collate en_GB.UTF-8
ctype en_GB.UTF-8
tz Europe/Amsterdam
date 2018-10-26
─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────
package * version date lib source
assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.0)
backports 1.1.2 2017-12-13 [1] CRAN (R 3.5.0)
base64enc 0.1-3 2015-07-28 [1] CRAN (R 3.5.0)
callr 3.0.0.9001 2018-10-23 [1] Github (r-lib/callr@d0ea2b6)
cli 1.0.1 2018-09-25 [1] CRAN (R 3.6.0)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.0)
debugme 1.1.0 2017-10-22 [1] CRAN (R 3.5.0)
desc 1.2.0 2018-05-01 [1] CRAN (R 3.6.0)
devtools 1.13.6.9000 2018-10-23 [1] Github (r-lib/devtools@d08ab92)
digest 0.6.18 2018-10-10 [1] CRAN (R 3.6.0)
fs 1.2.6 2018-08-23 [1] CRAN (R 3.6.0)
glue 1.3.0 2018-07-17 [1] CRAN (R 3.6.0)
later 0.7.5 2018-09-18 [1] CRAN (R 3.6.0)
magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.0)
memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.0)
pkgbuild 1.0.2.9000 2018-10-23 [1] Github (r-lib/pkgbuild@aec4654)
pkgload 1.0.1.9000 2018-10-23 [1] Github (r-lib/pkgload@9b8d9c4)
prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.0)
processx 3.2.0 2018-08-16 [1] CRAN (R 3.6.0)
ps 1.2.0 2018-10-16 [1] CRAN (R 3.6.0)
R6 2.3.0 2018-10-04 [1] CRAN (R 3.6.0)
Rcpp 0.12.19 2018-10-01 [1] CRAN (R 3.6.0)
remotes 2.0.0.9000 2018-10-23 [1] Github (r-lib/remotes@2729d0e)
rlang 0.3.0.9000 2018-10-24 [1] Github (r-lib/rlang@d1f0efe)
rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.0)
sessioninfo 1.1.0 2018-09-25 [1] CRAN (R 3.6.0)
testthat 2.0.0 2017-12-13 [1] CRAN (R 3.5.0)
usethis 1.4.0 2018-08-14 [1] CRAN (R 3.6.0)
websocket * 0.0.0.9001 2018-10-24 [1] Github (rstudio/websocket@ef78ced)
withr 2.1.2.9000 2018-10-23 [1] Github (jimhester/withr@be57595)
[1] /home/vspinu/.lib/3.6.0
[2] /home/vspinu/bin/R-latest/library
wch commented
I'm able to reproduce on my Mac. It is definitely not expected. We'll take a look into it.
jcheng5 commented
Thanks for the report! I have prepared a PR on the later package that should fix it.
r-lib/later#76