S05011

Error Code

S05011

Error Message

The number of contiguous vector elements has reached its maximum. RefId: S05011

Probable Causes

Regular arrays (referring to array types other than Big Array, see Data Forms) use continuous memory. This error occurs when the written data exceeds the memory limit, which is determined by the configuration parameter regularArrayMemoryLimit with a default value of 2048 MB.

For example, an error may arise at the third time of data appending because the written data, 536870913, exceeds the memory limit.

// Each INT element occupies 4 bytes, so the default memory limit for a regular array of the INT type is:
//   2048l << 20 / 4 = 536,870,912
v = array(INT, 536870910)
v.append!(1)
v.append!(1)
v.append!(1)  // Error

Solutions

Use Big Array.