jbehley / SuMa

Surfel-based Mapping for 3d Laser Range Data (SuMa)
MIT License
532 stars 166 forks source link

Segmentation fault #36

Closed JunyuanDeng closed 1 year ago

JunyuanDeng commented 2 years ago

Hi! Thank you for your contribution!

When I run ./visualizer, segmentation fault occurs, and I use gdb: (base) juneyoung@juneyoung:~/catkin_ws_suma/src/SuMa/bin$ gdb ./visualizer GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.

For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./visualizer... (gdb) r Starting program: /home/juneyoung/catkin_ws_suma/src/SuMa/bin/visualizer [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff302f700 (LWP 140139)] [New Thread 0x7fffe6608700 (LWP 140140)] [New Thread 0x7fffe5e07700 (LWP 140141)] [New Thread 0x7fffe559e700 (LWP 140142)] [Thread 0x7fffe5e07700 (LWP 140141) exited] OpenGL Context Version 4.6 core profile GLEW initialized. OpenGL context version: 4.6 OpenGL vendor string : Intel OpenGL renderer string: Mesa Intel(R) UHD Graphics (TGL GT1)

Thread 1 "visualizer" received signal SIGSEGV, Segmentation fault. Frame::Frame (this=0x5555556a78d0, w=, h=) at /home/juneyoung/catkin_ws_suma/src/SuMa/src/core/Frame.h:30 30 residual_map(width, height, glow::TextureFormat::RGBA_FLOAT) { (gdb) bt

0 Frame::Frame (this=0x5555556a78d0, w=, h=)

at /home/juneyoung/catkin_ws_suma/src/SuMa/src/core/Frame.h:30

1 0x00005555555befe0 in gnu_cxx::new_allocator::construct<Frame, int, int> (this=, p=0x5555556a78d0) at /usr/include/c++/9/new:174

2 std::allocator_traits<std::allocator >::construct<Frame, int, int> (

__a=..., __p=0x5555556a78d0) at /usr/include/c++/9/bits/alloc_traits.h:483

3 std::_Sp_counted_ptr_inplace<Frame, std::allocator, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<int, int> (__a=..., this=0x5555556a7890)

at /usr/include/c++/9/bits/shared_ptr_base.h:548

4 std::shared_count<(__gnu_cxx::_Lock_policy)2>::shared_count<Frame, std::allocator, int, int> (a=..., p=,

this=<optimized out>) at /usr/include/c++/9/bits/shared_ptr_base.h:679

5 std::shared_ptr<Frame, (__gnu_cxx::_Lock_policy)2>::shared_ptr<std::allocator, int, int> (__tag=..., this=)

at /usr/include/c++/9/bits/shared_ptr_base.h:1344

6 std::shared_ptr::shared_ptr<std::allocator, int, int> (

__tag=..., this=<optimized out>)
at /usr/include/c++/9/bits/shared_ptr.h:359

7 std::allocate_shared<Frame, std::allocator, int, int> (__a=...)

at /usr/include/c++/9/bits/shared_ptr.h:702

8 std::make_shared<Frame, int, int> ()

at /usr/include/c++/9/bits/shared_ptr.h:718

9 ViewportWidget::ViewportWidget (this=0x555555819790,

--Type for more, q to quit, c to continue without paging--c parent=, shareWidget=, f=...) at /home/juneyoung/catkin_ws_suma/src/SuMa/src/visualizer/ViewportWidget.cpp:34

10 0x00005555555db04d in Ui_MainWindow::setupUi (this=this@entry=0x7fffffffd0b0, MainWindow=MainWindow@entry=0x7fffffffd080) at /home/juneyoung/anaconda3/include/qt/QtCore/qflags.h:121

11 0x00005555555cc791 in VisualizerWindow::VisualizerWindow (this=0x7fffffffd080) at /home/juneyoung/catkin_ws_suma/src/SuMa/src/visualizer/VisualizerWindow.cpp:34

12 0x0000555555586171 in main (argc=, argv=0x7fffffffd9e8) at /home/juneyoung/catkin_ws_suma/src/SuMa/src/visualizer/visualizer.cpp:19

I cannot find any solution to it.

Thank you for your reply!