Figured I'd include a minimum working example. This throws the same stack
overflow error:
using ImmutableArrays
n = 10
p = {Array(Vector3,1) for i in 1:n}
m = rand(1000:10000,n)
for i = 1:n
p[i][1] = Vector3(rand(3)) # just for initiating the array so that
there won't be an #undef first element
for j = 2:m[i]
push!(p[i],Vector3(rand(3)))
end
end
for i = 1:n
xyz = cat(2,p[i]...) # PROBLEM!
end
I'd like to add though that for arrays that are kept between 100:1000
(instead of the 1000:10000 as above) this code does not error..! Any ideas?