MarkusEich / cpf_segmentation

Constrained Plane Fitting library for unsupervised segmentation of 3D point clouds
Apache License 2.0
80 stars 43 forks source link

Segmentation fault after ./segmentation_test #5

Open amiltonwong opened 7 years ago

amiltonwong commented 7 years ago

Hi, @trungtpham ,

After make install the package, I test it as follows and got the Segmentation fault error:

root@milton-All-Series:/data/code2/cpf_segmentation/build# ./segmentation_test ../test_data/tum_small.pcd
Loading pointcloud
Number of points: 749580
Number of points after filtered 733102
Segmentation fault (core dumped)

Any suggestions?

Thx~

trungtpham commented 7 years ago

Hi, It is hard to see why you've got segmentation fault error. Did you try multiple time and still got the same error? Could you please try different smaller pcd data?

Cheers, Trung

amiltonwong commented 7 years ago

@Hi, @trungtpham ,

Still the same segmentation fault error. Would it be pcl library conflict in my system? I have both pcl 1.7 and 1.8.

$ pkg-config --list-all | grep pcl_segmentation
pcl_segmentation-1.7             pcl_segmentation - Point cloud segmentation library
pcl_segmentation-1.8             pcl_segmentation - Point cloud segmentation library
MarkusEich commented 7 years ago

This might cause the issue. Having 1.7 and 1.8 at the same time is problematic because sometimes it is not defined which lib the code is linked to. One option is to set the minimum version to 1.8 in the cmake file. A safer way is to have both versions installed in the /opt folder away from the standard paths which is /usr /local. Than you can set the LD_Library path in your..bashrc as needed. 

Sent from my Samsung GALAXY S5

-------- Ursprüngliche Nachricht -------- Von: amiltonwong notifications@github.com Datum: 27.02.17 18:34 (GMT+10:00) An: MarkusEich/cpf_segmentation cpf_segmentation@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Betreff: Re: [MarkusEich/cpf_segmentation] Segmentation fault after ./segmentation_test (#5)

Hi, @trungtpham , Still the same. Would it be pcl library conflict in my system? I have both pcl 1.7 and 1.8. $ pkg-config --list-all | grep pcl_segmentation pcl_segmentation-1.7 pcl_segmentation - Point cloud segmentation library pcl_segmentation-1.8 pcl_segmentation - Point cloud segmentation library

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/MarkusEich/cpf_segmentation","title":"MarkusEich/cpf_segmentation","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/MarkusEich/cpf_segmentation"}},"updates":{"snippets":[{"icon":"PERSON","message":"@amiltonwong in #5: Hi, @trungtpham ,\r\n\r\nStill the same. Would it be pcl library conflict in my system? I have both pcl 1.7 and 1.8.\r\n\r\n$ pkg-config --list-all | grep pcl_segmentation\r\npcl_segmentation-1.7 pcl_segmentation - Point cloud segmentation library\r\npcl_segmentation-1.8 pcl_segmentation - Point cloud segmentation library\r\n"}],"action":{"name":"View Issue","url":"https://github.com/MarkusEich/cpf_segmentation/issues/5#issuecomment-282657956"}}}

rrkmiao commented 6 years ago

@amiltonwong @trungtpham @MarkusEich
Have you solved this error?

Number of points after filtered 733102 Number of supervoxels: 5214 Super-voxel segmentation takes: 6449.05ms cpf_2: /usr/include/eigen3/Eigen/src/Core/CommaInitializer.h:95: Eigen::CommaInitializer::~CommaInitializer() [with XprType = Eigen::Block<Eigen::Matrix<float, -1, -1>, 1, -1, false>]: Assertion `(m_row+m_currentBlockRows) == m_xpr.rows() && m_col == m_xpr.cols() && "Too few coefficients passed to comma initializer (operator<<)"' failed.

I get the above error, any suggestions? Thank you very much!

zisluiz commented 5 years ago

Hi guys, @amiltonwong, @rrkmiao, i got this error and i solved fixing the file: segmentation/config.h, on method Config& operator=(const Config& config), at the end, add line "return *this;", to return the reference.

Hope this help.

calmelo commented 2 years ago

Hi, @trungtpham ,

After make install the package, I test it as follows and got the Segmentation fault error:

root@milton-All-Series:/data/code2/cpf_segmentation/build# ./segmentation_test ../test_data/tum_small.pcd
Loading pointcloud
Number of points: 749580
Number of points after filtered 733102
Segmentation fault (core dumped)

Any suggestions?

Thx~

Have you resolved the problem? I meet the problem too.

calmelo commented 2 years ago

Hi guys, @amiltonwong, @rrkmiao, i got this error and i solved fixing the file: segmentation/config.h, on method Config& operator=(const Config& config), at the end, add line "return *this;", to return the reference.

Hope this help.

I tried your method, but it seems no use.

cmw96 commented 2 years ago

Hi guys, @amiltonwong, @rrkmiao, i got this error and i solved fixing the file: segmentation/config.h, on method Config& operator=(const Config& config), at the end, add line "return *this;", to return the reference. Hope this help.

I tried your method, but it seems no use.

For me it worked. Are you sure you recompiled the code? To "apply" the changes you would have to run "make install" again.