Skip to content

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

4 messages · Fong Chun Chan, Stephen Weston

#
Hi Fong,

A vector of length 40503 is definitely not too large.  The code that
you included looks fine.  Is it possible that in the full version of the
script the variable "ps" is defined outside of the foreach loop?
It would be automatically exported in that case, and if it was large
enough, it could cause the serialization error.  If that is the case,
you could fix the problem by using the foreach argument
".noexport='ps'".

If that isn't the case, could you post a complete, self-contained
example that demonstrates the problem?

- Steve


On Tue, Aug 10, 2010 at 4:07 PM, Fong Chun Chan
<fongchun at interchange.ubc.ca> wrote:
#
I don't see why making U133_ps a factor would cause the serialization
error that you reported.  I wasn't able to reproduce it.  I suspect that
something else was going on as well.

- Steve


On Wed, Aug 11, 2010 at 12:38 AM, Fong Chun Chan
<fongchun at interchange.ubc.ca> wrote: