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

QListView related crash inside QFileDialog, non-native on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.5.2
    • None
    • macOS arm64, x86_64 Ventura 13.5.1
    • macOS

    Description

      Just like in QTBUG-114423, I am see an Accessibility related crash in QFileDialog when using non-native version.

      The backtrace from this abort/crash is almost identical to the backtrace from QTBUG-114423 but comes from the QListView and not a QTreeView.

      Exception Type: EXC_CRASH (SIGABRT)
      Exception Codes: 0x0000000000000000, 0x0000000000000000
      Exception Note: EXC_CORPSE_NOTIFY
      Application Specific Information:
      abort() called
      Application Specific Backtrace 0:
      0 CoreFoundation 0x0000000195f45138 __exceptionPreprocess + 240
      1 libobjc.A.dylib 0x0000000195c8fe04 objc_exception_throw + 60
      2 CoreFoundation 0x000000019601715c -[__NSCFString characterAtIndex:].cold.1 + 0
      3 CoreFoundation 0x0000000195eb0b1c -[__NSCFString hasSuffix:] + 0
      4 libqcocoa.dylib 0x00000001078245a8 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 282520
      5 libqcocoa.dylib 0x000000010782466c _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 282716
      6 libqcocoa.dylib 0x0000000107822a90 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 275584
      7 QtWidgets 0x0000000107fbaa14 ZN9QListView14currentChangedERK11QModelIndexS2 + 112
      8 QtCore 0x0000000108387464 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3684
      9 QtCore 0x000000010854a588 _ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 324
      10 QtWidgets 0x0000000107f7769c _ZN17QAbstractItemView15mousePressEventEP11QMouseEvent + 892
      11 QtWidgets 0x0000000107fedc5c _ZN9QTreeView15mousePressEventEP11QMouseEvent + 276
      12 QtWidgets 0x0000000107d32ab8 _ZN7QWidget5eventEP6QEvent + 132
      13 QtWidgets 0x0000000107dbb964 _ZN6QFrame5eventEP6QEvent + 56
      14 QtWidgets 0x0000000107f772b0 _ZN17QAbstractItemView13viewportEventEP6QEvent + 1040
      15 QtWidgets 0x0000000107feabb0 _ZN9QTreeView13viewportEventEP6QEvent + 328
      16 QtCore
      ...

      Perhaps a similar fix for QListView is needed when the view area is resized via accessibility event that was done for QTreeView.

      This test is done with the open source Rectangle.app installed, that can move and grow the QFileDialog to fit one half of the screen using the macOS accessibility api.

      See:

      https://github.com/rxhanson/Rectangle

      The QListView resize property is set to Adjust with not fixed in the non-native QFileDialog.

      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
            kevinhendricks Kevin B. Hendricks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes