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

Assertion failure when dragging MouseArea

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.11
    • None

    Description

      import QtQuick
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
      
          Rectangle {
              id: container
              width: 600; height: 200
      
              Rectangle {
                  id: rect
                  width: 650; height: 50
                  color: "red"
                  opacity: (600.0 - rect.x) / 600
      
                  MouseArea {
                      anchors.fill: parent
                      drag.target: rect
                      drag.axis: Drag.XAxis
                      drag.minimumX: 0
                      drag.maximumX: container.width - rect.width
                  }
              }
          }
      }
      
      * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
        * frame #0: 0x000000018e0d9388 libsystem_kernel.dylib`__pthread_kill + 8
          frame #1: 0x000000018e11288c libsystem_pthread.dylib`pthread_kill + 296
          frame #2: 0x000000018e01bc60 libsystem_c.dylib`abort + 124
          frame #3: 0x0000000116aa8c0c libQt6Core_debug.6.dylib`qAbort() at qassert.cpp:46:5
          frame #4: 0x0000000116b62a88 libQt6Core_debug.6.dylib`void qt_maybe_message_fatal<QString&>(msgType=QtFatalMsg, context=0x000000016fdf73e0, message=0x000000016fdf72a0) at qlogging.cpp:2168:5
          frame #5: 0x0000000116b56230 libQt6Core_debug.6.dylib`qt_message(msgType=QtFatalMsg, context=0x000000016fdf73e0, msg="ASSERT: \"%s\" in file %s, line %d", ap="\xa0z\xb1\U00000004\U00000001") at qlogging.cpp:412:5
          frame #6: 0x0000000117c745f0 libQt6Core_debug.6.dylib`QMessageLogger::fatal(this=0x000000016fdf76e0, msg="ASSERT: \"%s\" in file %s, line %d") const at qlogging.cpp:901:5
          frame #7: 0x0000000117c71a38 libQt6Core_debug.6.dylib`qt_assert(assertion="!(max < min)", file="/Users/mitch/dev/qt-dev/qtbase/src/corelib/global/qminmax.h", line=25) at qassert.cpp:106:14
          frame #8: 0x000000010358f614 libQt6Quick_debug.6.dylib`double const& qBound<double>(min=0x000000016fdf7980, val=0x000000016fdf79a0, max=0x000000016fdf79c0) at qminmax.h:25:5
          frame #9: 0x00000001038166d8 libQt6Quick_debug.6.dylib`QQuickMouseArea::mouseMoveEvent(this=0x000061100010f580, event=0x000000016fdfc490) at qquickmousearea.cpp:700:33
          frame #10: 0x000000010373bc74 libQt6Quick_debug.6.dylib`QQuickItem::event(this=0x000061100010f580, ev=0x000000016fdfc490) at qquickitem.cpp:9182:9
          frame #11: 0x0000000116dc5e1c libQt6Core_debug.6.dylib`QCoreApplicationPrivate::notify_helper(receiver=0x000061100010f580, event=0x000000016fdfc490) at qcoreapplication.cpp:1281:26
          frame #12: 0x0000000116dc4fa4 libQt6Core_debug.6.dylib`doNotify(receiver=0x000061100010f580, event=0x000000016fdfc490) at qcoreapplication.cpp:1210:47
          frame #13: 0x0000000116dc521c libQt6Core_debug.6.dylib`QCoreApplication::notify(this=0x000000016fdfee90, receiver=0x000061100010f580, event=0x000000016fdfc490) at qcoreapplication.cpp:1193:12
          frame #14: 0x00000001126d753c libQt6Gui_debug.6.dylib`QGuiApplication::notify(this=0x000000016fdfee90, object=0x000061100010f580, event=0x000000016fdfc490) at qguiapplication.cpp:2056:30
          frame #15: 0x0000000116dc4c0c libQt6Core_debug.6.dylib`QCoreApplication::notifyInternal2(receiver=0x000061100010f580, event=0x000000016fdfc490) at qcoreapplication.cpp:1109:18
          frame #16: 0x0000000116dc7778 libQt6Core_debug.6.dylib`QCoreApplication::sendEvent(receiver=0x000061100010f580, event=0x000000016fdfc490) at qcoreapplication.cpp:1549:12
          frame #17: 0x0000000104006498 libQt6Quick_debug.6.dylib`QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(this=0x0000613000039000, item=0x000061100010f580, isGrabber=true, pointerEvent=0x000000016fdfc490, handlersOnly=false) at qquickdeliveryagent.cpp:2453:13
          frame #18: 0x0000000104003bfc libQt6Quick_debug.6.dylib`QQuickDeliveryAgentPrivate::deliverUpdatedPoints(this=0x0000613000039000, event=0x000000016fdfc490) at qquickdeliveryagent.cpp:2231:13
          frame #19: 0x0000000103ff6ed8 libQt6Quick_debug.6.dylib`QQuickDeliveryAgentPrivate::deliverPointerEvent(this=0x0000613000039000, event=0x000000016fdfc490) at qquickdeliveryagent.cpp:2044:9
          frame #20: 0x0000000103ff3000 libQt6Quick_debug.6.dylib`QQuickDeliveryAgentPrivate::handleMouseEvent(this=0x0000613000039000, event=0x000000016fdfc490) at qquickdeliveryagent.cpp:1797:9
          frame #21: 0x0000000103ff146c libQt6Quick_debug.6.dylib`QQuickDeliveryAgent::event(this=0x00006020000488d0, ev=0x000000016fdfc490) at qquickdeliveryagent.cpp:822:12
          frame #22: 0x0000000103ac104c libQt6Quick_debug.6.dylib`QQuickWindow::event(this=0x00006110000a9500, event=0x000000016fdfc490) at qquickwindow.cpp:1553:31
          frame #23: 0x0000000103b1a46c libQt6Quick_debug.6.dylib`QQuickWindowQmlImpl::event(this=0x00006110000a9500, event=0x000000016fdfc490) at qquickwindowmodule.cpp:152:26
          frame #24: 0x0000000116dc5e1c libQt6Core_debug.6.dylib`QCoreApplicationPrivate::notify_helper(receiver=0x00006110000a9500, event=0x000000016fdfc490) at qcoreapplication.cpp:1281:26
          frame #25: 0x0000000116dc4fa4 libQt6Core_debug.6.dylib`doNotify(receiver=0x00006110000a9500, event=0x000000016fdfc490) at qcoreapplication.cpp:1210:47
          frame #26: 0x0000000116dc521c libQt6Core_debug.6.dylib`QCoreApplication::notify(this=0x000000016fdfee90, receiver=0x00006110000a9500, event=0x000000016fdfc490) at qcoreapplication.cpp:1193:12
          frame #27: 0x00000001126d753c libQt6Gui_debug.6.dylib`QGuiApplication::notify(this=0x000000016fdfee90, object=0x00006110000a9500, event=0x000000016fdfc490) at qguiapplication.cpp:2056:30
          frame #28: 0x0000000116dc4c0c libQt6Core_debug.6.dylib`QCoreApplication::notifyInternal2(receiver=0x00006110000a9500, event=0x000000016fdfc490) at qcoreapplication.cpp:1109:18
          frame #29: 0x0000000116dc7878 libQt6Core_debug.6.dylib`QCoreApplication::sendSpontaneousEvent(receiver=0x00006110000a9500, event=0x000000016fdfc490) at qcoreapplication.cpp:1563:12
          frame #30: 0x00000001126dbc00 libQt6Gui_debug.6.dylib`QGuiApplicationPrivate::processMouseEvent(e=0x000060c0001a9ec0) at qguiapplication.cpp:2468:5
          frame #31: 0x00000001126d9dfc libQt6Gui_debug.6.dylib`QGuiApplicationPrivate::processWindowSystemEvent(e=0x000060c0001a9ec0) at qguiapplication.cpp:2192:9
          frame #32: 0x00000001129398a8 libQt6Gui_debug.6.dylib`QWindowSystemInterface::sendWindowSystemEvents(flags=QEventLoop::ProcessEventsFlags @ 0x000000016fdfcf20) at qwindowsysteminterface.cpp:1113:13
          frame #33: 0x0000000108be6f28 libqcocoa_debug.dylib`QCocoaEventDispatcherPrivate::processPostedEvents(this=0x0000613000079880) at qcocoaeventdispatcher.mm:872:9
          frame #34: 0x0000000108be8864 libqcocoa_debug.dylib`QCocoaEventDispatcherPrivate::postedEventsSourceCallback(info=0x0000613000079880) at qcocoaeventdispatcher.mm:893:8
          frame #35: 0x000000018e1fdcd4 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
          frame #36: 0x000000018e1fdc68 CoreFoundation`__CFRunLoopDoSource0 + 172
          frame #37: 0x000000018e1fd9d4 CoreFoundation`__CFRunLoopDoSources0 + 232
          frame #38: 0x000000018e1fc628 CoreFoundation`__CFRunLoopRun + 840
          frame #39: 0x000000018e1fbc58 CoreFoundation`CFRunLoopRunSpecific + 572
          frame #40: 0x0000000199c9027c HIToolbox`RunCurrentEventLoopInMode + 324
          frame #41: 0x0000000199c9331c HIToolbox`ReceiveNextEventCommon + 216
          frame #42: 0x0000000199e1e484 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 76
          frame #43: 0x0000000192123ab4 AppKit`_DPSNextEvent + 684
          frame #44: 0x0000000192ac25b0 AppKit`-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
          frame #45: 0x0000000192116c64 AppKit`-[NSApplication run] + 480
          frame #46: 0x0000000108be5238 libqcocoa_debug.dylib`QCocoaEventDispatcher::processEvents(this=0x000060200001ff90, flags=QEventLoop::ProcessEventsFlags @ 0x000000016fdfe80c) at qcocoaeventdispatcher.mm:374:17
          frame #47: 0x0000000116e087e4 libQt6Core_debug.6.dylib`QEventLoop::processEvents(this=0x000000016fdfec40, flags=QEventLoop::ProcessEventsFlags @ 0x000000016fdfe904) at qeventloop.cpp:104:55
          frame #48: 0x0000000116e08cd0 libQt6Core_debug.6.dylib`QEventLoop::exec(this=0x000000016fdfec40, flags=QEventLoop::ProcessEventsFlags @ 0x000000016fdfe940) at qeventloop.cpp:186:9
          frame #49: 0x0000000116dc6d8c libQt6Core_debug.6.dylib`QCoreApplication::exec() at qcoreapplication.cpp:1452:32
          frame #50: 0x00000001126d7168 libQt6Gui_debug.6.dylib`QGuiApplication::exec() at qguiapplication.cpp:1973:12
          frame #51: 0x0000000100006308 appquick`main(argc=1, argv=0x000000016fdff7b8) at main.cpp:22:12
          frame #52: 0x000000018dd72b98 dyld`start + 6076
        thread #3
          frame #0: 0x000000018e10db6c libsystem_pthread.dylib`start_wqthread
        thread #4
          frame #0: 0x000000018e10db6c libsystem_pthread.dylib`start_wqthread
        thread #5, name = 'QQmlDebugServerThread'
          frame #0: 0x000000018e0d9498 libsystem_kernel.dylib`poll + 8
          frame #1: 0x0000000101e78398 libclang_rt.asan_osx_dynamic.dylib`wrap_poll + 1476
          frame #2: 0x0000000117598fb4 libQt6Core_debug.6.dylib`qt_ppoll(fds=0x0000604000089720, nfds=3, timeout_ts=0x0000000000000000) at qcore_unix.cpp:105:12
          frame #3: 0x0000000117598c64 libQt6Core_debug.6.dylib`qt_safe_poll(fds=0x0000604000089720, nfds=3, deadline=(t1 = 9223372036854775807, t2 = 0, type = 1)) at qcore_unix.cpp:126:9
          frame #4: 0x00000001175bba68 libQt6Core_debug.6.dylib`QEventDispatcherUNIX::processEvents(this=0x0000602000022f10, flags=QEventLoop::ProcessEventsFlags @ 0x0000000170029ce0) at qeventdispatcher_unix.cpp:479:13
          frame #5: 0x0000000116e087e4 libQt6Core_debug.6.dylib`QEventLoop::processEvents(this=0x000000017002a3a0, flags=QEventLoop::ProcessEventsFlags @ 0x000000017002a0c4) at qeventloop.cpp:104:55
          frame #6: 0x0000000116e08cd0 libQt6Core_debug.6.dylib`QEventLoop::exec(this=0x000000017002a3a0, flags=QEventLoop::ProcessEventsFlags @ 0x000000017002a100) at qeventloop.cpp:186:9
          frame #7: 0x00000001172f38d0 libQt6Core_debug.6.dylib`QThread::exec(this=0x0000611000097998) at qthread.cpp:665:32
          frame #8: 0x0000000112004cd8 libqmldbg_server_debug.dylib`QQmlDebugServerThread::run(this=0x0000611000097998) at qqmldebugserverfactory.cpp:220:5
          frame #9: 0x00000001175b4c6c libQt6Core_debug.6.dylib`QThreadPrivate::start(void*)::$_1::operator()(this=0x000000017002ae50) const at qthread_unix.cpp:434:14
          frame #10: 0x00000001175aea58 libQt6Core_debug.6.dylib`void (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::$_1>(t=0x000000017002ae50) at qthread_unix.cpp:366:9
          frame #11: 0x00000001175ae8e0 libQt6Core_debug.6.dylib`QThreadPrivate::start(arg=0x0000611000097998) at qthread_unix.cpp:394:5
          frame #12: 0x0000000101e8a4a8 libclang_rt.asan_osx_dynamic.dylib`asan_thread_start(void*) + 80
          frame #13: 0x000000018e112c0c libsystem_pthread.dylib`_pthread_start + 136
        thread #6, name = 'QQmlThread'
          frame #0: 0x000000018e0d9498 libsystem_kernel.dylib`poll + 8
          frame #1: 0x0000000101e78398 libclang_rt.asan_osx_dynamic.dylib`wrap_poll + 1476
          frame #2: 0x0000000117598fb4 libQt6Core_debug.6.dylib`qt_ppoll(fds=0x00006030000cd5e0, nfds=1, timeout_ts=0x0000000000000000) at qcore_unix.cpp:105:12
          frame #3: 0x0000000117598c64 libQt6Core_debug.6.dylib`qt_safe_poll(fds=0x00006030000cd5e0, nfds=1, deadline=(t1 = 9223372036854775807, t2 = 0, type = 1)) at qcore_unix.cpp:126:9
          frame #4: 0x00000001175bba68 libQt6Core_debug.6.dylib`QEventDispatcherUNIX::processEvents(this=0x0000602000023f10, flags=QEventLoop::ProcessEventsFlags @ 0x0000000170836020) at qeventdispatcher_unix.cpp:479:13
          frame #5: 0x0000000116e087e4 libQt6Core_debug.6.dylib`QEventLoop::processEvents(this=0x00000001708366e0, flags=QEventLoop::ProcessEventsFlags @ 0x0000000170836404) at qeventloop.cpp:104:55
          frame #6: 0x0000000116e08cd0 libQt6Core_debug.6.dylib`QEventLoop::exec(this=0x00000001708366e0, flags=QEventLoop::ProcessEventsFlags @ 0x0000000170836440) at qeventloop.cpp:186:9
          frame #7: 0x00000001172f38d0 libQt6Core_debug.6.dylib`QThread::exec(this=0x000060c000077140) at qthread.cpp:665:32
          frame #8: 0x00000001172f58c0 libQt6Core_debug.6.dylib`QThread::run(this=0x000060c000077140) at qthread.cpp:786:12
          frame #9: 0x00000001175b4c6c libQt6Core_debug.6.dylib`QThreadPrivate::start(void*)::$_1::operator()(this=0x0000000170836e50) const at qthread_unix.cpp:434:14
          frame #10: 0x00000001175aea58 libQt6Core_debug.6.dylib`void (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::$_1>(t=0x0000000170836e50) at qthread_unix.cpp:366:9
          frame #11: 0x00000001175ae8e0 libQt6Core_debug.6.dylib`QThreadPrivate::start(arg=0x000060c000077140) at qthread_unix.cpp:394:5
          frame #12: 0x0000000101e8a4a8 libclang_rt.asan_osx_dynamic.dylib`asan_thread_start(void*) + 80
          frame #13: 0x000000018e112c0c libsystem_pthread.dylib`_pthread_start + 136
        thread #7
          frame #0: 0x000000018e10db6c libsystem_pthread.dylib`start_wqthread
        thread #8, name = 'QSGRenderThread'
          frame #0: 0x000000018e0d43cc libsystem_kernel.dylib`__psynch_cvwait + 8
          frame #1: 0x000000018e1130e0 libsystem_pthread.dylib`_pthread_cond_wait + 984
          frame #2: 0x00000001176136a0 libQt6Core_debug.6.dylib`QWaitConditionPrivate::wait(this=0x000060c00014a940, deadline=(t1 = 9223372036854775807, t2 = 0, type = 1)) at qwaitcondition_unix.cpp:67:24
          frame #3: 0x00000001176134c8 libQt6Core_debug.6.dylib`QWaitCondition::wait(this=0x0000611000140600, mutex=0x00006110001405f8, deadline=(t1 = 9223372036854775807, t2 = 0, type = 1)) at qwaitcondition_unix.cpp:145:27
          frame #4: 0x000000010461b208 libQt6Quick_debug.6.dylib`QSGRenderThreadEventQueue::takeEvent(this=0x00006110001405e0, wait=true) at qsgthreadedrenderloop.cpp:198:23
          frame #5: 0x000000010461b618 libQt6Quick_debug.6.dylib`QSGRenderThread::processEventsAndWaitForMore(this=0x0000611000140540) at qsgthreadedrenderloop.cpp:886:32
          frame #6: 0x000000010461d69c libQt6Quick_debug.6.dylib`QSGRenderThread::run(this=0x0000611000140540) at qsgthreadedrenderloop.cpp:1009:13
          frame #7: 0x00000001175b4c6c libQt6Core_debug.6.dylib`QThreadPrivate::start(void*)::$_1::operator()(this=0x000000017094ee50) const at qthread_unix.cpp:434:14
          frame #8: 0x00000001175aea58 libQt6Core_debug.6.dylib`void (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::$_1>(t=0x000000017094ee50) at qthread_unix.cpp:366:9
          frame #9: 0x00000001175ae8e0 libQt6Core_debug.6.dylib`QThreadPrivate::start(arg=0x0000611000140540) at qthread_unix.cpp:394:5
          frame #10: 0x0000000101e8a4a8 libclang_rt.asan_osx_dynamic.dylib`asan_thread_start(void*) + 80
          frame #11: 0x000000018e112c0c libsystem_pthread.dylib`_pthread_start + 136
        thread #9, name = 'CVDisplayLink'
          frame #0: 0x000000018e0d43cc libsystem_kernel.dylib`__psynch_cvwait + 8
          frame #1: 0x000000018e11310c libsystem_pthread.dylib`_pthread_cond_wait + 1028
          frame #2: 0x0000000197aa71f4 CoreVideo`CVDisplayLink::waitUntil(unsigned long long) + 336
          frame #3: 0x0000000197aa62dc CoreVideo`CVDisplayLink::runIOThread() + 500
          frame #4: 0x0000000101e8a4a8 libclang_rt.asan_osx_dynamic.dylib`asan_thread_start(void*) + 80
          frame #5: 0x000000018e112c0c libsystem_pthread.dylib`_pthread_start + 136
        thread #10, name = 'com.apple.NSEventThread'
          frame #0: 0x000000018e0d0c34 libsystem_kernel.dylib`mach_msg2_trap + 8
          frame #1: 0x000000018e0e33a0 libsystem_kernel.dylib`mach_msg2_internal + 76
          frame #2: 0x000000018e0d9764 libsystem_kernel.dylib`mach_msg_overwrite + 484
          frame #3: 0x000000018e0d0fa8 libsystem_kernel.dylib`mach_msg + 24
          frame #4: 0x000000018e1fde7c CoreFoundation`__CFRunLoopServiceMachPort + 160
          frame #5: 0x000000018e1fc798 CoreFoundation`__CFRunLoopRun + 1208
          frame #6: 0x000000018e1fbc58 CoreFoundation`CFRunLoopRunSpecific + 572
          frame #7: 0x00000001922477fc AppKit`_NSEventThread + 140
          frame #8: 0x0000000101e8a4a8 libclang_rt.asan_osx_dynamic.dylib`asan_thread_start(void*) + 80
          frame #9: 0x000000018e112c0c libsystem_pthread.dylib`_pthread_start + 136
        thread #11
          frame #0: 0x000000018e10db6c libsystem_pthread.dylib`start_wqthread
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes