@Filipe yes, the data.table package is part of my environment...

sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] org.Hs.eg.db_3.4.1 AnnotationDbi_1.38.2 IRanges_2.10.5 S4Vectors_0.14.7 Biobase_2.36.2
[6] BiocGenerics_0.22.1 readr_1.1.1 biomaRt_2.32.1 sleuth_0.29.0 dplyr_0.7.4
[11] ggplot2_2.2.1

loaded via a namespace (and not attached):
[1] Rcpp_0.12.13 compiler_3.4.2 plyr_1.8.4 bindr_0.1 bitops_1.0-6
[6] tools_3.4.2 digest_0.6.12 bit_1.1-12 RSQLite_2.0 memoise_1.1.0
[11] tibble_1.3.4 gtable_0.2.0 pkgconfig_2.0.1 rlang_0.1.2 DBI_0.7
[16] yaml_2.1.14 bindrcpp_0.2 knitr_1.17 hms_0.3 bit64_0.9-7
[21] grid_3.4.2 glue_1.1.1 data.table_1.10.4-2 R6_2.2.2 XML_3.98-1.9
[26] blob_1.1.0 magrittr_1.5 scales_0.5.0 assertthat_0.2.0 colorspace_1.3-2
[31] RCurl_1.95-4.8 lazyeval_0.2.0 munsell_0.4.3

And no, as far as I can remember, it only always crashed after loading libraries...

@leiendeckerlu my suggestion is to try to remove the package completely, and try to install either version 1.10.4 or the new 1.10.5. I had the same problem and scaling back to 1.10.4 solved it for now. I'm still not sure from which side is the problem coming from, as data.table says it's RStudio's fault and RStudio says it's data.table's fault.
However those two versions seem to be more stable than the 1.10.4-1 and 1.10.4-2 where I always say the problem after loading the package.

@Filipe Will try that, thank you!
I just found this commit https://github.com/Rdatatable/data.table/commit/9d1f3e29d6daf44ecc571153b8b383858c5d9ed1 which might be part of what we're seeing.

I will let you know how it went

1 Like

Second'ing this. I'm using R 3.4.2, RStudio 1.1.383, and data.table 1.10.4-2 and RStudio crashes on me multiple times per day.

Use the following to update data.table to the development version. (Currently 1.10.5 which has a patch for the bug.)

remove.packages("data.table")
install.packages("data.table", type = "source", repos = "http://Rdatatable.github.io/data.table")

@neb did you ever end up solving the problem with the data.table package?
I'm currently working on a package so I didn't want to risk installing RStudio 1.1 or data.table 1.10.5.

Yes, installing the dev version of data.table solved it for me.

@Filipe same here. 1.10.5 solved it!

I'm having the same or similar error, but unrelated to the data.table package. I get this error without loading any package. Tried reinstalling RStudio (version 1.1.383) and R (3.4.2), did not help.

Here's the log output:

(TypeError) : undefined is not an object (evaluating 'this.a.a.r.row');|||org/rstudio/studio/client/workbench/views/source/editors/text/r/SignatureToolTipManager.java#134::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#167::runScheduledTasks|||com/google/gwt/core/client/impl/SchedulerImpl.java#338::flushPostEventPumpCommands|||com/google/gwt/core/client/impl/SchedulerImpl.java#76::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#140::execute|||com/google/gwt/core/client/impl/Impl.java#244::apply|||com/google/gwt/core/client/impl/Impl.java#283::entry0|||http://127.0.0.1:46289/#-1::anonymous|||com/google/gwt/cell/client/AbstractEditableCell.java#41::viewDataMap|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_12_6) AppleWebKit/604.3.5 (KHTML, like Gecko)

And sessionInfo():

R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.2 tools_3.4.2 yaml_2.1.14

@ouzor When does it really happen? Is it random, or after running a certain script? I'm asking because I thought as well to be random, to then find that it was being caused by data.table. I wasn't even aware the package was being loaded, until I started excluding packages one by one.

