The current error is raised as Unrecognized data format
so you might need to check what exactly you are trying to load and make sure it’s compatible.
To the original issue: it’s still unclear if you are seeing the segfault in a pure libtorch
application or not.
The stacktrace you have provided points to qpOASES
.