introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.75k stars 785 forks source link

Segmentation fault after closing odometry test window or view high-res point clouds window #17

Closed matlabbe closed 9 years ago

matlabbe commented 9 years ago

From @GoogleCodeExporter on May 26, 2015 18:56

What steps will reproduce the problem?
1. Open RTAB-Map
2. Edit->Preferences->Odometry
3. Click "Test odometry"
4. Press numbers 1->4 on the keyboard to change the point cloud's color
5. Close the dialog, will result with a "segmentation fault"

It is a strange bug, because if we don't change the color of the point cloud, 
the dialog closes without problems. Looking in the code, it seems that when the 
dialog is closing, PCLVisualizer::removeAllPointClouds() is called and crashes 
into it.  

Original issue reported on code.google.com by matla...@gmail.com on 27 Feb 2014 at 4:25

Copied from original issue: matlabbe/rtabmap#5

matlabbe commented 9 years ago

From @GoogleCodeExporter on May 26, 2015 18:56

Note that this not happens with the "3D map" view in the main window. Here we 
can change color without any crash when closing the application... In all 
cases, the CloudViewer class is used.

Original comment by matla...@gmail.com on 27 Feb 2014 at 4:27

matlabbe commented 9 years ago

From @GoogleCodeExporter on May 26, 2015 18:56

Reproducted under Ubuntu 12.04 64 bits Hydro PCL, with the database viewer 
(Edit->view 3D clouds).

Original comment by matla...@gmail.com on 2 Oct 2014 at 5:30

matlabbe commented 9 years ago

From @GoogleCodeExporter on May 26, 2015 18:56

[DEBUG] (2014-10-02 13:26:08.605) CloudViewer.cpp:100::~CloudViewer() 
Segmentation fault (core dumped)

Original comment by matla...@gmail.com on 2 Oct 2014 at 5:31

matlabbe commented 9 years ago

From @GoogleCodeExporter on May 26, 2015 18:56

Found a workaround (r1826) to avoid segmentation faults. The data included
in the created window are cleared, but the window itself is not destroyed, only
when its parent is deleted -> here the MainWindow. It seems that child
CloudViewer windows don't crash when deleted on application exit.

Original comment by matla...@gmail.com on 2 Oct 2014 at 7:35