Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36255

Mac OS QtQuick 1.1 ASSERT: "iface" in file accessible/qaccessible.cpp, line 693 when trying to set focus on TextInput

    XMLWordPrintable

    Details

    • Platform/s:
      macOS
    • Commits:
      97c1b2d32ed06a186ce2f0f342c8d056ddb987a2

      Description

      Take a look at simple QtQuick1.1 code

      import QtQuick 1.1
      
      Rectangle {
          width: 360
          height: 360
          
          Rectangle {
              anchors.left: parent.left;
              anchors.right: parent.right;
              anchors.verticalCenter: parent.verticalCenter;
              height: 40;
              anchors.margins: 20;
              color: "#ccc";
              radius: 8;
              
      	TextInput {
      	    activeFocusOnPress: true;
                  anchors.fill: parent;
                  anchors.margins: 5;
      	}
          }
      }
      

      When you try to click on TextInput and set active focus to it - the app will be crashed. On Qt4.8.5 this code works as well. What is the solution? I want to use Qt5.2 because it renders qt quick-based gui much faster than Qt4.8.5

      Also all works good with QtQuick 2.0 app template

      ASSERT: "iface" in file accessible/qaccessible.cpp, line 693

      Backtrace:

      0	QAccessible::uniqueId(QAccessibleInterface*)	QAccessible::uniqueId(QAccessibleInterface*)		0x10173fc9a	
      1	QCocoaAccessibility::notifyAccessibilityUpdate(QAccessibleEvent*)	QCocoaAccessibility::notifyAccessibilityUpdate(QAccessibleEvent*)		0x102c3b961	
      2	QWidgetLineControl::moveCursor(int, bool)	QWidgetLineControl::moveCursor(int, bool)		0x1012b73a1	
      3	QDeclarativeTextInput::mousePressEvent(QGraphicsSceneMouseEvent*)	QDeclarativeTextInput::mousePressEvent(QGraphicsSceneMouseEvent*)		0x1001b6691	
      4	QGraphicsItem::sceneEvent(QEvent*)	QGraphicsItem::sceneEvent(QEvent*)		0x1013b7953	
      5	QDeclarativeItem::sceneEvent(QEvent*)	QDeclarativeItem::sceneEvent(QEvent*)		0x100196dc4	
      6	non-virtual thunk to QDeclarativeTextInput::sceneEvent(QEvent*)	non-virtual thunk to QDeclarativeTextInput::sceneEvent(QEvent*)		0x1001b6f41	
      7	QGraphicsScenePrivate::sendEvent(QGraphicsItem*, QEvent*)	QGraphicsScenePrivate::sendEvent(QGraphicsItem*, QEvent*)		0x1013dc938	
      8	QGraphicsScenePrivate::sendMouseEvent(QGraphicsSceneMouseEvent*)	QGraphicsScenePrivate::sendMouseEvent(QGraphicsSceneMouseEvent*)		0x1013de12c	
      9	QGraphicsScenePrivate::mousePressEventHandler(QGraphicsSceneMouseEvent*)	QGraphicsScenePrivate::mousePressEventHandler(QGraphicsSceneMouseEvent*)		0x1013de72b	
      10	QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent*)	QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent*)		0x1013e806a	
      11	QGraphicsScene::event(QEvent*)	QGraphicsScene::event(QEvent*)		0x1013e3a2b	
      12	QApplicationPrivate::notify_helper(QObject*, QEvent*)	QApplicationPrivate::notify_helper(QObject*, QEvent*)		0x10110d3bc	
      13	QApplication::notify(QObject*, QEvent*)	QApplication::notify(QObject*, QEvent*)		0x10110fef0	
      14	QCoreApplication::notifyInternal(QObject*, QEvent*)	QCoreApplication::notifyInternal(QObject*, QEvent*)		0x100d0dbc2	
      15	qt_sendSpontaneousEvent(QObject*, QEvent*)	qt_sendSpontaneousEvent(QObject*, QEvent*)		0x1011116ac	
      16	QGraphicsView::mousePressEvent(QMouseEvent*)	QGraphicsView::mousePressEvent(QMouseEvent*)		0x101409cef	
      17	QWidget::event(QEvent*)	QWidget::event(QEvent*)		0x10114589c	
      18	QFrame::event(QEvent*)	QFrame::event(QEvent*)		0x101223977	
      19	QAbstractScrollArea::viewportEvent(QEvent*)	QAbstractScrollArea::viewportEvent(QEvent*)		0x1012a14fa	
      20	QGraphicsView::viewportEvent(QEvent*)	QGraphicsView::viewportEvent(QEvent*)		0x101408b1a	
      21	QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*)	QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*)		0x1012a1fc5	
      22	QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)	QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)		0x100d0debc	
      23	QApplicationPrivate::notify_helper(QObject*, QEvent*)	QApplicationPrivate::notify_helper(QObject*, QEvent*)		0x10110d3a9	
      24	QApplication::notify(QObject*, QEvent*)	QApplication::notify(QObject*, QEvent*)		0x1011109a5	
      25	QCoreApplication::notifyInternal(QObject*, QEvent*)	QCoreApplication::notifyInternal(QObject*, QEvent*)		0x100d0dbc2	
      26	QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)	QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)		0x10110dd23	
      27	QWidgetWindow::handleMouseEvent(QMouseEvent*)	QWidgetWindow::handleMouseEvent(QMouseEvent*)		0x101163258	
      28	QWidgetWindow::event(QEvent*)	QWidgetWindow::event(QEvent*)		0x101162608	
      29	QApplicationPrivate::notify_helper(QObject*, QEvent*)	QApplicationPrivate::notify_helper(QObject*, QEvent*)		0x10110d3bc	
      30	QApplication::notify(QObject*, QEvent*)	QApplication::notify(QObject*, QEvent*)		0x10110fef0	
      31	QCoreApplication::notifyInternal(QObject*, QEvent*)	QCoreApplication::notifyInternal(QObject*, QEvent*)		0x100d0dbc2	
      32	QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)	QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)		0x1017598d2	
      33	QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)	QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)		0x101758c81	
      34	QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)	QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)		0x101748a68	
      35	QCocoaEventDispatcherPrivate::processPostedEvents()	QCocoaEventDispatcherPrivate::processPostedEvents()		0x102c29a17	
      36	QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*)	QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*)		0x102c2a4f8	
      37	__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__	__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__		0x7fff8f8d48f1	
      38	__CFRunLoopDoSources0	__CFRunLoopDoSources0		0x7fff8f8c6062	
      39	__CFRunLoopRun	__CFRunLoopRun		0x7fff8f8c57ef	
      40	CFRunLoopRunSpecific	CFRunLoopRunSpecific		0x7fff8f8c5275	
      41	RunCurrentEventLoopInMode	RunCurrentEventLoopInMode		0x7fff94c00f0d	
      42	ReceiveNextEventCommon	ReceiveNextEventCommon		0x7fff94c00b85	
      43	_BlockUntilNextEventMatchingListInModeWithFilter	_BlockUntilNextEventMatchingListInModeWithFilter		0x7fff94c00abc	
      44	_DPSNextEvent	_DPSNextEvent		0x7fff8c84128e	
      45	-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]	-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]		0x7fff8c8408db	
      46	-[NSApplication run]	-[NSApplication run]		0x7fff8c8349cc	
      47	QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)	QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)		0x102c292a7	
      48	QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)	QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)		0x100d0b05d	
      49	QCoreApplication::exec()	QCoreApplication::exec()		0x100d0e162	
      50	main	main.cpp	14	0x100004cf8	
      51	start	start		0x100004bd4	
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            frederik Frederik Gladhorn
            Reporter:
            bingosoft BIngo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes