dbWriteTable only writes 1 row of data.frame to MySQL Table - mysql

Starting in mid-March, dbWriteTable stopped working properly and now only write the first row of the data.frame into the MySQL table. After this occurred, I updated MySQL, MySQL Workbench, RStudio, R and all my R packages to latest versions, but no improvement. Originally, I thought it occurred only when appending to database tables, but it also occurs when writing to newly created tables.
It does not produce an error message and dbWriteTable returns TRUE as if it was successful, but only one row had been written to the MySQL table.
Session info
devtools::session_info()
- Session info --------------------------------------------------------------------------
setting value
version R version 3.6.3 (2020-02-29)
os Windows 10 x64
system x86_64, mingw32
ui RStudio
language (EN)
collate English_United States.1252
ctype English_United States.1252
tz America/Los_Angeles
date 2020-04-14
- Packages -------------------------------------------------------------------------
package * version date source
- assertthat 0.2.1 2019-03-21 CRAN (R 3.6.0)
- backports 1.1.6 2020-04-05 CRAN (R 3.6.3)
- bit 1.1-15.2 2020-02-10 CRAN (R 3.6.2)
- bit64 0.9-7 2017-05-08 CRAN (R 3.6.2)
- blob 1.2.1 2020-01-20 CRAN (R 3.6.3)
- callr 3.4.3 2020-03-28 CRAN (R 3.6.3)
- cli 2.0.2 2020-02-28 CRAN (R 3.6.3)
- crayon 1.3.4 2017-09-16 CRAN (R 3.5.0)
- DBI * 1.1.0 2019-12-15 CRAN (R 3.6.3)
- desc 1.2.0 2018-05-01 CRAN (R 3.5.0)
- devtools 2.3.0 2020-04-10 CRAN (R 3.6.3)
- digest 0.6.25 2020-02-23 CRAN (R 3.6.3)
- ellipsis 0.3.0 2019-09-20 CRAN (R 3.6.2)
- fansi 0.4.1 2020-01-08 CRAN (R 3.6.2)
- fs 1.4.1 2020-04-04 CRAN (R 3.6.3)
- glue 1.4.0 2020-04-03 CRAN (R 3.6.3)
- hms 0.5.3 2020-01-08 CRAN (R 3.6.2)
- magrittr 1.5 2014-11-22 CRAN (R 3.5.0)
- memoise 1.1.0 2017-04-21 CRAN (R 3.5.0)
- odbc * 1.2.2 2020-01-10 CRAN (R 3.6.3)
- pkgbuild 1.0.6 2019-10-09 CRAN (R 3.6.2)
- pkgconfig 2.0.3 2019-09-22 CRAN (R 3.6.2)
- pkgload 1.0.2 2018-10-29 CRAN (R 3.5.1)
- prettyunits 1.1.1 2020-01-24 CRAN (R 3.6.2)
- processx 3.4.2 2020-02-09 CRAN (R 3.6.2)
- ps 1.3.2 2020-02-13 CRAN (R 3.6.2)
- R6 2.4.1 2019-11-12 CRAN (R 3.6.2)
- Rcpp 1.0.4.6 2020-04-09 CRAN (R 3.6.3)
- remotes 2.1.1 2020-02-15 CRAN (R 3.6.2)
- rlang 0.4.5 2020-03-01 CRAN (R 3.6.3)
- rprojroot 1.3-2 2018-01-03 CRAN (R 3.5.0)
- rstudioapi 0.11 2020-02-07 CRAN (R 3.6.2)
- sessioninfo 1.1.1 2018-11-05 CRAN (R 3.5.1)
- testthat 2.3.2 2020-03-02 CRAN (R 3.6.3)
- usethis 1.6.0 2020-04-09 CRAN (R 3.6.3)
- vctrs 0.2.4 2020-03-10 CRAN (R 3.6.3)
- withr 2.1.2 2018-03-15 CRAN (R 3.5.0)
[1] D:/R_HOME/library
[2] D:/R_HOME/R-3.6.3/library
Reproducible Code
library(DBI)
#Connect to MySQL database
con <- dbConnect(odbc::odbc(),
dsn =mydsn,
database = mydatabase,
uid=myId,
pwd= myPassword)
dbListTables(con)
x <- dbWriteTable(con, "mtcars", mtcars, temporary = FALSE)
dbReadTable(con, "mtcars")
x2 <- dbWriteTable(con, "mtcars", mtcars[2:3, ], append=TRUE, temporary = FALSE)
dbReadTable(con, "mtcars")
dbListTables(con)
dbExistsTable(con, "mtcars")
dbDisconnect(con)
After
x <- dbWriteTable(con, "mtcars", mtcars, temporary = FALSE)
x = TRUE
After the following
dbReadTable(con, "mtcars")
The output is:
row_names mpg cyl disp hp drat wt qsec vs am gear carb
1 Mazda RX4 21 6 160 110 3.9 2.62 16.46 0 1 4 4
After
x2 <- dbWriteTable(con, "mtcars", mtcars[2:3, ], append=TRUE, temporary = FALSE)
x2 = TRUE
After the following
dbReadTable(con, "mtcars")
The output is:
row_names mpg cyl disp hp drat wt qsec vs am gear carb
1 Mazda RX4 21 6 160 110 3.9 2.62 16.46 0 1 4 4
2 Mazda RX4 Wag 21 6 160 110 3.9 2.875 17.02 0 1 4 4
The problem appears so basic and I have uninstalled and reinstalled R, RStudio and DBI, odbc, as well as, any other package that I thought might depend on those, but I have had no success. All packages are up to date.
R version 3.6.3 (2020-02-29)
MySQL Workbench 8.0 version 8.0.19
MySQL Workbench 8.0 version 8.0.19 Build 15713499 CE (64 bits) Community
Windows 10 Pro 64-bit Version: 18362.720
Intel(R) Core(TM) i7-7700 CPU # 3.60GHz
System Memory 16GB
Any suggestions would be greatly appreciated.

