[Qt-interest] Hiding rows and columns of buttons in a grid layout - segfault

Camilo Polymeris cpolymeris at gmail.com
Tue Sep 21 00:04:23 CEST 2010


Hit reply instead of reply to all when sending this message:

On Sun, Sep 19, 2010 at 4:51 PM, Camilo Polymeris <cpolymeris at gmail.com> wrote:
>> Camilo,
>> if you run the code under a debugger, what is the backtrace to the SEGFAULT?
>
> Backtrace:
> mainwindow.cc:73 is  (*it)->setVisible(visible);
> It seems bg is invalid? (I get "no information" for *bg)
>
> 0       MainWindow::setButtonGroupVisible       mainwindow.cc   73      0x0000000000407fc5
> 1       MainWindow::on_con0202_toggled  mainwindow_slots.cc     107     0x00000000004ef035
> 2       MainWindow::qt_metacall moc_mainwindow.cpp      154     0x00000000004f397c
> 3       QMetaObject::activate(QObject*, QMetaObject const*, int,
> void**) /usr/lib/libQtCore.so.4 0       0x00007ffff6845e3f
> 4       QAbstractButton::toggled(bool)  /usr/lib/libQtGui.so.4  0       0x00007ffff73a15b2
> 5       QAbstractButton::setChecked(bool)       /usr/lib/libQtGui.so.4  0       0x00007ffff70bca38
> 6       ??      /usr/lib/libQtGui.so.4  0       0x00007ffff70bc6ca
> 7       QAbstractButton::mouseReleaseEvent(QMouseEvent*)        /usr/lib/libQtGui.so.4  0       0x00007ffff70bc97c
> 8       QWidget::event(QEvent*) /usr/lib/libQtGui.so.4  0       0x00007ffff6d5c582
> 9       QApplicationPrivate::notify_helper(QObject*,
> QEvent*)        /usr/lib/libQtGui.so.4  0       0x00007ffff6d0622c
> 10      QApplication::notify(QObject*,
> QEvent*)        /usr/lib/libQtGui.so.4  0       0x00007ffff6d0cecb
> 11      QCoreApplication::notifyInternal(QObject*,
> QEvent*)        /usr/lib/libQtCore.so.4 0       0x00007ffff683306c
> 12      QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*,
> QWidget*, QWidget*, QWidget**, QPointer<QWidget>&,
> bool)   /usr/lib/libQtGui.so.4  0       0x00007ffff6d0c0ae
> 13      ??      /usr/lib/libQtGui.so.4  0       0x00007ffff6d8bf65
> 14      QApplication::x11ProcessEvent(_XEvent*) /usr/lib/libQtGui.so.4  0       0x00007ffff6d8a8ac
> 15      ??      /usr/lib/libQtGui.so.4  0       0x00007ffff6db6882
> 16      g_main_context_dispatch /lib/libglib-2.0.so.0   0       0x00007ffff4e7d522
> 17      ??      /lib/libglib-2.0.so.0   0       0x00007ffff4e81488
> 18      g_main_context_iteration        /lib/libglib-2.0.so.0   0       0x00007ffff4e8163c
> 19      QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)      /usr/lib/libQtCore.so.4 0       0x00007ffff685c513
> 20      ??      /usr/lib/libQtGui.so.4  0       0x00007ffff6db646e
> ...     <More>
>
>>
>> As you appear to be running under a *NIX, and assuming that this is Linux or MacOS,
>> could you run the code under Valgrind[1], and see if any errors are reported before
>> your app crashes?
>>
>
> Ok. Errors reported by 'valgrind ./emutrix' before crash:
> http://pastebin.com/Pc35EVzB
> I have never used valgrind, so I don't know what to make of this.
> Thank you for your help.
>
>> HTH,
>> Colin S. Miller
>
> Thanks again,
> Camilo
>




More information about the Qt-interest-old mailing list