Out of a sudden I get the following warning when typing in RStudio:
rsession(9608) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
Everytime when I'm typing in RStudio the warning appears with a different rsession like this:
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.
There is an issue about this warning, but I can't find anything related to rstudio. So, I was wondering if anyone knows what this error is and why it happens?
Please note: I'm using a MacBook Pro with Intel Core i5 2020.
I also had this issue on Sonoma (14.2.1) and solved it by updating R from 4.3.1 to 4.3.2. So that might be the place to start then.
I encountered this same issue after upgrading to macOS Sonoma (14.2.1), running R 4.3.1 and using gcc version 13.1.0 (Homebrew) as my C/C++ compiler.
I was able to fix it by upgrading to R 4.3.2 and reinstalling all R packages (following the approach for "the default library" here).
While doing so, I specifically installed data.table, Rcpp, RcppEigen, and RcppArmadillo from source e.g.:
install.packages(c("data.table", "Rcpp", "RcppEigen", "RcppArmadillo"), type = "source")
because that is what I normally do on a fresh R install. However, I doubt that this was the critical step.
I am not sure which of these steps is/are the critical ones:
but the combination seems to have resolved the problem for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With