[R] Error: serialization is too large to store in a raw vector

Martin Morgan mtmorgan at fhcrc.org
Thu Nov 3 13:24:26 CET 2011


On 11/02/2011 03:37 PM, Alaios wrote:
> Dear all,
> I have quite large code (with lapply and mclapply)
> and I am getting the following error.
>
> Error: serialization is too large to store in a raw vector
>
> Is it possible to ask from R to extend the Error messages with more details?
> I would like to see where this problem exists.

This is likely from the return value of mclapply's FUN: 
parallel:::sendMaster tries to serialize it, and fails.

   serialize(integer(.Machine$integer.max / 4), NULL, TRUE)

do further data reduction before trying to return the results (probably 
a parallel 'best practices' anyway). Neither traceback() nor 
options(error=recover) deal gracefully with mclapply errors like this.

Hope that helps,

Martin

>
> B.R
> Alex
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793



More information about the R-help mailing list