shiva16 / rtabmap

Automatically exported from code.google.com/p/rtabmap
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[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

GoogleCodeExporter commented 9 years ago
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