#Brian Thank you very much for your suggestion. It took a while to get RMariaDB to communicate with MySQL without giving the caching_sha2_password error, but RMariaDB was finally able to connect and dbWriteTable was successfully able to write the full data.frames to MySQL. It appears the problem must be odbc.

The following is how I worked around the caching_sha2_password error.
First, I opened C:/~/MySQL/MySQL Server 8.0/my.ini in Notepad++.
Then I changed the following line:
from: default_authentication_plugin= caching_sha2_password
to: default_authentication_plugin= mysql_native_password
and saved it.
Then I ran:
CREATE USER 'newuser'#'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'newuser'#'localhost';
FLUSH PRIVILEGES;
SELECT * FROM mysql.user;
The results showed 'newuser'#'localhost' had all privileges.
I tested it and it was successful.

Related

How to enable fips openssl in mysql

I was following the below enable fips for mysql
https://dev.mysql.com/blog-archive/openssl-fips-support-in-mysql-8-0/
downloaded these two tars openssl-1.0.2t.tar.gz openssl-fips-2.0.16.tar.gz and tried to build it first into an exe
But running thru lot of issues
The build of FIPS is erroring for missing nmake.dll
mysql blog
C:\openssl\openssl-fips-2.0.16>rem #echo off
C:\openssl\openssl-fips-2.0.16>SET ASM=no--asm
C:\openssl\openssl-fips-2.0.16>SET EXARG=
C:\openssl\openssl-fips-2.0.16>SET MFILE=ntdll.mak
C:\openssl\openssl-fips-2.0.16>if NOT X == X goto wince
C:\openssl\openssl-fips-2.0.16>if NOT XAMD64 == X goto defined
C:\openssl\openssl-fips-2.0.16>if AMD64 == x86 goto X86
C:\openssl\openssl-fips-2.0.16>if AMD64 == IA64 goto IA64
C:\openssl\openssl-fips-2.0.16>if AMD64 == AMD64 goto AMD64
C:\openssl\openssl-fips-2.0.16>echo Auto Configuring for AMD64
Auto Configuring for AMD64
C:\openssl\openssl-fips-2.0.16>SET TARGET=VC-WIN64A
C:\openssl\openssl-fips-2.0.16>if xno--asm == xno-asm goto compile
C:\openssl\openssl-fips-2.0.16>if xno--asm == xno-asm SET EXARG=no-asm
C:\openssl\openssl-fips-2.0.16>perl Configure VC-WIN64A no-asm fipscheck
Configuring for VC-WIN64A
no-asm [option] OPENSSL_NO_ASM
no-ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128 (skip dir)
no-gmp [default] OPENSSL_NO_GMP (skip dir)
no-jpake [experimental] OPENSSL_NO_JPAKE (skip dir)
no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5
no-md2 [default] OPENSSL_NO_MD2 (skip dir)
no-rc5 [default] OPENSSL_NO_RC5 (skip dir)
no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir)
no-store [experimental] OPENSSL_NO_STORE (skip dir)
no-zlib [default]
no-zlib-dynamic [default]
IsMK1MF=1
CC =cl
CFLAG =-DOPENSSL_FIPSCANISTER -DOPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE
EX_LIBS =
CPUID_OBJ =mem_clr.o
BN_ASM =bn_asm.o
DES_ENC =des_enc.o fcrypt_b.o
AES_ENC =aes_core.o aes_cbc.o
BF_ENC =bf_enc.o
CAST_ENC =c_enc.o
RC4_ENC =rc4_enc.o rc4_skey.o
RC5_ENC =rc5_enc.o
MD5_OBJ_ASM =
SHA1_OBJ_ASM =
RMD160_OBJ_ASM=
CMLL_ENC =camellia.o cmll_misc.o cmll_cbc.o
MODES_OBJ =
ENGINES_OBJ =
PROCESSOR =
RANLIB =true
ARFLAGS =
PERL =perl
SIXTY_FOUR_BIT mode
DES_INT used
RC4_CHUNK is unsigned long long
Configured for VC-WIN64A.
WARNING: OpenSSL has been configured to generate a fipscanister.o object module.
That compiled module is NOT FIPS 140-2 validated or suitable for use in
satisfying a requirement for the use of FIPS 140-2 validated cryptography
UNLESS the requirements of the Security Policy are followed exactly (see
http://openssl.org/docs/fips/ or http://csrc.nist.gov/cryptval/).
This is the OpenSSL FIPS 2.0 module.
C:\openssl\openssl-fips-2.0.16>pause
Press any key to continue . . .
C:\openssl\openssl-fips-2.0.16>echo on
C:\openssl\openssl-fips-2.0.16>perl util\mkfiles.pl 1>MINFO
C:\openssl\openssl-fips-2.0.16>perl util\mk1mf.pl dll no--asm VC-WIN64A 1>ms\ntdll.mak
***************************
****FIPS BUILD FAILURE*****
***************************

How do I change the cgroup version for podman

I am trying to run podman with cgroups v2 enabled. I found a couple of blogposts explaining how to change the runtime to crun and the cgroup_manager to cgroupfs. But I don't know how to actually set the cgroup version to v2.
I am running podman on Manjaro Linx Kernerl 5.4, so, if i am correct, cgroups v2 should be supported.
here it the output of podman info:
host:
BuildahVersion: 1.14.3
CgroupVersion: v1
Conmon:
package: Unknown
path: /usr/bin/conmon
version: 'conmon version 2.0.15, commit: 1bddbf7051a973f4a4fecf06faa0c48e82f1e9e1'
Distribution:
distribution: manjaro
version: unknown
IDMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 65536
size: 66536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 65536
size: 66536
MemFree: 9938743296
MemTotal: 16709140480
OCIRuntime:
name: crun
package: Unknown
path: /usr/bin/crun
version: |-
crun version 0.13
commit: e79e4de4ac16da0ce48777afb72c6241de870525
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
SwapFree: 18296258560
SwapTotal: 18296258560
arch: amd64
cpus: 6
eventlogger: journald
hostname: josef-pc
kernel: 5.4.30-1-MANJARO
os: linux
rootless: true
slirp4netns:
Executable: /usr/bin/slirp4netns
Package: Unknown
Version: |-
slirp4netns version 1.0.0
commit: a3be729152a33e692cd28b52f664defbf2e7810a
libslirp: 4.1.0
uptime: 18m 20.54s
registries:
search:
- docker.io
- registry.fedoraproject.org
- quay.io
- registry.access.redhat.com
- registry.centos.org
store:
ConfigFile: /home/josmos/.config/containers/storage.conf
ContainerStore:
number: 0
GraphDriverName: overlay
GraphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: Unknown
Version: |-
fusermount3 version: 3.9.1
fuse-overlayfs: version 0.7.8
FUSE library version 3.9.1
using FUSE kernel interface version 7.31
GraphRoot: /home/josmos/.local/share/containers/storage
GraphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
ImageStore:
number: 9
RunRoot: /run/user/1000/containers
VolumePath: /home/josmos/.local/share/containers/storage/volumes
are you using OpenRC? From what I see, you need to set rc_cgroup_mode="unified" in the rc.conf file.
If you were using systemd instead, you'd need to run # grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1".

lein cljsbuild fails with untraceable error. How do you troubleshoot cljsbuild errors?

I do not see any log file for the compilation and the error in the terminal is insufficient for me to troubleshoot further.
How do i get more verbose error logging or how should i trouble shoot this issue?
First few lines from stacktrace below
Compiling ClojureScript...
Compiling ["resources/public/js/app.js"] from ["src/cljs"]...
Compiling ["resources/public/js/app.js"] failed.
clojure.lang.ExceptionInfo: failed compiling file:resources\public\js\out\cljs\core.cljs {:file #object[java.io.File 0x7c5d1d25 "resources\\public\\js\\out\\cljs\\core.cljs"], :clojure.error/phase :compilation}
at cljs.compiler$compile_file$fn__3901.invoke(compiler.cljc:1706)
at cljs.compiler$compile_file.invokeStatic(compiler.cljc:1666)
I have a simple cljs file with the following contents
(ns moose.core)
(defn run []
(.write js/document "This is not the end!"))
My project.clj has the following config for cljsbuild
:cljsbuild
{:builds [{:id "dev"
:source-paths ["src/cljs"]
:figwheel {:on-jsload "moose.core/run"
:open-urls ["http://localhost:3449/index.html"]}
:jar true
:compiler {:main moose.core
:warnings true
:output-dir "resources/public/js/out"
:asset-path "js/out"
:output-to "resources/public/js/app.js"}}]}
:clean-targets ^{:protect false} [:target-path :compile-path "resources/public/js" "dev-target"]
Update 1
Following Alan's advice below, i created a new template and narrowed down the cause to adding a fairly old library for interacting with CouchDB
[com.ashafa/clutch "0.4.0"]
The question remains how do I get detailed/complete logs for cljsbuild.
Update 2
Turns out the position of the library in the list of dependencies has an impact.
If it appears before [com.cognitect/transit-clj "0.8.313"] compilation fails otherwise it works.
The configuration options in ClojureScript are not well documented. It is easiest to clone an existing (working) project and go from there. I would suggest starting from the cljs-template project as follows (see the README):
git clone https://github.com/cloojure/cljs-template.git demo-0212 ; temp
> cd demo-0212
~/expr/demo-0212 > ls -ldF *
-rwxrwxr-x 1 alan alan 222 Feb 12 16:04 npm-install.bash*
-rwxrwxr-x 1 alan alan 4216 Feb 12 16:04 project.clj*
-rw-rw-r-- 1 alan alan 1576 Feb 12 16:04 README.adoc
drwxrwxr-x 3 alan alan 4096 Feb 12 16:04 resources/
drwxrwxr-x 5 alan alan 4096 Feb 12 16:04 src/
drwxrwxr-x 4 alan alan 4096 Feb 12 16:04 test/
~/expr/demo-0212 > ./npm-install.bash
...<snip>... lots of stuff
At this point your project has the npm stuff needed for the unit tests.
> lein clean
> lein doo phantom test once
;; ======================================================================
;; Testing with Phantom:
doorunner - beginning
doorunner - end
Testing tst.flintstones.dino
test once - enter
globalObject: #js {:a 1, :b 2, :c 3}
(-> % .-b (+ 5) => 7
(js/makeDino) => #js {:desc blue dino-dog, :says #object[Function]}
dino.desc => blue dino-dog
dino.says(5) => Ruff-Ruff-Ruff-Ruff-Ruff!
:keep-words ("am" "having" "today")
:re-seq ("am" "having" "today")
test once - leave
Testing tst.flintstones.wilma
test each - enter
test each - leave
test each - enter
wilmaPhony/stats: #js {:lipstick red, :height 5.5}
wilma => #js {:desc patient housewife, :says #object[Function]}
test each - leave
Testing tst.flintstones.pebbles
test once - enter
test once - leave
Testing tst.flintstones.slate
logr-slate-enter
logr-slate-leave 3
Testing tst.flintstones.bambam
test each - enter
test each - leave
test each - enter
logr-bambam-enter
logr-bambam-leave 3
test each - leave
Ran 9 tests containing 22 assertions.
0 failures, 0 errors.
lein doo phantom test once 38.73s user 1.05s system 313% cpu 12.701 total
You can also fire off figwheel to see results in the browser:
> lein clean
> lein figwheel
see new webpage (30-60 sec delay)
------------------------
Figwheel template
Checkout your developer console.
I am a component!
I have bold and red text.
...etc...
------------------------

On Flutter Parsing Json in The Background fails

I try to implement the Parsing JSON in the background on https://flutter.io/cookbook/networking/background-parsing/ and I am getting bellow error. Error also same when I use the Android Emulator.
I am using macOs HighSierra. I install IntelliJ and Fluter and Dark plugin. I test most examples on Flutter and it all worked. I also created a demo up and its working. I don't understand why this not working. Any Help please?
Code I am using:
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:http/http.dart' as http;
// JSON::WEATHER
Future<String> getWeatherData() async {
var response = await http.get(
Uri.encodeFull("http://api.openweathermap.org/data/2.5/forecast?q=San+Francisco&units=metric&APPID=14cc828bff4e71286219858975c3e89a"),
headers: {
'Accept': 'application/json'
}
);
this.setState(() {
weatherData = json.decode(response.body);
});
return 'Success!';
}
#override
void initState() {
// TODO: implement initState
super.initState();;
this.getWeatherData();
}
// USAGE
new Text(
weatherData['list'][0]['main']['temp_min'].toString(),
style: new TextStyle(
fontSize: 10.0,
fontWeight: FontWeight.w400,
color: Colors.white,
),
),
Launching lib/main.dart on SM G935F in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk (31.4MB).
I/FlutterActivityDelegate(26125): onResume setting current activity to this
D/libGLESv2(26125): STS_GLApi : DTS is not allowed for Package : com.yourcompany.parsingjsonintheackground
Syncing files to device SM G935F...
F/flutter (26125): [FATAL:flutter/fml/message_loop.cc(23)] Check failed: loop != nullptr.
MessageLoop::EnsureInitializedForCurrentThread was not called on this
thread prior to message loop use.
F/libc (26125): Fatal signal 6 (SIGABRT), code -6 in tid 26165 (1.ui)
* *
Build fingerprint: 'samsung/hero2ltexx/hero2lte:7.0/NRD90M/G935FXXS2DRC3:user/release-keys'
Revision: '9'
ABI: 'arm64'
pid: 26125, tid: 26165, name: 1.ui >>> com.yourcompany.parsingjsonintheackground <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/fml/message_loop.cc(23)] Check failed: loop != nullptr.
MessageLoop::EnsureInitializedForCurrentThread was not called on this
thread prior to message loop use.
'
x0 0000000000000000 x1 0000000000006635 x2 0000000000000006 x3 0000000000000008
x4 000000000000015f x5 0000000000000000 x6 0000007286ce8000 x7 0000000000000000
x8 0000000000000083 x9 ffffffffffffffdf x10 0000000000000000 x11 ffffffffffffffff
x12 0000000000000018 x13 0000000000000000 x14 0000000000000000 x15 000bbc6bf4faa710
x16 00000072840caee0 x17 0000007284073a28 x18 000000726095d160 x19 000000725d9ab4f8
x20 0000000000000006 x21 000000725d9ab450 x22 0000000000000000 x23 000000725d9ab020
x24 000000725d9ab038 x25 000000725d9ab040 x26 000000725d9ab060 x27 000000725d9ab098
x28 000000725d9ab009 x29 000000725d9aab00 x30 0000007284070ebc
sp 000000725d9aaae0 pc 0000007284073a30 pstate 0000000060000000
backtrace:
#00 pc 000000000006ca30 /system/lib64/libc.so (tgkill+8)
#01 pc 0000000000069eb8 /system/lib64/libc.so (pthread_kill+64)
#02 pc 0000000000024198 /system/lib64/libc.so (raise+24)
#03 pc 000000000001c9b0 /system/lib64/libc.so (abort+52)
#04 pc 00000000003a6d2c /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#05 pc 00000000003a7474 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#06 pc 000000000016dab4 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#07 pc 000000000015f404 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#08 pc 0000000000189b70 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#09 pc 0000000000190b50 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#10 pc 0000000000190674 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#11 pc 00000000001921e8 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#12 pc 00000000005dc220 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#13 pc 0000000000830f4c /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#14 pc 0000000000830df8 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#15 pc 000000000074d084 /data/app/com.yourcompany.parsingjsonintheackground-1/lib/arm64/libflutter.so
#16 pc 00000000000696bc /system/lib64/libc.so (_ZL15__pthread_startPv+196)
#17 pc 000000000001dbf0 /system/lib64/libc.so (__start_thread+16)
Lost connection to device.
I answered in the related bug you opened:
https://github.com/flutter/flutter/issues/16738

R Studio crashing on Mac OS X 10.11.6

I wonder if someone can help guide me on how I can preempt a crash of R studio. R Studio has now crashed on three separate occasions, each time 9 minutes after running the following code in an attempt to transform a dummy-variabled data set into a dataframe:
trsf <- events.data.frame(predict(dmy, newdata = events))
In the middle of running the code, RStudio "quits unexpectedly" and I get the bomb dialog box that says "R session aborted. R encountered a fatal error. The session was terminated," and then gives me the option of starting a new session. The code that was successfully executed before running that command was:
dmy <- dummyVars(" ~ .", data = events)
Before the above command I established a connection between R Studio to my MySQL database, and then successfully read in a table from that database into R studio.
I followed the instructions at the following link to try and recover a crash report, but I couldn't find it in the locations specified:
https://support.rstudio.com/hc/en-us/articles/200554776-RStudio-Crash-Report
The following entry showed up in the Console right when R Studio crashed:
7/30/17 11:25:53.000 AM kernel[0]: low swap: killing pid 476 (rsession)
I tried updating R studio to version 1.1.319, restarted the computer, and tried again from scratch with an empty session, but to no avail, as I continue to get the fatal error message at the same point in the process. I then tried to reduce the size of the dataset queried of the table (5.8 GiB table with 7,201,341 rows large) by at least half by querying data (from 1997-2016, instead of data from 1974-2016).
I ran the following command in a terminal:
/Applications/RStudio.app/Contents/MacOS/RStudio --run-diagnostics
as mentioned here:
https://support.rstudio.com/hc/en-us/community/posts/212693307-RStudio-crash-every-time-upon-new-Rmd-file-creation
Here is the output from the text file that was created, although I'm not sure how relevant it is:
[1] "1.1.319"
$R
[1] "/usr/local/bin/R"
$pdflatex
[1] ""
$bibtex
[1] ""
$gcc
[1] "/usr/bin/gcc"
$git
[1] "/usr/bin/git"
$svn
[1] "/usr/bin/svn"
R version 3.4.0 (2017-04-21)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.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.0 tools_3.4.0
SysInfo:
sysname
"Darwin"
release
"15.6.0"
version
"Darwin Kernel Version 15.6.0: Sun Jun 4 21:43:07 PDT 2017; root:xnu-3248.70.3~1/RELEASE_X86_64"
nodename
“xxxx-Mac-Pro"
machine
"x86_64"
login
"xxxx"
user
"xxxx"
effective_user
"xxxx"
R Version:
_
platform x86_64-apple-darwin15.6.0
arch x86_64
os darwin15.6.0
system x86_64, darwin15.6.0
status
major 3
minor 4.0
year 2017
month 04
day 21
svn rev 72570
language R
version.string R version 3.4.0 (2017-04-21)
nickname You Stupid Darkness
$`_`
[1] "/Applications/RStudio.app/Contents/MacOS/RStudio"
$`__CF_USER_TEXT_ENCODING`
[1] "0x1F5:0x0:0x0"
$Apple_PubSub_Socket_Render
[1] "/private/tmp/com.apple.launchd.R8X6ErkBu8/Render"
$CLICOLOR_FORCE
[1] "1"
$DYLD_FALLBACK_LIBRARY_PATH
[1] "/Library/Frameworks/R.framework/Resources/lib:/Users/xxxx/lib:/usr/local/lib:/usr/lib:::/lib:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/server"
$EDITOR
[1] "vi"
$GIT_ASKPASS
[1] "rpostback-askpass"
$HOME
[1] "/Users/xxxx"
$LANG
[1] "en_US.UTF-8"
$LC_CTYPE
[1] "en_US.UTF-8"
$LN_S
[1] "ln -s"
$LOGNAME
[1] “xxxx”
$MAKE
[1] "make"
$OLDPWD
[1] "/Users/xxxx”
$PAGER
[1] "/usr/bin/less"
$PATH
[1] "/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
$PWD
[1] "/Users/xxxx”
$R_BROWSER
[1] "/usr/bin/open"
$R_BZIPCMD
[1] "/usr/bin/bzip2"
$R_DOC_DIR
[1] "/Library/Frameworks/R.framework/Resources/doc"
$R_GZIPCMD
[1] "/usr/bin/gzip"
$R_HOME
[1] "/Library/Frameworks/R.framework/Resources"
$R_INCLUDE_DIR
[1] "/Library/Frameworks/R.framework/Resources/include"
$R_LIBS_SITE
[1] ""
$R_LIBS_USER
[1] "~/Library/R/3.4/library"
$R_PAPERSIZE
[1] "a4"
$R_PDFVIEWER
[1] "/usr/bin/open"
$R_PLATFORM
[1] "x86_64-apple-darwin15.6.0"
$R_PRINTCMD
[1] "lpr"
$R_QPDF
[1] "/Library/Frameworks/R.framework/Resources/bin/qpdf"
$R_RD4PDF
[1] "times,inconsolata,hyper"
$R_SESSION_TMPDIR
[1] "/var/folders/ml/3khdh0ns3410w6qzm2tw6psc0000gn/T//RtmpCpoqW2"
$R_SHARE_DIR
[1] "/Library/Frameworks/R.framework/Resources/share"
$R_SYSTEM_ABI
[1] "osx,gcc,gxx,gfortran,?"
$R_TEXI2DVICMD
[1] "/usr/local/bin/texi2dvi"
$R_UNZIPCMD
[1] "/usr/bin/unzip"
$R_ZIPCMD
[1] "/usr/bin/zip"
$RMARKDOWN_MATHJAX_PATH
[1] "/Applications/RStudio.app/Contents/Resources/resources/mathjax-26"
$RS_RPOSTBACK_PATH
[1] "/Applications/RStudio.app/Contents/MacOS/rpostback"
$RS_SHARED_SECRET
[1] "5ff181b1-d899-4d78-9493-06b24535ea1b"
$RSTUDIO
[1] "1"
$RSTUDIO_CONSOLE_COLOR
[1] "256"
$RSTUDIO_CONSOLE_WIDTH
[1] "80"
$RSTUDIO_PANDOC
[1] "/Applications/RStudio.app/Contents/MacOS/pandoc"
$RSTUDIO_SESSION_PORT
[1] "40358"
$RSTUDIO_USER_IDENTITY
[1] "xxxx"
$RSTUDIO_WINUTILS
[1] "bin/winutils"
$SED
[1] "/usr/bin/sed"
$SHELL
[1] "/bin/bash"
$SHLVL
[1] "1"
$SSH_AUTH_SOCK
[1] "/private/tmp/com.apple.launchd.JwE0qrvHVe/Listeners"
$TAR
[1] "/usr/bin/tar"
$TERM
[1] "xterm-256color"
$TERM_PROGRAM
[1] "Apple_Terminal"
$TERM_PROGRAM_VERSION
[1] "361.1"
$TERM_SESSION_ID
[1] "F96A6E56-2585-4164-B6BC-470CE6D70216"
$TMPDIR
[1] "/var/folders/ml/3khdh0ns3410w6qzm2tw6psc0000gn/T/"
$USER
[1] “xxxx”
$XPC_FLAGS
[1] "0x0"
$XPC_SERVICE_NAME
[1] "0"
[1] ".GlobalEnv" "tools:rstudio" "package:stats"
[4] "package:graphics" "package:grDevices" "package:utils"
[7] "package:datasets" "package:methods" "Autoloads"
[10] "package:base"
Log file: rdesktop.log
--------------------------------------------------
(Empty)
Log file: rsession-xxxx.log
--------------------------------------------------
16 Jun 2017 04:17:01 [rsession-xxxx] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(boost::shared_ptr<HttpConnection>, const boost::function<void ()>) /Users/rstudio/rstudio/src/cpp/session/http/SessionHttpConnectionUtils.cpp:136
16 Jun 2017 04:51:54 [rsession-xxxx] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(boost::shared_ptr<HttpConnection>, const boost::function<void ()>) /Users/rstudio/rstudio/src/cpp/session/http/SessionHttpConnectionUtils.cpp:136
16 Jun 2017 05:07:20 [rsession-xxxx] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(boost::shared_ptr<HttpConnection>, const boost::function<void ()>) /Users/rstudio/rstudio/src/cpp/session/http/SessionHttpConnectionUtils.cpp:136
17 Jun 2017 04:12:50 [rsession-xxxx] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(boost::shared_ptr<HttpConnection>, const boost::function<void ()>) /Users/rstudio/rstudio/src/cpp/session/http/SessionHttpConnectionUtils.cpp:136
17 Jun 2017 15:35:17 [rsession-xxxx] CLIENT EXCEPTION (rsession-xxxx): (TypeError) : undefined is not an object (evaluating 'a.n.applicable');|||org/rstudio/studio/client/workbench/views/packages/PackagesPane.java#102::setPackageState|||org/rstudio/studio/client/workbench/views/packages/Packages.java#724::setViewPackageList|||org/rstudio/studio/client/workbench/views/packages/Packages.java#700::onPackageFilterChanged|||org/rstudio/studio/client/workbench/views/packages/PackagesPane.java#277::onValueChange|||com/google/gwt/event/logical/shared/ValueChangeEvent.java#127::dispatch|||com/google/web/bindery/event/shared/SimpleEventBus.java#173::doFire|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/event/logical/shared/ValueChangeEvent.java#40::fire|||org/rstudio/core/client/widget/SearchWidget.java#163::onKeyUp|||com/google/gwt/event/dom/client/KeyUpEvent.java#55::dispatch|||com/google/web/bindery/event/shared/SimpleEventBus.java#173::doFire|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/event/dom/client/DomEvent.java#110::fireNativeEvent|||com/google/gwt/user/client/ui/Widget.java#163::onBrowserEvent|||com/google/gwt/user/client/ui/Composite.java#78::onBrowserEvent|||com/google/gwt/user/client/DOM.java#1414::dispatchEvent|||com/google/gwt/user/client/impl/DOMImplStandard.java#312::dispatchEvent|||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:9408/#-1::anonymous|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_11_6) AppleWebKit/603.2.5 (KHTML, like Gecko)
17 Jun 2017 15:35:17 [rsession-xxxx] CLIENT EXCEPTION (rsession-xxxx): (TypeError) : undefined is not an object (evaluating 'a.n.applicable');|||org/rstudio/studio/client/workbench/views/packages/PackagesPane.java#102::setPackageState|||org/rstudio/studio/client/workbench/views/packages/Packages.java#724::setViewPackageList|||org/rstudio/studio/client/workbench/views/packages/Packages.java#700::onPackageFilterChanged|||org/rstudio/studio/client/workbench/views/packages/PackagesPane.java#277::onValueChange|||com/google/gwt/event/logical/shared/ValueChangeEvent.java#127::dispatch|||com/google/web/bindery/event/shared/SimpleEventBus.java#173::doFire|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/event/logical/shared/ValueChangeEvent.java#40::fire|||org/rstudio/core/client/widget/SearchWidget.java#163::onKeyUp|||com/google/gwt/event/dom/client/KeyUpEvent.java#55::dispatch|||com/google/web/bindery/event/shared/SimpleEventBus.java#173::doFire|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/event/dom/client/DomEvent.java#110::fireNativeEvent|||com/google/gwt/user/client/ui/Widget.java#163::onBrowserEvent|||com/google/gwt/user/client/ui/Composite.java#78::onBrowserEvent|||com/google/gwt/user/client/DOM.java#1414::dispatchEvent|||com/google/gwt/user/client/impl/DOMImplStandard.java#312::dispatchEvent|||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:9408/#-1::anonymous|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_11_6) AppleWebKit/603.2.5 (KHTML, like Gecko)
17 Jun 2017 15:35:17 [rsession-xxxx] CLIENT EXCEPTION (rsession-xxxx): (TypeError) : undefined is not an object (evaluating 'a.n.applicable');|||org/rstudio/studio/client/workbench/views/packages/PackagesPane.java#102::setPackageState|||org/rstudio/studio/client/workbench/views/packages/Packages.java#724::setViewPackageList|||org/rstudio/studio/client/workbench/views/packages/Packages.java#700::onPackageFilterChanged|||org/rstudio/studio/client/workbench/views/packages/PackagesPane.java#277::onValueChange|||com/google/gwt/event/logical/shared/ValueChangeEvent.java#127::dispatch|||com/google/web/bindery/event/shared/SimpleEventBus.java#173::doFire|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/event/logical/shared/ValueChangeEvent.java#40::fire|||org/rstudio/core/client/widget/SearchWidget.java#163::onKeyUp|||com/google/gwt/event/dom/client/KeyUpEvent.java#55::dispatch|||com/google/web/bindery/event/shared/SimpleEventBus.java#173::doFire|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/event/shared/HandlerManager.java#117::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/user/client/ui/Widget.java#127::fireEvent|||com/google/gwt/event/dom/client/DomEvent.java#110::fireNativeEvent|||com/google/gwt/user/client/ui/Widget.java#163::onBrowserEvent|||com/google/gwt/user/client/ui/Composite.java#78::onBrowserEvent|||com/google/gwt/user/client/DOM.java#1414::dispatchEvent|||com/google/gwt/user/client/impl/DOMImplStandard.java#312::dispatchEvent|||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:9408/#-1::anonymous|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_11_6) AppleWebKit/603.2.5 (KHTML, like Gecko)
18 Jun 2017 05:26:11 [rsession-xxxxxxxx] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(boost::shared_ptr<HttpConnection>, const boost::function<void ()>) /Users/rstudio/rstudio/src/cpp/session/http/SessionHttpConnectionUtils.cpp:136
20 Jun 2017 06:29:23 [rsession-xxxx] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(boost::shared_ptr<HttpConnection>, const boost::function<void ()>) /Users/rstudio/rstudio/src/cpp/session/http/SessionHttpConnectionUtils.cpp:136
21 Jun 2017 03:31:28 [rsession-xxxx] WARNING Abort requested; LOGGED FROM: bool rstudio::session::connection::checkForAbort(boost::shared_ptr<HttpConnection>, const boost::function<void ()>) /Users/rstudio/rstudio/src/cpp/session/http/SessionHttpConnectionUtils.cpp:136
Please let me know what other information I can provide and where I might find it so that I can address the problem.
Here is a screenshot of the R environment before the crash took place.
Thank you in advance