segmentation fault from python bindings
hi, first off thanks for this great work! I've been trying to run the demo notebook, but I'm running into a segmentation fault when using the python bindings:
import pyimplicitdist
p = pyimplicitdist.CameraPose()
p.t = np.array([0., 0., 0.])
# Segmentation Fault (core dumped)
I tried building inside the poselib docker container as discussed here https://github.com/PoseLib/PoseLib/issues/82 but I'm still getting segmentation fault from pyimplicitdist. Any suggestions?
@vlarsson, do you have any idea why this is the case?
I would try bumping the pybind11 version to the latest. We had some weird interactions earlier that came from some numpy version.
I installed pybind11, downgraded numpy 2.1.3 to 1.26.4 and rebuilt implicit_dist 1.1.0. This solved it for me.
Before:
IPython 8.29.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pyimplicitdist
In [2]: import numpy as np
In [3]: a = pyimplicitdist.CameraPose()
In [4]: a.t = np.array([1,2,3])
Segmentation fault (core dumped)
After:
In [1]: import pyimplicitdist
In [2]: import numpy as np
In [3]: a = pyimplicitdist.CameraPose()
In [4]: a.t = np.array([1,2,3])
In [5]: a.q_vec = np.array([1,2,3,4])
In [6]: