Qt 6.12 LTS is out! See what's new in the release
blog
After I build the Qt6.5.1 for Mac M2 silicon, The Qt designer will crash
-
Please help me with the problem, thanks very much
And If you have some methods for debug the problem, thanks for
add the methods link or comments below------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: Designer [77895] Path: /opt/Qt-6.5.1/*/Designer.app/Contents/MacOS/Designer Identifier: org.qt-project.Designer Version: ??? Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2023-06-28 19:22:22.2651 +0800 OS Version: macOS 13.4.1 (22F82) Report Version: 12 Anonymous UUID: DF224D3C-7EE5-2BA1-949B-55ED43DEF018 Sleep/Wake UUID: 12674F05-9B92-4D17-989E-D41B2B7ECD4A Time Awake Since Boot: 32000 seconds Time Since Wake: 7234 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: abort() called Application Specific Backtrace 0: 0 CoreFoundation 0x000000019455b154 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000019407a4d4 objc_exception_throw + 60 2 CoreFoundation 0x00000001946459b8 -[__NSCFString characterAtIndex:].cold.1 + 0 3 CoreFoundation 0x00000001944cebb8 -[__NSArrayM objectAtIndexedSubscript:] + 188 4 libqcocoa.dylib 0x0000000100d449fc -[QMacAccessibilityElement initWithId:role:] + 296 5 libqcocoa.dylib 0x0000000100d44a80 +[QMacAccessibilityElement elementWithId:] + 68 6 libqcocoa.dylib 0x0000000100d43000 _ZN19QCocoaAccessibility25notifyAccessibilityUpdateEP16QAccessibleEvent + 104 7 QtWidgets 0x0000000101d290ac _ZN9QTreeView16selectionChangedERK14QItemSelectionS2_ + 332 8 QtCore 0x00000001021a1030 _Z10doActivateILb0EEvP7QObjectiPPv + 1400 9 QtCore 0x000000010236326c _ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2_ + 216 10 QtCore 0x0000000102362ed4 _ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 648 11 QtCore 0x0000000102362ba8 _ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 68 12 QtCore 0x0000000102363c94 _ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 260 13 QtWidgets 0x0000000101cb0978 _ZN17QAbstractItemView15setCurrentIndexERK11QModelIndex + 160 14 QtWidgets 0x0000000101d34858 _ZN11QTreeWidget14setCurrentItemEP15QTreeWidgetItem + 72 15 QtDesigner 0x0000000100f71e38 _ZN14QtResourceView14selectResourceERK7QString + 396 16 QtDesigner 0x0000000100f73830 _ZN21QtResourceViewPrivate24slotResourceSetActivatedEP13QtResourceSet + 1180 17 QtCore 0x00000001021a0fe8 _Z10doActivateILb0EEvP7QObjectiPPv + 1328 18 QtDesigner 0x0000000100f6916c _ZN22QtResourceModelPrivate8activateEP13QtResourceSetRK5QListI7QStringEPiPS3_ + 2448 19 QtDesigner 0x0000000100f6c39c _ZN15QtResourceModel21setCurrentResourceSetEP13QtResourceSetPiP7QString + 112 20 QtDesigner 0x0000000100ee5988 _ZN18qdesigner_internal20QDesignerFormBuilder6createEP5DomUIP7QWidget + 104 21 QtDesignerComponents 0x000000010061c038 _ZN18qdesigner_internal16WidgetBoxDnDItemC2EP28QDesignerFormEditorInterfaceP5DomUIRK6QPoint + 120 22 QtDesignerComponents 0x000000010061b84c _ZN18qdesigner_internal9WidgetBox16handleMousePressERK7QStringS3_RK6QPoint + 104 23 QtCore 0x00000001021a0fe8 _Z10doActivateILb0EEvP7QObjectiPPv + 1328 24 QtDesignerComponents 0x000000010052c194 _ZN18qdesigner_internal19WidgetBoxTreeWidget7pressedERK7QStringS3_RK6QPoint + 56 25 QtCore 0x00000001021a0fe8 _Z10doActivateILb0EEvP7QObjectiPPv + 1328 26 QtDesignerComponents 0x000000010052be1c _ZN18qdesigner_internal25WidgetBoxCategoryListView7pressedERK7QStringS3_RK6QPoint + 56 27 QtDesignerComponents 0x000000010061de34 _ZN18qdesigner_internal25WidgetBoxCategoryListView11slotPressedERK11QModelIndex + 120 28 QtCore 0x00000001021a0fe8 _Z10doActivateILb0EEvP7QObjectiPPv + 1328 29 QtWidgets 0x0000000101cb2578 _ZN17QAbstractItemView15mousePressEventEP11QMouseEvent + 1156 30 QtWidgets 0x0000000101a8d280 _ZN7QWidget5eventEP6QEvent + 132 31 QtWidgets 0x0000000101b0ba8c _ZN6QFrame5eventEP6QEvent + 56 32 QtWidgets 0x0000000101cb2084 _ZN17QAbstractItemView13viewportEventEP6QEvent + 988 33 QtCore 0x0000000102156c24 _ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent + 244 34 QtWidgets 0x0000000101a44194 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 240 35 QtWidgets 0x0000000101a4634c _ZN12QApplication6notifyEP7QObjectP6QEvent + 5328 36 QtCore 0x0000000102156950 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292 37 QtWidgets 0x0000000101a44754 _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb + 808 38 QtWidgets 0x0000000101aa0fdc _ZN13QWidgetWindow16handleMouseEventEP11QMouseEvent + 1376 39 QtWidgets 0x0000000101aa0300 _ZN13QWidgetWindow5eventEP6QEvent + 124 40 QtWidgets 0x0000000101a441b4 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272 41 QtWidgets 0x0000000101a4507c _ZN12QApplication6notifyEP7QObjectP6QEvent + 512 42 QtCore 0x0000000102156950 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292 43 QtGui 0x00000001029f4f18 _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE + 1688 44 QtGui 0x0000000102a4bdd4 _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 396 45 libqcocoa.dylib 0x0000000100ce8734 _ZN28QCocoaEventDispatcherPrivate26postedEventsSourceCallbackEPv + 560 46 CoreFoundation 0x00000001944e263c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 47 CoreFoundation 0x00000001944e25d0 __CFRunLoopDoSource0 + 176 48 CoreFoundation 0x00000001944e2340 __CFRunLoopDoSources0 + 244 49 CoreFoundation 0x00000001944e0f48 __CFRunLoopRun + 828 50 CoreFoundation 0x00000001944e04b8 CFRunLoopRunSpecific + 612 51 HIToolbox 0x000000019dd2ac40 RunCurrentEventLoopInMode + 292 52 HIToolbox 0x000000019dd2a8d0 ReceiveNextEventCommon + 220 53 HIToolbox 0x000000019dd2a7d4 _BlockUntilNextEventMatchingListInModeWithFilter + 76 54 AppKit 0x0000000197701d44 _DPSNextEvent + 636 55 AppKit 0x0000000197700ee0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 56 AppKit 0x00000001976f5344 -[NSApplication run] + 464 57 libqcocoa.dylib 0x0000000100ce6f8c _ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 1904 58 QtCore 0x000000010215fea4 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 532 59 QtCore 0x0000000102156fdc _ZN16QCoreApplication4execEv + 112 60 Designer 0x00000001000d9b1c main + 104 61 dyld 0x00000001940abf28 start + 2236 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x1943cc724 __pthread_kill + 8 1 libsystem_pthread.dylib 0x194403c28 pthread_kill + 288 2 libsystem_c.dylib 0x194311ae8 abort + 180 3 libc++abi.dylib 0x1943bcb84 abort_message + 132 4 libc++abi.dylib 0x1943ac3d0 demangling_terminate_handler() + 348 5 libobjc.A.dylib 0x19408302c _objc_terminate() + 144 6 libc++abi.dylib 0x1943bbf48 std::__terminate(void (*)()) + 16 7 libc++abi.dylib 0x1943bed34 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 36 8 libc++abi.dylib 0x1943bece0 __cxa_throw + 140 9 libobjc.A.dylib 0x19407a634 objc_exception_throw + 412 10 CoreFoundation 0x1946459b8 _CFThrowFormattedException + 108 11 CoreFoundation 0x1944cebb8 -[__NSArrayM objectAtIndexedSubscript:] + 188 12 libqcocoa.dylib 0x100d449fc -[QMacAccessibilityElement initWithId:role:] + 296 13 libqcocoa.dylib 0x100d44a80 +[QMacAccessibilityElement elementWithId:] + 68 14 libqcocoa.dylib 0x100d43000 QCocoaAccessibility::notifyAccessibilityUpdate(QAccessibleEvent*) + 104 15 QtWidgets 0x101d290ac QTreeView::selectionChanged(QItemSelection const&, QItemSelection const&) + 332 16 QtCore 0x1021a1030 void doActivate<false>(QObject*, int, void**) + 1400 17 QtCore 0x10236326c QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) + 216 18 QtCore 0x102362ed4 QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) + 648 19 QtCore 0x102362ba8 QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) + 68 20 QtCore 0x102363c94 QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) + 260 21 QtWidgets 0x101cb0978 QAbstractItemView::setCurrentIndex(QModelIndex const&) + 160 22 QtWidgets 0x101d34858 QTreeWidget::setCurrentItem(QTreeWidgetItem*) + 72 23 QtDesigner 0x100f71e38 QtResourceView::selectResource(QString const&) + 396 24 QtDesigner 0x100f73830 QtResourceViewPrivate::slotResourceSetActivated(QtResourceSet*) + 1180 25 QtCore 0x1021a0fe8 void doActivate<false>(QObject*, int, void**) + 1328 26 QtDesigner 0x100f6916c QtResourceModelPrivate::activate(QtResourceSet*, QList<QString> const&, int*, QString*) + 2448 27 QtDesigner 0x100f6c39c QtResourceModel::setCurrentResourceSet(QtResourceSet*, int*, QString*) + 112 28 QtDesigner 0x100ee5988 qdesigner_internal::QDesignerFormBuilder::create(DomUI*, QWidget*) + 104 29 QtDesignerComponents 0x10061c038 qdesigner_internal::WidgetBoxDnDItem::WidgetBoxDnDItem(QDesignerFormEditorInterface*, DomUI*, QPoint const&) + 120 30 QtDesignerComponents 0x10061b84c qdesigner_internal::WidgetBox::handleMousePress(QString const&, QString const&, QPoint const&) + 104 31 QtCore 0x1021a0fe8 void doActivate<false>(QObject*, int, void**) + 1328 32 QtDesignerComponents 0x10052c194 qdesigner_internal::WidgetBoxTreeWidget::pressed(QString const&, QString const&, QPoint const&) + 56 33 QtCore 0x1021a0fe8 void doActivate<false>(QObject*, int, void**) + 1328 34 QtDesignerComponents 0x10052be1c qdesigner_internal::WidgetBoxCategoryListView::pressed(QString const&, QString const&, QPoint const&) + 56 35 QtDesignerComponents 0x10061de34 qdesigner_internal::WidgetBoxCategoryListView::slotPressed(QModelIndex const&) + 120 36 QtCore 0x1021a0fe8 void doActivate<false>(QObject*, int, void**) + 1328 37 QtWidgets 0x101cb2578 QAbstractItemView::mousePressEvent(QMouseEvent*) + 1156 38 QtWidgets 0x101a8d280 QWidget::event(QEvent*) + 132 39 QtWidgets 0x101b0ba8c QFrame::event(QEvent*) + 56 40 QtWidgets 0x101cb2084 QAbstractItemView::viewportEvent(QEvent*) + 988 41 QtCore 0x102156c24 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 244 42 QtWidgets 0x101a44194 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 240 43 QtWidgets 0x101a4634c QApplication::notify(QObject*, QEvent*) + 5328 44 QtCore 0x102156950 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292 45 QtWidgets 0x101a44754 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 808 46 QtWidgets 0x101aa0fdc QWidgetWindow::handleMouseEvent(QMouseEvent*) + 1376 47 QtWidgets 0x101aa0300 QWidgetWindow::event(QEvent*) + 124 48 QtWidgets 0x101a441b4 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272 49 QtWidgets 0x101a4507c QApplication::notify(QObject*, QEvent*) + 512 50 QtCore 0x102156950 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292 51 QtGui 0x1029f4f18 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 1688 52 QtGui 0x102a4bdd4 QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 396 53 libqcocoa.dylib 0x100ce8734 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 560 54 CoreFoundation 0x1944e263c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 55 CoreFoundation 0x1944e25d0 __CFRunLoopDoSource0 + 176 56 CoreFoundation 0x1944e2340 __CFRunLoopDoSources0 + 244 57 CoreFoundation 0x1944e0f48 __CFRunLoopRun + 828 58 CoreFoundation 0x1944e04b8 CFRunLoopRunSpecific + 612 59 HIToolbox 0x19dd2ac40 RunCurrentEventLoopInMode + 292 60 HIToolbox 0x19dd2a8d0 ReceiveNextEventCommon + 220 61 HIToolbox 0x19dd2a7d4 _BlockUntilNextEventMatchingListInModeWithFilter + 76 62 AppKit 0x197701d44 _DPSNextEvent + 636 63 AppKit 0x197700ee0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 64 AppKit 0x1976f5344 -[NSApplication run] + 464 65 libqcocoa.dylib 0x100ce6f8c QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1904 66 QtCore 0x10215fea4 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 532 67 QtCore 0x102156fdc QCoreApplication::exec() + 112 68 Designer 0x1000d9b1c main + 104 69 dyld 0x1940abf28 start + 2236 -
Hi! I stumbled upon your post when debugging the same issue in an unrelated application.
It looks to be a Qt bug that was fixed in Qt 6.5.2:
https://github.com/qt/qtbase/commit/beb3378e08052a3820638d82ba4942f60d207045