I've been trying to identify this, but the behaviour is very strange. Sometimes it happens when reading stuff with readRDS or writing with saveRDS, sometimes when I just edit scripts and don't execute any code. But it does happen only with a specific project, so that hints that it might be related to some specific package... Very confusing and annoying :confused:

@ouzor I would strongly recommend to remove the data.table package. It might be that it has been installed by another package or so, and that is what's causing this problem.
The readRDS and saveRDS shouldn't be a problem as it's part of the base packages.

1 Like

Hi @Felipe, thanks a lot for the tip! I wasn't aware having installed data.table (it was installed by qgraph apparently), and indeed removing the package, or installing the latest version from CRAN (1.10.4-3) seems to have fixed the problem!

1 Like

I started encountering a similar problem in October and it hasn't died down since. I have updated R and RStudio, I have removed data.table and updated all other packages, but I keep getting confronted with this error every few seconds:

RStudio can do this anytime I executive code, browse my files or type code (because it will throw this error looking for completion suggestions). If I try the action a second time after the error, usually it will go through.

Error from logs:

20 Nov 2017 12:10:19 [rsession-mennoschellekens] CLIENT EXCEPTION (rsession-mennoschellekens): (TypeError) : undefined is not an object (evaluating 'this.a.a.r.row');|||org/rstudio/studio/client/workbench/views/source/editors/text/r/SignatureToolTipManager.java#134::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#167::runScheduledTasks|||com/google/gwt/core/client/impl/SchedulerImpl.java#338::flushPostEventPumpCommands|||com/google/gwt/core/client/impl/SchedulerImpl.java#76::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#140::execute|||com/google/gwt/core/client/impl/Impl.java#244::apply|||com/google/gwt/core/client/impl/Impl.java#283::entry0|||http://127.0.0.1:43039/#-1::anonymous|||com/google/gwt/cell/client/AbstractEditableCell.java#41::viewDataMap|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh  Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko)
20 Nov 2017 12:10:20 [rsession-mennoschellekens] CLIENT EXCEPTION (rsession-mennoschellekens): (TypeError) : undefined is not an object (evaluating 'this.a.a.r.row');|||org/rstudio/studio/client/workbench/views/source/editors/text/r/SignatureToolTipManager.java#134::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#167::runScheduledTasks|||com/google/gwt/core/client/impl/SchedulerImpl.java#338::flushPostEventPumpCommands|||com/google/gwt/core/client/impl/SchedulerImpl.java#76::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#140::execute|||com/google/gwt/core/client/impl/Impl.java#244::apply|||com/google/gwt/core/client/impl/Impl.java#283::entry0|||http://127.0.0.1:43039/#-1::anonymous|||com/google/gwt/cell/client/AbstractEditableCell.java#41::viewDataMap|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh  Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko)

Thank you!

@mhschel I would start a new post for this issue, as this is not the same error I posted initially. However it seems to be related to shiny or GitHub. Do you have any of those 2?

Thank you for your reply! I will start a new issue. I removed Shiny and git2r (I don't have a GitHub package), but the error returns. What made you think it was related to those packages? Understanding your method might help me fix this dastardly problem. :slight_smile:

@mhschel please post the link to the new post as soon as you create one, so I can help there. It's just a way of keeping info tidy.

1 Like

@Filipe

Thank you.

I have exactly the same problem as @Filipe. While working only on one specific package almost every time I save a file in it, Rstudio crashes with "Unable to establish connection".
I've added logs here - https://support.rstudio.com/hc/en-us/community/posts/115008249987-RStudio-constantly-crashes-but-only-while-working-on-one-package?page=1#community_comment_115005532047
I have following data.table version:

packageVersion("data.table")
[1] ‘1.10.4.2’

I'll try to update it and see how it goes.

@mishabalyasin did removing or updating data.table solve your problem? I would update it not from the CRAN version but from the GitHub developer version.
I'm not sure if the patched version was already released on CRAN.

1 Like

Looks like it. I've updated data.table and at least yesterday and today I have had 0 issues. I still have flashbacks every time I hit Ctrl+S though :slight_smile:.

1 Like