RTXI / rtxi

Tutorials, FAQs, and more at http://rtxi.org/docs
GNU General Public License v3.0
53 stars 15 forks source link

Opening .h5 files in the Data Recorder crashes RTXI #38

Closed sudorook closed 9 years ago

sudorook commented 10 years ago

Below is the error message I get when I open a file in the Data Recorder. I select Choose File, select my .h5 file, and then a prompt comes up saying the file exists and that I can either overwrite, append, or cancel. After selecting any of those options. RTXI crashes.

in customevent
hit1
hit1b

Program received signal SIGSEGV, Segmentation fault.
__GI___pthread_mutex_lock (mutex=0x7ffff6dd7a00 <QObject::event(QEvent*)+48>)
    at ../nptl/pthread_mutex_lock.c:66
66  ../nptl/pthread_mutex_lock.c: No such file or directory.
(gdb) bt
#0  __GI___pthread_mutex_lock (mutex=0x7ffff6dd7a00 <QObject::event(QEvent*)+48>)
    at ../nptl/pthread_mutex_lock.c:66
#1  0x00007ffff6cbd67c in QWaitCondition::wakeAll() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fffe77e477d in DataRecorder::Panel::customEvent(QEvent*) ()
   from /usr/local/lib/rtxi/data_recorder.so
#3  0x00007ffff6dd7cad in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007ffff734055b in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5  0x00007ffff72f0e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6  0x00007ffff72f74a0 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007ffff6dbf4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007ffff6dc2b3d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ffff6decf83 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ffff51d8e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff51d9048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff51d90ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff6dec7a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007ffff7392bb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x00007ffff6dbe0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007ffff6dbe3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007ffff6dc3b79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x0000000000414b2c in main ()

RTXI also crashes when I create a new file within the choose file dialog window. Instead of saying

hit1
hit1b

it just says

hit3
sudorook commented 9 years ago

The QCustomEvent class was removed in Qt4. Posting QWaitConditions along with a QEvent required subclassing QEvent.