Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on RViz startup when building from source #1100

Closed
Kukanani opened this issue May 5, 2017 · 1 comment
Closed

Segfault on RViz startup when building from source #1100

Kukanani opened this issue May 5, 2017 · 1 comment
Assignees
Labels

Comments

@Kukanani
Copy link

Kukanani commented May 5, 2017

This crash seems to be related to #1093. Reverting cdd219 (identified from valgrind output) resolves the issue.

Output:

[ INFO] rviz version 1.12.6
[ INFO] compiled against Qt version 5.5.1
[ INFO] compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] Stereo is NOT SUPPORTED
[ INFO] OpenGl version: 4.5 (GLSL 4.5).
Segmentation fault (core dumped)

Valgrind:

...
[ INFO] Stereo is NOT SUPPORTED
[ INFO] OpenGl version: 4.5 (GLSL 4.5).
==30557== Use of uninitialised value of size 8
==30557==    at 0x5698AAA: QWidget::testAttribute_helper(Qt::WidgetAttribute) const (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==30557==    by 0x56A1EAD: QWidget::winId() const (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==30557==    by 0x516A89A: rviz::RenderWidget::RenderWidget(rviz::RenderSystem*, QWidget*) (render_widget.cpp:75)
==30557==    by 0x5162E0F: rviz::QtOgreRenderWindow::QtOgreRenderWindow(QWidget*) (qt_ogre_render_window.cpp:64)
==30557==    by 0x5191687: rviz::RenderPanel::RenderPanel(QWidget*) (render_panel.cpp:57)
==30557==    by 0x51EEE5E: rviz::VisualizationFrame::initialize(QString const&) (visualization_frame.cpp:283)
==30557==    by 0x5209038: rviz::VisualizerApp::init(int, char**) (visualizer_app.cpp:281)
==30557==    by 0x4011C1: main (main.cpp:40)
==30557== 
==30557== Invalid read of size 4
==30557==    at 0x5698AAE: QWidget::testAttribute_helper(Qt::WidgetAttribute) const (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==30557==    by 0x56A1EAD: QWidget::winId() const (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==30557==    by 0x516A89A: rviz::RenderWidget::RenderWidget(rviz::RenderSystem*, QWidget*) (render_widget.cpp:75)
==30557==    by 0x5162E0F: rviz::QtOgreRenderWindow::QtOgreRenderWindow(QWidget*) (qt_ogre_render_window.cpp:64)
==30557==    by 0x5191687: rviz::RenderPanel::RenderPanel(QWidget*) (render_panel.cpp:57)
==30557==    by 0x51EEE5E: rviz::VisualizationFrame::initialize(QString const&) (visualization_frame.cpp:283)
==30557==    by 0x5209038: rviz::VisualizerApp::init(int, char**) (visualizer_app.cpp:281)
==30557==    by 0x4011C1: main (main.cpp:40)
==30557==  Address 0x636974656e696cdf is not stack'd, malloc'd or (recently) free'd
==30557== 
==30557== 
==30557== Process terminating with default action of signal 11 (SIGSEGV)
==30557==  General Protection Fault
==30557==    at 0x5698AAE: QWidget::testAttribute_helper(Qt::WidgetAttribute) const (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==30557==    by 0x56A1EAD: QWidget::winId() const (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==30557==    by 0x516A89A: rviz::RenderWidget::RenderWidget(rviz::RenderSystem*, QWidget*) (render_widget.cpp:75)
==30557==    by 0x5162E0F: rviz::QtOgreRenderWindow::QtOgreRenderWindow(QWidget*) (qt_ogre_render_window.cpp:64)
==30557==    by 0x5191687: rviz::RenderPanel::RenderPanel(QWidget*) (render_panel.cpp:57)
==30557==    by 0x51EEE5E: rviz::VisualizationFrame::initialize(QString const&) (visualization_frame.cpp:283)
==30557==    by 0x5209038: rviz::VisualizerApp::init(int, char**) (visualizer_app.cpp:281)
==30557==    by 0x4011C1: main (main.cpp:40)
...
@wjwwood
Copy link
Member

wjwwood commented May 5, 2017

@Kukanani thanks for the bug report, this also affects the current binary on ROS Lunar! 🤕

I'm looking into it now.

@wjwwood wjwwood added the bug label May 5, 2017
@wjwwood wjwwood self-assigned this May 5, 2017
wjwwood added a commit that referenced this issue May 5, 2017
wjwwood added a commit that referenced this issue May 6, 2017
* typedef to handle different types for window id handles

* update to follow latest recommendations

for integrating Qt5 and Ogre3D, see:

http://www.ogre3d.org/tikiwiki/tiki-
index.php?page=Integrating+Ogre+into+QT5

* restore conditional for Qt5

fixes #1100
wjwwood added a commit that referenced this issue Jun 5, 2017
* typedef to handle different types for window id handles

* update to follow latest recommendations

for integrating Qt5 and Ogre3D, see:

http://www.ogre3d.org/tikiwiki/tiki-
index.php?page=Integrating+Ogre+into+QT5

* restore conditional for Qt5

fixes #1100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants