[Rd] More Detail on "Error : vector memory exhausted (limit reached?)"

Tomas Kalibera tom@@@k@||ber@ @end|ng |rom gm@||@com
Mon Nov 27 10:17:35 CET 2023


On 11/27/23 05:42, ivo welch wrote:
> Would it be possible to enhance this error message?  Could the message say
> how large the limit was that was reached?  Is it that the limit for one
> particular vector has been exceeded (and to how much would it have grown
> vs. how much was allowed?), or is it that the entire memory space has been
> exceeded (and rm'ing other objects could fix this)?

It is the latter, as the message says, the vector memory is exhausted. 
Even after a gc is executed, there is not enough free memory on the 
vector heap to allocate the vector. See ?Memory and ?mem.maxVSize for 
more. Use mem.maxVSize() to see if there is any limit set - the default 
is platform dependent.

In principle, yes, removing objects could fix this.

Tomas


>
> regards, /iaw
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list