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

Inserting pointcloud after clear() fails. #123

Closed
skasperski opened this issue Jul 11, 2016 · 3 comments
Closed

Inserting pointcloud after clear() fails. #123

skasperski opened this issue Jul 11, 2016 · 3 comments
Labels

Comments

@skasperski
Copy link

skasperski commented Jul 11, 2016

Hello,

I am building an octomap::OcTree from pointclouds, which works fine so far. But when I call clear() on the OcTree and then try to add a new pointcloud, it crashes without an exception. Is there anything that has to be done after calling clear(), before new pointclouds can be inserted again?

Edit: A run with gdb gave me:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff9f7fe700 (LWP 11343)]
0x00007fffecf3c174 in octomap::OcTreeBaseImpl<octomap::OcTreeNode, octomap::AbstractOccupancyOcTree>::search(octomap::OcTreeKey const&, unsigned int) const ()

Best regards,
Sebastian

@ahornung
Copy link
Member

I can confirm that a quick test with clear() already segfaults for me using the latest version, even without inserting anything afterwards. It does not happen with 1.7.0 so it's probably related to the changes introduced with #98.

@ahornung
Copy link
Member

Fixed in devel, could you try it out?

@skasperski
Copy link
Author

Works on my side.

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

No branches or pull requests

2 participants