R lme4错误在'/ usr / lib / rstudio / bin / rsession'中:malloc():内存损坏: [英] R lme4 Error in '/usr/lib/rstudio/bin/rsession' : malloc(): memory corruption:

查看:135
本文介绍了R lme4错误在'/ usr / lib / rstudio / bin / rsession'中:malloc():内存损坏:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我从 lme4 中运行 lmer glmer 包,我得到以下错误:


'/ usr / lib / rstudio / bin / rsession'中的错误:malloc():memory
损坏:


我更新所有R包,但仍然得到相同的错误。任何帮助将高度赞赏。谢谢



sessionInfo()

  R版本3.3.2(2016-10-31)
平台:i686-pc-linux-gnu(32位)
运行于:Ubuntu 16.04.2 LTS

语言环境:
[1] LC_CTYPE = en_US.UTF-8 LC_NUMERIC = C LC_TIME = en_US.UTF-8
[4] LC_COLLATE = en_US.UTF-8 LC_MONETARY = en_US.UTF-8 LC_MESSAGES = en_US .USF-8
[7] LC_PAPER = $ b附加的基础包:
[1]统计图形grDevices utils数据集方法base

其他附加包:
[1] lme4_1.1-13 Matrix_1.2-8

通过命名空间加载(并未附加):
[1] minqa_1.2.4 MASS_7.3-45 tools_3.3.2 Rcpp_0.12.9 splines_3.3.2
[6] nlme_3。 1-131 grid_3.3.2 nloptr_1.0.4 lattice_0.20-34

已编辑

 库(lme4)
fm1< ; - lmer(Reaction〜Days +(Days |主题),sleepstudy)

抛出以下错误:


$ b $ '/ usr / lib / rstudio / bin / rsession'中的错误:malloc():内存
损坏:



解决方案

有关最新的Matrix软件包1.2-8的问题,有32位操作系统的问题(来自Terry Therneau的pers。 Brian Ripley)。修复可能会在可能需要一段时间(pers。comm。,M. Maechler),所以我会尝试将Matrix降级到1.2-7版本,例如 devtools :: install_version(Matrix,1.2-7)(您需要安装编译工具)。看看Matrix的 NEWS文件,我怀疑这有与...有关:



  • C-API:SuiteSparse_long现在在所有平台上定义为int64_t,而现在包括(C99)'inttypes.h'



Whenever I run lmer or glmer from lme4 package, I get the following error:

Error in '/usr/lib/rstudio/bin/rsession' : malloc(): memory corruption:

I update all R packages but still getting the same error. Any help will be highly appreciated. Thanks

sessionInfo()

R version 3.3.2 (2016-10-31)
Platform: i686-pc-linux-gnu (32-bit)
Running under: Ubuntu 16.04.2 LTS

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] lme4_1.1-13  Matrix_1.2-8

loaded via a namespace (and not attached):
[1] minqa_1.2.4     MASS_7.3-45     tools_3.3.2     Rcpp_0.12.9     splines_3.3.2  
[6] nlme_3.1-131    grid_3.3.2      nloptr_1.0.4    lattice_0.20-34

Edited

library(lme4)
fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)

Throws the following error:

Error in '/usr/lib/rstudio/bin/rsession' : malloc(): memory corruption:

解决方案

There have been reports of problems with the latest Matrix package, 1.2-8, on 32-bit OS's (pers. comm. from Terry Therneau and Brian Ripley). A fix is probably on its way may take a while (pers. comm., M. Maechler), so I would try downgrading Matrix to version 1.2-7, e.g. devtools::install_version("Matrix","1.2-7") (you'll need to have compilation tools installed). Looking at the NEWS file for Matrix, I suspect this has something to do with:

  • C-API: SuiteSparse_long is now defined as int64_t on all platforms, and we now include (C99) ‘inttypes.h’

这篇关于R lme4错误在'/ usr / lib / rstudio / bin / rsession'中:malloc():内存损坏:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