我想知道是否有人可以帮助指导我如何预防R studio的崩溃。 R Studio现在已经在三个不同的场合崩溃,每次运行以下代码后9分钟,试图将虚拟变量数据集转换为数据帧:
trsf <- events.data.frame(predict(dmy, newdata = events))
在运行代码的过程中,RStudio“意外退出”,我得到炸弹对话框,说“R会话中止.R遇到了致命的错误。会话终止了”,然后让我选择启动一个新的会议。在运行该命令之前成功执行的代码是:
dmy <- dummyVars(" ~ .", data = events)
在上述命令之前,我在R Studio与MySQL数据库之间建立了连接,然后成功地将该数据库中的表读入R studio。
我按照以下链接中的说明尝试恢复崩溃报告,但我在指定的位置找不到它:
https://support.rstudio.com/hc/en-us/articles/200554776-RStudio-Crash-Report
当R Studio崩溃时,以下条目出现在控制台中:
7/30/17 11:25:53.000 AM kernel [0]:低交换:杀死pid 476(rsession)
我尝试将R studio更新到版本1.1.319,重新启动计算机,并从头开始尝试使用空会话,但无济于事,因为我在此过程中的同一点继续收到致命错误消息。然后,我试图通过查询数据(从1997年到2016年,而不是1974-2016的数据)将查询表(大小为7,201,341行的5.8 GiB表)的数据量减少至少一半。
我在终端中运行了以下命令: /Applications/RStudio.app/Contents/MacOS/RStudio - 运行诊断
以下是创建的文本文件的输出,但我不确定它的相关性如何:
[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
请让我知道我可以提供的其他信息以及我可以找到的信息,以便我可以解决问题。
提前谢谢