Menu

"Search" button crashes

2013-06-07
2013-06-07
  • Anthony Liu

    Anthony Liu - 2013-06-07

    Hi,

    I tried to run qtmib on Ubuntu 12.10 x64.

    Do you have Search working properly at your side? I tried trunk head and release 0.8.2, both share same issue.

    I guess I should have missed installing something, if you could advise any direction to solve this, it would be great.

    When I click "Search" on the main page, it crashes with the following log:

    (gdb) bt

    0 QDialog::exec (this=0x2) at dialogs/qdialog.cpp:503

    1 0x0000000000408c96 in ?? ()

    2 0x00007ffff6dc9281 in QMetaObject::activate (sender=0x542a630, m=<optimized out="">, local_signal_index=<optimized out="">, argv=0x0) at kernel/qobject.cpp:3547

    3 0x00007ffff7328429 in QWidget::event (this=0x542a630, event=0x7fffffffd470) at kernel/qwidget.cpp:8358

    4 0x00007ffff76e83b6 in QFrame::event (this=0x542a630, e=0x7fffffffd470) at widgets/qframe.cpp:557

    5 0x00007ffff72d7894 in notify_helper (e=0x7fffffffd470, receiver=0x542a630, this=0x78ad20) at kernel/qapplication.cpp:4559

    6 QApplicationPrivate::notify_helper (this=0x78ad20, receiver=0x542a630, e=0x7fffffffd470) at kernel/qapplication.cpp:4531

    7 0x00007ffff72dd0bf in QApplication::notify (this=<optimized out="">, receiver=0x542a630, e=0x7fffffffd470) at kernel/qapplication.cpp:4102

    8 0x00007ffff6db4e9c in QCoreApplication::notifyInternal (this=0x7fffffffe1b0, receiver=0x542a630, event=0x7fffffffd470) at kernel/qcoreapplication.cpp:876

    9 0x00007ffff72d8862 in sendEvent (event=<optimized out="">, receiver=<optimized out="">) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231

    10 QApplicationPrivate::sendMouseEvent (receiver=0x542a630, event=0x7fffffffd470, alienWidget=0x542a630, nativeWidget=0x7fffffffe130, buttonDown=0x542a630, lastMouseReceiver=..., spontaneous=true)

    at kernel/qapplication.cpp:3170
    

    11 0x00007ffff7357bf5 in QETWidget::translateMouseEvent (this=0x7fffffffe130, event=<optimized out="">) at kernel/qapplication_x11.cpp:4617

    12 0x00007ffff7356bae in QApplication::x11ProcessEvent (this=0x7fffffffe1b0, event=0x7fffffffdd40) at kernel/qapplication_x11.cpp:3732

    13 0x00007ffff73800d2 in x11EventSourceDispatch (s=0x78eab0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146

    14 0x00007ffff5a4bd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    15 0x00007ffff5a4c0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    16 0x00007ffff5a4c164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

    17 0x00007ffff6de43bf in QEventDispatcherGlib::processEvents (this=0x78c290, flags=...) at kernel/qeventdispatcher_glib.cpp:424

    18 0x00007ffff737fd5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out="">, flags=...) at kernel/qguieventdispatcher_glib.cpp:204

    19 0x00007ffff6db3c82 in QEventLoop::processEvents (this=<optimized out="">, flags=...) at kernel/qeventloop.cpp:149

    20 0x00007ffff6db3ed7 in QEventLoop::exec (this=0x7fffffffe0e0, flags=...) at kernel/qeventloop.cpp:204

    21 0x00007ffff6db8f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148

    22 0x0000000000406dad in ?? ()

    23 0x00007ffff616876d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6

    24 0x0000000000406e81 in ?? ()

    25 0x00007fffffffe2a8 in ?? ()

    26 0x000000000000001c in ?? ()

    27 0x0000000000000001 in ?? ()

    28 0x00007fffffffe543 in ?? ()

    29 0x0000000000000000 in ?? ()

    (gdb)

     
  • RCP Team

    RCP Team - 2013-06-07

    Thank you for the crash report. I think I have an uninitialized variable. In src/mainwindow.cpp can you please add one line

    search_ = 0;

    around line 39 in the file. The result should look something like this:

    MainWindow::MainWindow(QWidget *parent): QMainWindow(parent) {
    checkEnvironment();

    search_ = 0; //<<<<<<< new line here
    pref_ = 0;
    createMenu();
    

    I'll make a new release over the weekend.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.