Segfault when interacting with QSpinBox



  • I'm running Qt 5.0.1 on MacOS X 10.8.2.

    In the GUI for my main window (set up by designer) I get problems when editing values in QSpinBoxes. Other dialogs set up with designer have no problems.

    Any suggestions ?

    @Program received signal EXC_BAD_ACCESS, Could not access memory.
    Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000008
    0x0000000100649a10 in QWidget::mapTo ()
    (gdb) bt
    #0 0x0000000100649a10 in QWidget::mapTo ()
    #1 0x00000001007b3b0b in QFocusFramePrivate::updateSize ()
    #2 0x00000001007b41d9 in QFocusFrame::eventFilter ()
    #3 0x00000001011bf42c in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
    #4 0x0000000100623792 in QApplicationPrivate::notify_helper ()
    #5 0x0000000100624c0a in QApplication::notify ()
    #6 0x00000001011bf10e in QCoreApplication::notifyInternal ()
    #7 0x000000010067672e in QWidgetWindow::handleResizeEvent ()
    #8 0x00000001006756e7 in QWidgetWindow::event ()
    #9 0x00000001006237a7 in QApplicationPrivate::notify_helper ()
    #10 0x0000000100624c0a in QApplication::notify ()
    #11 0x00000001011bf10e in QCoreApplication::notifyInternal ()
    #12 0x0000000100c3a667 in QGuiApplicationPrivate::processExposeEvent ()
    #13 0x0000000100c36b5d in QGuiApplicationPrivate::processWindowSystemEvent ()
    #14 0x0000000100c2afa8 in QWindowSystemInterface::sendWindowSystemEventsImplementation ()
    #15 0x000000010260c95c in QCocoaWindow::setVisible ()
    #16 0x0000000100c3f298 in QWindow::setVisible ()
    #17 0x0000000100672590 in QWidgetPrivate::create_sys ()
    #18 0x000000010064b05a in QWidget::create ()
    #19 0x000000010064bb95 in QWidgetPrivate::createWinId ()
    #20 0x000000010064acb8 in QWidget::setAttribute ()
    #21 0x000000010065fa99 in QWidgetPrivate::enforceNativeChildren ()
    #22 0x000000010064ac91 in QWidget::setAttribute ()
    #23 0x000000010064bb10 in QWidgetPrivate::createWinId ()
    #24 0x000000010064acb8 in QWidget::setAttribute ()
    #25 0x000000010065fa99 in QWidgetPrivate::enforceNativeChildren ()
    #26 0x000000010064ac91 in QWidget::setAttribute ()
    #27 0x000000010064bb10 in QWidgetPrivate::createWinId ()
    #28 0x000000010064acb8 in QWidget::setAttribute ()
    #29 0x000000010065fa99 in QWidgetPrivate::enforceNativeChildren ()
    #30 0x000000010064ac91 in QWidget::setAttribute ()
    #31 0x000000010064bb10 in QWidgetPrivate::createWinId ()
    #32 0x000000010064acb8 in QWidget::setAttribute ()
    #33 0x000000010065fa99 in QWidgetPrivate::enforceNativeChildren ()
    #34 0x000000010064ac91 in QWidget::setAttribute ()
    #35 0x000000010064bb10 in QWidgetPrivate::createWinId ()
    #36 0x000000010064acb8 in QWidget::setAttribute ()
    #37 0x000000010065fa99 in QWidgetPrivate::enforceNativeChildren ()
    #38 0x000000010064ac91 in QWidget::setAttribute ()
    #39 0x000000010064b32d in QWidget::setParent ()
    #40 0x00000001007b39d1 in QFocusFramePrivate::update ()
    #41 0x00000001006164a6 in QMacStyle::event ()
    #42 0x00000001006c4346 in QStyleSheetStyle::event ()
    #43 0x00000001006237a7 in QApplicationPrivate::notify_helper ()
    #44 0x0000000100624c0a in QApplication::notify ()
    #45 0x00000001011bf10e in QCoreApplication::notifyInternal ()
    #46 0x0000000100621d7d in QApplicationPrivate::setFocusWidget ()
    #47 0x0000000100656d4d in QWidget::setFocus ()
    #48 0x0000000100625154 in QApplication::notify ()
    #49 0x00000001011bf10e in QCoreApplication::notifyInternal ()
    #50 0x000000010062416d in QApplicationPrivate::sendMouseEvent ()
    #51 0x0000000100676502 in QWidgetWindow::handleMouseEvent ()
    #52 0x00000001006756a8 in QWidgetWindow::event ()
    #53 0x00000001006237a7 in QApplicationPrivate::notify_helper ()
    #54 0x0000000100624c0a in QApplication::notify ()
    #55 0x00000001011bf10e in QCoreApplication::notifyInternal ()
    #56 0x0000000100c3758f in QGuiApplicationPrivate::processMouseEvent ()
    #57 0x0000000100c369ec in QGuiApplicationPrivate::processWindowSystemEvent ()
    #58 0x0000000100c2afa8 in QWindowSystemInterface::sendWindowSystemEventsImplementation ()
    #59 0x0000000100c2b038 in QWindowSystemInterface::sendWindowSystemEvents ()
    #60 0x00000001026157c5 in QCocoaEventDispatcherPrivate::processPostedEvents ()
    #61 0x00000001026160cb in QCocoaEventDispatcherPrivate::postedEventsSourceCallback ()
    #62 0x00007fff969ae101 in CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION ()
    #63 0x00007fff969ada25 in __CFRunLoopDoSources0 ()
    #64 0x00007fff969d0dc5 in __CFRunLoopRun ()
    #65 0x00007fff969d06b2 in CFRunLoopRunSpecific ()
    #66 0x00007fff8ce520a4 in RunCurrentEventLoopInMode ()
    #67 0x00007fff8ce51d84 in ReceiveNextEventCommon ()
    #68 0x00007fff8ce51cd3 in BlockUntilNextEventMatchingListInMode ()
    #69 0x00007fff947d3613 in _DPSNextEvent ()
    #70 0x00007fff947d2ed2 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
    #71 0x00007fff947ca283 in -[NSApplication run] ()
    #72 0x0000000102614dcb in QCocoaEventDispatcher::processEvents ()
    #73 0x00000001011bc913 in QEventLoop::exec ()
    #74 0x00000001011bf695 in QCoreApplication::exec ()
    #75 0x000000010000f684 in main (argc=1, argv=0x7fff5fbffa10) at main.cc:76@



  • It looks like this may be caused by this issue: https://bugreports.qt-project.org/browse/QTBUG-28816

    I also have a QGraphicsScene backed by a QGLWidget in the same window.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.