Open
Description
The failing example is
Tensor<int> v("v", {N}, Format({Dense}));
for (int a=0; a < N; a++) {
v.insert({a}, a);
}
v.pack();
And here's the stacktrace:
Note: Looking at this it, I can see an issue with the set method on TypedComponent which gets called whenever you insert a value into a vector. The given value is cast to union ComponentTypeUnion. Maybe there is an alignment issue if the value you want to insert is just a 4 byte int ( as in the above example ) and the ComponentTypeUnion is not 4 byte aligned ( which it probably isn't since it needs to potentially store larger values ). Screenshot for this error: