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

Eigen::internal::aligned_free bug #4859

Closed
xq198109 opened this issue Jul 22, 2021 · 5 comments · Fixed by #4698
Closed

Eigen::internal::aligned_free bug #4859

xq198109 opened this issue Jul 22, 2021 · 5 comments · Fixed by #4698
Labels
kind: bug Type of issue needs: author reply Specify why not closed/merged yet status: triage Labels incomplete

Comments

@xq198109
Copy link

I installed the PCL-1.12.0-AllInOne-msvc2019-win64 and test the fliter function of PCL using the following code "test3", a memory problem occured when the function return and the local variable release , the debug information prompt the problem is in the function Eigen::internal::aligned_free(void *)
void test3()
{

pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>);
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_filtered(new pcl::PointCloud<pcl::PointXYZ>);

// Fill in the cloud data
pcl::PLYReader reader;
// Replace the path below with the path where you saved your file
reader.read<pcl::PointXYZ>("E:/zhanjiang/bun_zipper.ply", *cloud);

std::cerr << "Cloud before filtering: " << std::endl;
std::cerr << *cloud << std::endl;

// Create the filtering object
pcl::StatisticalOutlierRemoval<pcl::PointXYZ> sor;
sor.setInputCloud(cloud);
sor.setMeanK(50);
sor.setStddevMulThresh(1.0);
sor.filter(*cloud_filtered);

std::cerr << "Cloud after filtering: " << std::endl;

// std::cerr << *cloud_filtered << std::endl;

pcl::PCDWriter writer;
writer.write<pcl::PointXYZ>("table_scene_lms400_inliersX.pcd", *cloud_filtered, false);

sor.setNegative(true);
sor.filter(*cloud_filtered);
writer.write<pcl::PointXYZ>("table_scene_lms400_outliersX.pcd", *cloud_filtered, false);

}

  • OS: [WINDOW 10]
  • Compiler: [VS 2019]
  • PCL Version [1.12]
@xq198109 xq198109 added kind: bug Type of issue status: triage Labels incomplete labels Jul 22, 2021
@larshg
Copy link
Contributor

larshg commented Jul 22, 2021

Could you enable AVX for the downstream project, I think this is the reason.
Its being fixed in #4698

@mvieth mvieth added the needs: author reply Specify why not closed/merged yet label Jul 24, 2021
@mvieth
Copy link
Member

mvieth commented Jul 24, 2021

@xq198109 Would also be good to know where exactly the problem happens, ideally with a stack trace or the output of a debugger

@xq198109
Copy link
Author

Could you enable AVX for the downstream project, I think this is the reason.
Its being fixed in #4698

thanks, the problem is solved by enabling AVX

@larshg
Copy link
Contributor

larshg commented Jul 27, 2021

Could you enable AVX for the downstream project, I think this is the reason.
Its being fixed in #4698

thanks, the problem is solved by enabling AVX

Thanks for feedback 👍

@kunaltyagi kunaltyagi reopened this Jul 27, 2021
@kunaltyagi kunaltyagi linked a pull request Jul 27, 2021 that will close this issue
@larshg
Copy link
Contributor

larshg commented Jul 28, 2021

@xq198109 I think @kunaltyagi would like this issue to remain open, until a proper fix is merged to master, so please let it be open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Type of issue needs: author reply Specify why not closed/merged yet status: triage Labels incomplete
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants