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

Selecting a non controllable object causes segmentation fault when updating the Lua Variable Tree #5

Closed
allsey87 opened this issue Apr 18, 2013 · 1 comment

Comments

@allsey87
Copy link
Collaborator

As the title suggests, when an uncontrollable object is selected, there is a segfault that occurs when the QtLuaEditorWindow tries to get the 'variables' from the non controllable object.

Here is a backtrace from GDB:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1f26cfc in argos::CQTOpenGLLuaMainWindow::VariableTreeChanged (this=0xe86bc0)
    at /home/allsey87/Workspace/ARGoS/argos3/src/plugins/simulator/visualizations/qt-opengl/qtopengl_lua_main_window.cpp:741
741       m_pcLuaVariableTree->setRootIndex(m_pcLuaVariableTree->model()->index(0, 0));
(gdb) backtrace
#0  0x00007ffff1f26cfc in argos::CQTOpenGLLuaMainWindow::VariableTreeChanged (this=0xe86bc0)
    at /home/allsey87/Workspace/ARGoS/argos3/src/plugins/simulator/visualizations/qt-opengl/qtopengl_lua_main_window.cpp:741
#1  0x00007ffff1ef9e7d in argos::CQTOpenGLLuaMainWindow::qt_static_metacall (_o=0xe86bc0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x2703ef0)
    at /home/allsey87/Workspace/ARGoS/argos3/build/plugins/simulator/visualizations/qt-opengl/moc_qtopengl_lua_main_window.cxx:83
#2  0x00007ffff08f9446 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007ffff0e52b7b in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4  0x00007ffff122cc4b in QMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5  0x00007ffff0e02894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6  0x00007ffff0e07713 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007ffff1f03a6a in argos::CQTOpenGLApplication::notify (this=0x624a20, pc_receiver=0xe86bc0, pc_event=0x2627030)
    at /home/allsey87/Workspace/ARGoS/argos3/src/plugins/simulator/visualizations/qt-opengl/qtopengl_application.cpp:21
#8  0x00007ffff08dfe9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ffff08e3c6a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ffff090ef93 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007fffee487d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007fffee4880a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007fffee488164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff090f3bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007ffff0eaad5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007ffff08dec82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007ffff08deed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff08e3f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007ffff1f12501 in argos::CQTOpenGLRender::Execute (this=0x624850) at /home/allsey87/Workspace/ARGoS/argos3/src/plugins/simulator/visualizations/qt-opengl/qtopengl_render.cpp:61
#20 0x00007ffff7b3f0c1 in argos::CSimulator::Execute (this=0x623570) at /home/allsey87/Workspace/ARGoS/argos3/src/core/simulator/simulator.cpp:239
#21 0x0000000000415062 in main (n_argc=3, ppch_argv=0x7fffffffdd08) at /home/allsey87/Workspace/ARGoS/argos3/src/core/simulator/main.cpp:38
(gdb) 
@allsey87
Copy link
Collaborator Author

As expected, disabling the Lua editor from the experiment XML prevents this segfault as there is no Lau Window to be updated...

@ilpincy ilpincy closed this as completed Aug 4, 2015
ilpincy pushed a commit that referenced this issue Oct 12, 2019
- Adds some additional information about what ARGoS was built with.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants