GithubHelp home page GithubHelp logo

Comments (7)

geoeo avatar geoeo commented on June 26, 2024

Edit: It seems the culprit were AVX/SSE instructions. After I disabled them both on compilation it works!

from pcl.

mvieth avatar mvieth commented on June 26, 2024

Hi, the thing with SSE and AVX is that the options used when compiling PCL should match the options used for your own project, otherwise problems can occur. Usually, CMake takes care of this (unless you do not use CMake for building your own project, edit: or you manually change SSE/AVX options in your own CMakeLists.txt). Enabling PCL_NO_PRECOMPILE also often makes these problems go away because more of PCL's code is compiled together with your own code, so SSE/AVX options are the same.
If you provide a backtrace, e.g. from gdb or valgrind, I can try to take a guess what exactly happens in your case.

from pcl.

geoeo avatar geoeo commented on June 26, 2024

@mvieth Will do. In another note: Could the problem we that I didnt compile eigen with AVX/SSE? I just installed via apt

from pcl.

mvieth avatar mvieth commented on June 26, 2024

@mvieth Will do. In another note: Could the problem we that I didnt compile eigen with AVX/SSE? I just installed via apt

Eigen is a header-only library, so there are no binaries installed. The classes and functions from Eigen are compiled when PCL and your own project are compiled.

from pcl.

geoeo avatar geoeo commented on June 26, 2024

Ok so I recompiled PCL in Debug mode with AVX and SSE on. And I am running my code in RelWithDebug. It doesnt seem to happen in Debug.

image

image

I think whats happening is that it tries to free the point_cloud data structure and somehow the filtering already consumes it? Sorry that I cant provide a more detailed trace

from pcl.

mvieth avatar mvieth commented on June 26, 2024

I think whats happening is that it tries to free the point_cloud data structure and somehow the filtering already consumes it? Sorry that I cant provide a more detailed trace

point_cloud_filtered is filled by the outlier removal filter, and point_cloud is only read from by the filter, so I don't think that's it.
Another thing: can you post your CMakeLists.txt? And run your program with valgrind? That might give us more information.

from pcl.

geoeo avatar geoeo commented on June 26, 2024

point_cloud is a scoped pcl that should be released when the functions returns.

from pcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.