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

Mac OS: Segfault in QWidgetTextControl::textInteractionFlags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0
    • 5.3.0 RC1
    • None
    • This is on Mac OS X 10.9 Mavericks. I compiled Qt 5.3.0 RC and with that compiled Qt Creator 3.1 release version.
    • macOS
    • 5bca5d0a51366ec4b4a87afeda2013b42290a588 667f2449a300950e735250c62686c150dab0080d

    Description

      Most of the reported crashes in QTBUG-38408 have been resolved by the fix for QTBUG-38418, however the crash 4) seems to be a different issue.

      With QtCreator 3.1 branch and QT release branch, both compiled today, I get this crash (report) in various situations, however not deterministically, i.e. it only happens occasionaly:

      • open last session
      • open a form in designer
      • open "Change Stylesheet" dialog in Designer

      In particular I can reproduce this crash reliably by starting Creator, going directly to the desginer and opening the "Change Stylesheet" dialog repeately until it crashes (< 10 times).

      The following top of stack trace is similar for all those secanarios:

       
      Process:         Qt Creator [82615]
      Path:            /usr/local/Cellar/qt-creator/HEAD/Qt Creator.app/Contents/MacOS/Qt Creator
      Identifier:      org.qt-project.qtcreator
      Version:         3.1.1 (3.1.1)
      Code Type:       X86-64 (Native)
      Parent Process:  launchd [273]
      Responsible:     Qt Creator [82615]
      User ID:         501
      
      Date/Time:       2014-05-02 16:46:53.565 +0200
      OS Version:      Mac OS X 10.9.2 (13C1021)
      Report Version:  11
      Anonymous UUID:  8F341BD8-B601-F80A-4959-0F14DA2ABC1B
      
      Sleep/Wake UUID: 1204D45F-44F5-42DB-80CF-470E75FEB055
      
      Crashed Thread:  0  Dispatch queue: com.apple.main-thread
      
      Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
      
      VM Regions Near 0x8:
      --> 
          __TEXT                 0000000100000000-0000000100013000 [   76K] r-x/rwx SM=COW  /usr/local/Cellar/qt-creator/HEAD/Qt Creator.app/Contents/MacOS/Qt Creator
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   QtWidgets                     	0x00000001003b1f74 QWidgetTextControl::textInteractionFlags() const + 4
      1   QtWidgets                     	0x000000010038bf34 QTextEdit::isReadOnly() const + 20
      2   libqtaccessiblewidgets.dylib  	0x000000011a96d9e2 QAccessibleTextEdit::state() const + 34
      3   libqcocoa.dylib               	0x0000000101f32ed2 QCocoaAccessible::macRole(QAccessibleInterface*) + 1490
      4   libqcocoa.dylib               	0x0000000101f30710 -[QCocoaAccessibleElement initWithId:] + 80
      5   libqcocoa.dylib               	0x0000000101f30794 +[QCocoaAccessibleElement elementWithId:] + 100
      6   libqcocoa.dylib               	0x0000000101f327af QCocoaAccessibility::notifyAccessibilityUpdate(QAccessibleEvent*) + 47
      7   QtWidgets                     	0x00000001003a8be8 QWidgetTextControlPrivate::_q_contentsChanged(int, int, int) + 472
      8   QtWidgets                     	0x00000001003b3fe4 QWidgetTextControl::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 2068
      9   QtCore                        	0x0000000100ff91fa QMetaObject::activate(QObject*, int, int, void**) + 618
      10  QtGui                         	0x0000000100b83602 QTextDocument::contentsChange(int, int, int) + 82
      11  QtGui                         	0x00000001009568a7 QTextDocumentPrivate::finishEdit() + 151
      12  QtGui                         	0x00000001009561d1 QTextDocumentPrivate::insertBlock(QChar, int, int, int, QTextUndoCommand::Operation) + 657
      13  QtGui                         	0x0000000100954373 QTextDocumentPrivate::init() + 163
      14  QtGui                         	0x0000000100954912 QTextDocumentPrivate::clear() + 1330
      15  QtGui                         	0x0000000100947b37 QTextDocument::clear() + 23
      16  QtWidgets                     	0x00000001003a7afe QWidgetTextControlPrivate::setContent(Qt::TextFormat, QString const&, QTextDocument*) + 974
      17  QtWidgets                     	0x00000001003a9536 QWidgetTextControl::QWidgetTextControl(QObject*) + 102
      

      Attachments

        Issue Links

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

          Activity

            People

              frederik Frederik Gladhorn
              demmeln Nikolaus Demmel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes