rsession(9608) RStudio 中的 MallocStackLogging 错误

问题描述 投票:0回答:1

输入

RStudio
时突然收到以下警告:

rsession(9608) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.

每次我在 RStudio 中输入时,都会出现警告,并带有不同的会话,如下所示:

rsession(9608) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9640) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9641) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9652) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9653) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9655) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9656) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9659) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9661) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9700) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9701) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.

关于此警告有一个问题,但我找不到与

rstudio
相关的任何内容。所以,我想知道是否有人知道这个错误是什么以及为什么会发生?


请注意:我使用的是配备 Intel Core i5 2020 的 MacBook Pro。

r rstudio
1个回答
0
投票

升级到 macOS Sonoma (14.2.1)、运行 R 4.3.1 并使用 gcc 版本 13.1.0 (Homebrew) 作为我的 C/C++ 编译器后,我遇到了同样的问题。

我能够通过升级到 R 4.3.2 并重新安装所有 R 软件包来修复它(遵循“默认库”此处的方法)。

在这样做时,我专门从源代码安装了

data.table
Rcpp
RcppEigen
RcppArmadillo
(即
install.packages(c("data.table", "Rcpp", "RcppEigen", "RcppArmadillo"), type = "source"
),因为这是我通常在全新 R 安装中执行的操作,但我对此表示怀疑这是关键的一步。

我不确定这些步骤中哪一个是关键步骤:重新安装 R、升级到 4.3.2 或重新安装所有软件包,但组合似乎已经解决了我的问题。

© www.soinside.com 2019 - 2024. All rights reserved.