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

crash in Controls Text Edit example when pasting in large amounts of text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.3
    • 6.3.0 Feature Freeze
    • None
    • 924b2d5d47a33d11999a8edbfe6960e9593038ec

    Description

      Run the example, copy a big chunk of text from a browser (like generate a bunch of paragraphs on lipsum.com, copy the whole front page of slashdot, copy whatever source file you are editing) and paste it in.

      * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
        * frame #0: 0x00007ff801ced112 libsystem_kernel.dylib`__pthread_kill + 10
          frame #1: 0x00007ff801d23214 libsystem_pthread.dylib`pthread_kill + 263
          frame #2: 0x00007ff801c6fd10 libsystem_c.dylib`abort + 123
          frame #3: 0x000000010c45bab9 libQt6Core_debug.6.dylib`qAbort() at qglobal.cpp:3397:5
          frame #4: 0x000000010c4689d8 libQt6Core_debug.6.dylib`qt_message_fatal((null)=QtFatalMsg, context=0x00007ff7bfef9408, message=0x00007ff7bfef93c8) at qlogging.cpp:1882:5
          frame #5: 0x000000010cb0474a libQt6Core_debug.6.dylib`QMessageLogger::fatal(this=0x00007ff7bfef9408, msg="ASSERT: \"%s\" in file %s, line %d") const at qlogging.cpp:890:5
          frame #6: 0x000000010cb03388 libQt6Core_debug.6.dylib`qt_assert(assertion="!(max < min)", file="qtbase/include/QtCore/../../../../qt6/qtbase/src/corelib/global/qglobal.h", line=1058) at qglobal.cpp:3304:41
          frame #7: 0x00000001040dc32b libQt6QuickTemplates2_debug.6.dylib`double const& qBound<double>(min=0x00007ff7bfef94d0, val=0x00007ff7bfef94c8, max=0x00007ff7bfef94b8) at qglobal.h:1058:5
          frame #8: 0x00000001041446a0 libQt6QuickTemplates2_debug.6.dylib`QQuickScrollBarPrivate::visualArea(this=0x00000001008a2870) const at qquickscrollbar.cpp:170:24
          frame #9: 0x0000000104144bf6 libQt6QuickTemplates2_debug.6.dylib`QQuickScrollBarPrivate::resizeContent(this=0x00000001008a2870) at qquickscrollbar.cpp:249:31
          frame #10: 0x0000000104145831 libQt6QuickTemplates2_debug.6.dylib`QQuickScrollBar::setPosition(this=0x0000600003b02760, position=1.9404761904761905) at qquickscrollbar.cpp:473:12
          frame #11: 0x0000000104042867 libQt6QuickTemplates2_debug.6.dylib`QQuickScrollBar::qt_static_metacall(_o=0x0000600003b02760, _c=InvokeMetaMethod, _id=15, _a=0x00007ff7bfef9950) at moc_qquickscrollbar_p.cpp:239:22
          frame #12: 0x000000010c5d0e05 libQt6Core_debug.6.dylib`void doActivate<false>(sender=0x0000600001793440, signal_index=4, argv=0x00007ff7bfef9950) at qobject.cpp:3938:21
          frame #13: 0x000000010c5cf869 libQt6Core_debug.6.dylib`QMetaObject::activate(sender=0x0000600001793440, m=0x00000001024b6710, local_signal_index=1, argv=0x00007ff7bfef9950) at qobject.cpp:3986:9
          frame #14: 0x0000000101d61685 libQt6Quick_debug.6.dylib`QQuickFlickableVisibleArea::yPositionChanged(this=0x0000600001793440, _t1=1.9404761904761905) at moc_qquickflickable_p_p.cpp:225:5
          frame #15: 0x0000000101db3312 libQt6Quick_debug.6.dylib`QQuickFlickableVisibleArea::updateVisible(this=0x0000600001793440) at qquickflickable.cpp:177:14
          frame #16: 0x0000000101db60b0 libQt6Quick_debug.6.dylib`QQuickFlickablePrivate::updateBeginningEnd(this=0x0000000107109000) at qquickflickable.cpp:601:22
          frame #17: 0x0000000101dbd0b7 libQt6Quick_debug.6.dylib`QQuickFlickable::viewportMoved(this=0x0000600003b02680, orient=(i = 2)) at qquickflickable.cpp:1874:8
          frame #18: 0x0000000101db4456 libQt6Quick_debug.6.dylib`QQuickFlickablePrivate::itemGeometryChanged(this=0x0000000107109000, item=0x000060000026de60, change=(kind = 2), (null)=0x00007ff7bfef9ce8) at qquickflickable.cpp:343:16
          frame #19: 0x0000000101e1e726 libQt6Quick_debug.6.dylib`QQuickItem::geometryChange(this=0x00007ff7bfef9c88, listener=0x0000600002165910)::$_2::operator()(QQuickItemPrivate::ChangeListener const&) const at qquickitem.cpp:3790:32
          frame #20: 0x0000000101dea3a6 libQt6Quick_debug.6.dylib`void QQuickItemPrivate::notifyChangeListeners<QQuickItem::geometryChange(QRectF const&, QRectF const&)::$_2>(this=0x00000001008a1cd0, changeTypes=(i = 1), function=0x00007ff7bfef9c88)::$_2&&) at qquickitem_p.h:386:17
          frame #21: 0x0000000101dea16b libQt6Quick_debug.6.dylib`QQuickItem::geometryChange(this=0x000060000026de60, newGeometry=0x00007ff7bfef9d08, oldGeometry=0x00007ff7bfef9ce8) at qquickitem.cpp:3788:8
          frame #22: 0x0000000101df3aa2 libQt6Quick_debug.6.dylib`QQuickItem::setY(this=0x000060000026de60, v=-978) at qquickitem.cpp:6957:5
          frame #23: 0x0000000101db3a6c libQt6Quick_debug.6.dylib`QQuickFlickablePrivate::setViewportY(this=0x0000000107109000, y=-978) at qquickflickable.cpp:1801:18
          frame #24: 0x0000000101db6b55 libQt6Quick_debug.6.dylib`QQuickTimeLineValueProxy<QQuickFlickablePrivate>::setValue(this=0x00000001071092c0, v=-978) at qquicktimeline_p_p.h:188:31
          frame #25: 0x0000000101db6d47 libQt6Quick_debug.6.dylib`QQuickFlickable::setContentY(this=0x0000600003b02680, pos=978) at qquickflickable.cpp:822:23
          frame #26: 0x00000001041a238f libQt6QuickTemplates2_debug.6.dylib`QQuickTextAreaPrivate::ensureCursorVisible(this=0x00000001008a3f50) at qquicktextarea.cpp:387:24
          frame #27: 0x00000001041a6db4 libQt6QuickTemplates2_debug.6.dylib`QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (QQuickTextAreaPrivate::*)()>::call(f=20 20 1a 04 01 00 00 00 00 00 00 00 00 00 00 00, o=0x00000001008a3f50, arg=0x00007ff7bfefa2b8)(), QQuickTextAreaPrivate*, void**) at qobjectdefs_impl.h:171:13
          frame #28: 0x00000001041a6ced libQt6QuickTemplates2_debug.6.dylib`void QtPrivate::FunctionPointer<void (QQuickTextAreaPrivate::*)()>::call<QtPrivate::List<>, void>(f=20 20 1a 04 01 00 00 00 00 00 00 00 00 00 00 00, o=0x00000001008a3f50, arg=0x00007ff7bfefa2b8)(), QQuickTextAreaPrivate*, void**) at qobjectdefs_impl.h:208:13
          frame #29: 0x00000001041a6bf2 libQt6QuickTemplates2_debug.6.dylib`QtPrivate::QPrivateSlotObject<void (QQuickTextAreaPrivate::*)(), QtPrivate::List<>, void>::impl(which=1, this_=0x000060000026e180, r=0x0000600003b02840, a=0x00007ff7bfefa2b8, ret=0x0000000000000000) at qobject_p.h:512:17
          frame #30: 0x000000010c54b750 libQt6Core_debug.6.dylib`QtPrivate::QSlotObjectBase::call(this=0x000060000026e180, r=0x0000600003b02840, a=0x00007ff7bfefa2b8) at qobjectdefs_impl.h:399:51
          frame #31: 0x000000010c5d0d0f libQt6Core_debug.6.dylib`void doActivate<false>(sender=0x0000600003b02840, signal_index=36, argv=0x00007ff7bfefa2b8) at qobject.cpp:3926:26
          frame #32: 0x000000010c5cf869 libQt6Core_debug.6.dylib`QMetaObject::activate(sender=0x0000600003b02840, m=0x00000001024c0a60, local_signal_index=4, argv=0x0000000000000000) at qobject.cpp:3986:9
          frame #33: 0x0000000101edef25 libQt6Quick_debug.6.dylib`QQuickTextEdit::cursorRectangleChanged(this=0x0000600003b02840) at moc_qquicktextedit_p.cpp:1258:5
          frame #34: 0x0000000101ed56cb libQt6Quick_debug.6.dylib`QQuickTextEdit::moveCursorDelegate(this=0x0000600003b02840) at qquicktextedit.cpp:2511:10
          frame #35: 0x0000000101ee1071 libQt6Quick_debug.6.dylib`QQuickTextEdit::qt_static_metacall(_o=0x0000600003b02840, _c=InvokeMetaMethod, _id=61, _a=0x00007ff7bfefae08) at moc_qquicktextedit_p.cpp:720:22
          frame #36: 0x0000000101ee349c libQt6Quick_debug.6.dylib`QQuickTextEdit::qt_metacall(this=0x0000600003b02840, _c=InvokeMetaMethod, _id=61, _a=0x00007ff7bfefae08) at moc_qquicktextedit_p.cpp:1213:13
          frame #37: 0x000000010404933d libQt6QuickTemplates2_debug.6.dylib`QQuickTextArea::qt_metacall(this=0x0000600003b02840, _c=InvokeMetaMethod, _id=112, _a=0x00007ff7bfefae08) at moc_qquicktextarea_p.cpp:478:27
          frame #38: 0x000000010ae80aa5 libQt6Qml_debug.6.dylib`QQmlVMEMetaObject::metaCall(this=0x000060000302f210, o=0x0000600003b02840, c=InvokeMetaMethod, _id=112, a=0x00007ff7bfefae08) at qqmlvmemetaobject.cpp:1038:24
          frame #39: 0x000000010c5460c3 libQt6Core_debug.6.dylib`QMetaObject::metacall(object=0x0000600003b02840, cl=InvokeMetaMethod, idx=112, argv=0x00007ff7bfefae08) at qmetaobject.cpp:319:43
          frame #40: 0x000000010c5d0e38 libQt6Core_debug.6.dylib`void doActivate<false>(sender=0x000060000026de00, signal_index=15, argv=0x00007ff7bfefae08) at qobject.cpp:3952:21
          frame #41: 0x000000010c5cf869 libQt6Core_debug.6.dylib`QMetaObject::activate(sender=0x000060000026de00, m=0x00000001024c0310, local_signal_index=12, argv=0x0000000000000000) at qobject.cpp:3986:9
          frame #42: 0x0000000101ec0aa5 libQt6Quick_debug.6.dylib`QQuickTextControl::cursorRectangleChanged(this=0x000060000026de00) at moc_qquicktextcontrol_p.cpp:485:5
          frame #43: 0x0000000101ebde6f libQt6Quick_debug.6.dylib`QQuickTextControl::updateCursorRectangle(this=0x000060000026de00, force=true) at qquicktextcontrol.cpp:657:14
          frame #44: 0x0000000101ebeee9 libQt6Quick_debug.6.dylib`QQuickTextControlPrivate::_q_updateCursorPosChanged(this=0x00000001008a5640, someCursor=0x0000600000c96a10) at qquicktextcontrol.cpp:467:12
          frame #45: 0x0000000101ec7a1e libQt6Quick_debug.6.dylib`QQuickTextControl::qt_static_metacall(_o=0x000060000026de00, _c=InvokeMetaMethod, _id=29, _a=0x00007ff7bfefb260) at moc_qquicktextcontrol_p.cpp:229:32
          frame #46: 0x0000000101ec82bc libQt6Quick_debug.6.dylib`QQuickTextControl::qt_metacall(this=0x000060000026de00, _c=InvokeMetaMethod, _id=29, _a=0x00007ff7bfefb260) at moc_qquicktextcontrol_p.cpp:394:13
          frame #47: 0x000000010c5460df libQt6Core_debug.6.dylib`QMetaObject::metacall(object=0x000060000026de00, cl=InvokeMetaMethod, idx=34, argv=0x00007ff7bfefb260) at qmetaobject.cpp:321:24
          frame #48: 0x000000010c5d0e38 libQt6Core_debug.6.dylib`void doActivate<false>(sender=0x0000600000ca20d0, signal_index=9, argv=0x00007ff7bfefb260) at qobject.cpp:3952:21
          frame #49: 0x000000010c5cf869 libQt6Core_debug.6.dylib`QMetaObject::activate(sender=0x0000600000ca20d0, m=0x00000001093372d8, local_signal_index=6, argv=0x00007ff7bfefb260) at qobject.cpp:3986:9
          frame #50: 0x000000010882d6e4 libQt6Gui_debug.6.dylib`QTextDocument::cursorPositionChanged(this=0x0000600000ca20d0, _t1=0x0000600000c96a10) at moc_qtextdocument.cpp:445:5
          frame #51: 0x0000000108cd2c88 libQt6Gui_debug.6.dylib`QTextDocumentPrivate::finishEdit(this=0x00000001008a42f0) at qtextdocument_p.cpp:1250:17
          frame #52: 0x0000000108cd27b1 libQt6Gui_debug.6.dylib`QTextDocumentPrivate::endEditBlock(this=0x00000001008a42f0) at qtextdocument_p.cpp:1208:5
          frame #53: 0x0000000108caa439 libQt6Gui_debug.6.dylib`QTextCursor::insertFragment(this=0x00000001008a56f0, fragment=0x00007ff7bfefb4d0) at qtextcursor.cpp:2263:14
          frame #54: 0x0000000101ec6d78 libQt6Quick_debug.6.dylib`QQuickTextControl::insertFromMimeData(this=0x000060000026de00, source=0x000060000026e3a0) at qquicktextcontrol.cpp:1697:19
          frame #55: 0x0000000101ec0d27 libQt6Quick_debug.6.dylib`QQuickTextControl::paste(this=0x000060000026de00, mode=Clipboard) at qquicktextcontrol.cpp:708:9
          frame #56: 0x0000000101ec19fe libQt6Quick_debug.6.dylib`QQuickTextControlPrivate::keyPressEvent(this=0x00000001008a5640, e=0x00007ff7bfefd7d8) at qquicktextcontrol.cpp:916:12
          frame #57: 0x0000000101ec0f68 libQt6Quick_debug.6.dylib`QQuickTextControl::processEvent(this=0x000060000026de00, e=0x00007ff7bfefd7d8, transform=0x00007ff7bfefb808) at qquicktextcontrol.cpp:739:16
          frame #58: 0x0000000101ec0ec2 libQt6Quick_debug.6.dylib`QQuickTextControl::processEvent(this=0x000060000026de00, e=0x00007ff7bfefd7d8, coordinateOffset=0x00007ff7bfefb898) at qquicktextcontrol.cpp:726:5
          frame #59: 0x0000000101ed9b78 libQt6Quick_debug.6.dylib`QQuickTextEdit::keyPressEvent(this=0x0000600003b02840, event=0x00007ff7bfefd7d8) at qquicktextedit.cpp:1730:17
          frame #60: 0x0000000101df0451 libQt6Quick_debug.6.dylib`QQuickItemPrivate::deliverKeyEvent(this=0x00000001008a3f50, e=0x00007ff7bfefd7d8) at qquickitem.cpp:5449:12
          frame #61: 0x0000000101df7908 libQt6Quick_debug.6.dylib`QQuickItem::event(this=0x0000600003b02840, ev=0x00007ff7bfefd7d8) at qquickitem.cpp:8646:12
          frame #62: 0x0000000101ed9a4b libQt6Quick_debug.6.dylib`QQuickTextEdit::event(this=0x0000600003b02840, event=0x00007ff7bfefd7d8) at qquicktextedit.cpp:1694:36
          frame #63: 0x0000000104fc726a libQt6Widgets_debug.6.dylib`QApplicationPrivate::notify_helper(this=0x0000000100a05a10, receiver=0x0000600003b02840, e=0x00007ff7bfefd7d8) at qapplication.cpp:3336:26
          frame #64: 0x0000000104fcb9c9 libQt6Widgets_debug.6.dylib`QApplication::notify(this=0x00007ff7bfefebf0, receiver=0x0000600003b02840, e=0x00007ff7bfefd7d8) at qapplication.cpp:3287:18
          frame #65: 0x000000010c52850c libQt6Core_debug.6.dylib`QCoreApplication::notifyInternal2(receiver=0x0000600003b02840, event=0x00007ff7bfefd7d8) at qcoreapplication.cpp:1067:18
          frame #66: 0x000000010c529333 libQt6Core_debug.6.dylib`QCoreApplication::sendEvent(receiver=0x0000600003b02840, event=0x00007ff7bfefd7d8) at qcoreapplication.cpp:1483:12
          frame #67: 0x00000001020d585f libQt6Quick_debug.6.dylib`QQuickDeliveryAgentPrivate::deliverKeyEvent(this=0x0000000100893cf0, e=0x00007ff7bfefd7d8) at qquickdeliveryagent.cpp:856:9
          frame #68: 0x0000000101f4a745 libQt6Quick_debug.6.dylib`QQuickWindow::keyPressEvent(this=0x0000600003d04870, e=0x00007ff7bfefd7d8) at qquickwindow.cpp:1589:9
          frame #69: 0x00000001089d47a6 libQt6Gui_debug.6.dylib`QWindow::event(this=0x0000600003d04870, ev=0x00007ff7bfefd7d8) at qwindow.cpp:2438:9
          frame #70: 0x0000000101f4a219 libQt6Quick_debug.6.dylib`QQuickWindow::event(this=0x0000600003d04870, e=0x00007ff7bfefd7d8) at qquickwindow.cpp:1578:25
          frame #71: 0x0000000104fc726a libQt6Widgets_debug.6.dylib`QApplicationPrivate::notify_helper(this=0x0000000100a05a10, receiver=0x0000600003d04870, e=0x00007ff7bfefd7d8) at qapplication.cpp:3336:26
          frame #72: 0x0000000104fcb9c9 libQt6Widgets_debug.6.dylib`QApplication::notify(this=0x00007ff7bfefebf0, receiver=0x0000600003d04870, e=0x00007ff7bfefd7d8) at qapplication.cpp:3287:18
          frame #73: 0x000000010c52850c libQt6Core_debug.6.dylib`QCoreApplication::notifyInternal2(receiver=0x0000600003d04870, event=0x00007ff7bfefd7d8) at qcoreapplication.cpp:1067:18
          frame #74: 0x000000010c5293c3 libQt6Core_debug.6.dylib`QCoreApplication::sendSpontaneousEvent(receiver=0x0000600003d04870, event=0x00007ff7bfefd7d8) at qcoreapplication.cpp:1497:12
          frame #75: 0x0000000108943695 libQt6Gui_debug.6.dylib`QGuiApplicationPrivate::processKeyEvent(e=0x0000600002ca3d00) at qguiapplication.cpp:2371:9
          frame #76: 0x0000000108941f80 libQt6Gui_debug.6.dylib`QGuiApplicationPrivate::processWindowSystemEvent(e=0x0000600002ca3d00) at qguiapplication.cpp:2005:9
          frame #77: 0x00000001089dffee libQt6Gui_debug.6.dylib`QWindowSystemInterface::sendWindowSystemEvents(flags=(i = 0)) at qwindowsysteminterface.cpp:1134:13
          frame #78: 0x00000001089dfe00 libQt6Gui_debug.6.dylib`QWindowSystemInterface::flushWindowSystemEvents(flags=(i = 0)) at qwindowsysteminterface.cpp:1103:9
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes