I tried to include PCL into my project. I need some methods to process my point cloud like filtering, smoothing, downsampling and triangulation.
Unfortunately I always get the same error when using some function of PCL. For example at the following filter method:
When I debug the method everything works fine (The Writer writes the file and saves the estimated points). But at the end of the method before jumping to the next method I always get an error at MallocTB::Free().
First-chance exception at 0x00007FFB2AB60080 (UE4Editor-Core.dll) in UE4Editor.exe: 0xC0000005: Access violation writing location 0x000000293E868050
Unhandled exception at 0x00007FFB2AB60080 (UE4Editor-Core.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x000000293E868050
I really tried a lot but I don't know why this error occurs... . It seems that there are some problems between memory handling in UE4 and memory handling in the PCL framework? I would be grateful if someone can help me.
Is it possible that there is a problem with using boost::shared_ptr in UE4? "Ptr" is of this type.
Unfortunately I always get the same error when using some function of PCL. For example at the following filter method:
Code:
#include <pcl/filters/radius_outlier_removal.h> #include <pcl/filters/conditional_removal.h> void AVoxelGenerator::GeneratePointCloud(TArray<FVector4> Voxels) { pcl::PointCloud<pcl::PointXYZI>::Ptr Cloud(new pcl::PointCloud<pcl::PointXYZI>()); pcl::PointCloud<pcl::PointXYZI>::Ptr Cloud_filtered(new pcl::PointCloud<pcl::PointXYZI>()); Cloud->width = Width; Cloud->height = Height; Cloud->is_dense = true; Cloud->points.resize(Voxels.Num()); for (int i = 0; i < Voxels.Num(); i++) { Cloud->points[i].x = Voxels[i].X; Cloud->points[i].y = Voxels[i].Y; Cloud->points[i].z = Voxels[i].Z; Cloud->points[i].intensity = Voxels[i].W; } pcl::RadiusOutlierRemoval<pcl::PointXYZI> Ror; Ror.setInputCloud(Cloud); Ror.setRadiusSearch(20.0); Ror.setMinNeighborsInRadius(5); Ror.filter(*Cloud_filtered); pcl::PCDWriter Writer; Writer.write<pcl::PointXYZI>("Table_inliers.pcd", *Cloud_filtered, false); }
First-chance exception at 0x00007FFB2AB60080 (UE4Editor-Core.dll) in UE4Editor.exe: 0xC0000005: Access violation writing location 0x000000293E868050
Unhandled exception at 0x00007FFB2AB60080 (UE4Editor-Core.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x000000293E868050
I really tried a lot but I don't know why this error occurs... . It seems that there are some problems between memory handling in UE4 and memory handling in the PCL framework? I would be grateful if someone can help me.
Is it possible that there is a problem with using boost::shared_ptr in UE4? "Ptr" is of this type.
Comment