Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault from python bindings #3

Open
Linusnie opened this issue Jul 3, 2024 · 3 comments
Open

segmentation fault from python bindings #3

Linusnie opened this issue Jul 3, 2024 · 3 comments

Comments

@Linusnie
Copy link

Linusnie commented Jul 3, 2024

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 PoseLib/PoseLib#82 but I'm still getting segmentation fault from pyimplicitdist. Any suggestions?

@lpanaf
Copy link
Collaborator

lpanaf commented Oct 18, 2024

@vlarsson, do you have any idea why this is the case?

@vlarsson
Copy link

I would try bumping the pybind11 version to the latest. We had some weird interactions earlier that came from some numpy version.

@nattachart
Copy link

nattachart commented Nov 15, 2024

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]: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants