Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15955

Crash when copying text in split mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.0.0-rc1
    • Qt Creator 3.6.1
    • Editors
    • None
    • Mac OS X 10.10.5
    • aa2c1cc51a60aee9c81c6720689689c44f94ab24

    Description

      I opened a project, opened two different files in side-by-side split mode, selected text from one, and when I copied, it crashed:

      Crashed Thread:        0  Dispatch queue: com.apple.main-thread
      
      Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
      
      VM Regions Near 0:
      --> 
          __TEXT                 0000000108fe5000-0000000108ff7000 [   72K] r-x/rwx SM=COW  /Applications/Qt Creator.app/Contents/MacOS/Qt Creator
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.qt-project.QtGui          	0x00000001099dd5f9 QTextLayout::lineForTextPosition(int) const + 9
      1   libTextEditor.dylib           	0x000000011147ba0e TextEditor::Internal::TextEditorWidgetPrivate::updateCurrentLineInScrollbar() + 158
      2   libTextEditor.dylib           	0x000000011147b880 TextEditor::TextEditorWidget::resizeEvent(QResizeEvent*) + 176
      3   org.qt-project.QtWidgets      	0x00000001092b12b8 QWidget::event(QEvent*) + 2168
      4   org.qt-project.QtWidgets      	0x00000001093a2ffd QFrame::event(QEvent*) + 45
      5   org.qt-project.QtWidgets      	0x000000010942e8f3 QAbstractScrollArea::viewportEvent(QEvent*) + 179
      6   libTextEditor.dylib           	0x000000011147b71c TextEditor::TextEditorWidget::viewportEvent(QEvent*) + 588
      7   org.qt-project.QtWidgets      	0x000000010942f4a5 0x109261000 + 1893541
      8   org.qt-project.QtCore         	0x000000010a1d368a QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 202
      9   org.qt-project.QtWidgets      	0x0000000109271b61 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 273
      10  org.qt-project.QtWidgets      	0x00000001092744c0 QApplication::notify(QObject*, QEvent*) + 5648
      11  org.qt-project.QtCore         	0x000000010a1d33f4 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
      12  org.qt-project.QtWidgets      	0x00000001092ae6c7 QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 2103
      13  org.qt-project.QtWidgets      	0x00000001092ae914 QWidget::setGeometry(QRect const&) + 228
      14  org.qt-project.QtWidgets      	0x000000010942d410 QAbstractScrollAreaPrivate::layoutChildren() + 2976
      15  libTextEditor.dylib           	0x000000011146e62c TextEditor::Internal::TextEditorWidgetPrivate::slotUpdateRequest(QRect const&, int) + 332
      16  org.qt-project.QtCore         	0x000000010a206dc1 QMetaObject::activate(QObject*, int, int, void**) + 2801
      17  org.qt-project.QtWidgets      	0x00000001094534cc 0x109261000 + 2041036
      18  org.qt-project.QtCore         	0x000000010a2065bd QMetaObject::activate(QObject*, int, int, void**) + 749
      19  org.qt-project.QtWidgets      	0x0000000109440d0d 0x109261000 + 1965325
      20  org.qt-project.QtCore         	0x000000010a2065bd QMetaObject::activate(QObject*, int, int, void**) + 749
      21  org.qt-project.QtGui          	0x0000000109a192b5 QAbstractTextDocumentLayout::update(QRectF const&) + 53
      22  org.qt-project.QtWidgets      	0x0000000109450585 QPlainTextDocumentLayout::requestUpdate() + 69
      23  libTextEditor.dylib           	0x00000001114e52e6 TextEditor::TextBlockUserData::~TextBlockUserData() + 182
      24  libTextEditor.dylib           	0x00000001114e548e TextEditor::TextBlockUserData::~TextBlockUserData() + 14
      25  org.qt-project.QtGui          	0x0000000109a059f9 QTextDocument::allFormats() const + 27257
      26  org.qt-project.QtGui          	0x0000000109a05eae QTextDocument::allFormats() const + 28462
      27  org.qt-project.QtGui          	0x0000000109a06084 QTextDocument::allFormats() const + 28932
      28  org.qt-project.QtGui          	0x0000000109a2f4a2 QTextCursorPrivate::remove() + 274
      29  org.qt-project.QtGui          	0x0000000109a36992 QTextCursor::removeSelectedText() + 1170
      30  libTextEditor.dylib           	0x000000011148cfe8 TextEditor::TextEditorWidget::cut() + 56
      31  libTextEditor.dylib           	0x00000001114a8fde std::__1::__function::__func<TextEditor::Internal::TextEditorActionHandlerPrivate::registerAction(Core::Id, std::__1::function<void (TextEditor::TextEditorWidget*)>, bool, QString const&, QKeySequence const&, Core::Id, Core::ActionContainer*)::'lambda'(bool), std::__1::allocator<TextEditor::Internal::TextEditorActionHandlerPrivate::registerAction(Core::Id, std::__1::function<void (TextEditor::TextEditorWidget*)>, bool, QString const&, QKeySequence const&, Core::Id, Core::ActionContainer*)::'lambda'(bool)>, void (bool)>::operator()(bool&&) + 78
      32  libTextEditor.dylib           	0x00000001114a8ce5 void QtPrivate::Functor<std::__1::function<void (bool)>, 1>::call<QtPrivate::List<bool>, void>(std::__1::function<void (bool)>&, void*, void**) + 117
      33  org.qt-project.QtCore         	0x000000010a206dc1 QMetaObject::activate(QObject*, int, int, void**) + 2801
      34  org.qt-project.QtWidgets      	0x0000000109268b00 QAction::triggered(bool) + 64
      35  org.qt-project.QtCore         	0x000000010a206dc1 QMetaObject::activate(QObject*, int, int, void**) + 2801
      36  org.qt-project.QtWidgets      	0x000000010926896f QAction::activate(QAction::ActionEvent) + 303
      37  org.qt-project.QtCore         	0x000000010a2065bd QMetaObject::activate(QObject*, int, int, void**) + 749
      38  org.qt-project.QtCore         	0x000000010a1ff6dc QObject::event(QEvent*) + 156
      39  org.qt-project.QtWidgets      	0x0000000109271b76 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 294
      40  org.qt-project.QtWidgets      	0x00000001092744c0 QApplication::notify(QObject*, QEvent*) + 5648
      41  org.qt-project.QtCore         	0x000000010a1d33f4 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
      42  org.qt-project.QtCore         	0x000000010a1d4014 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 596
      43  libqcocoa.dylib               	0x000000010c353bae 0x10c331000 + 142254
      44  libqcocoa.dylib               	0x000000010c354481 0x10c331000 + 144513
      45  com.apple.CoreFoundation      	0x00007fff90449a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      46  com.apple.CoreFoundation      	0x00007fff9043bb8d __CFRunLoopDoSources0 + 269
      47  com.apple.CoreFoundation      	0x00007fff9043b1bf __CFRunLoopRun + 927
      48  com.apple.CoreFoundation      	0x00007fff9043abd8 CFRunLoopRunSpecific + 296
      49  com.apple.HIToolbox           	0x00007fff8d84f56f RunCurrentEventLoopInMode + 235
      50  com.apple.HIToolbox           	0x00007fff8d84f1ee ReceiveNextEventCommon + 179
      51  com.apple.HIToolbox           	0x00007fff8d84f12b _BlockUntilNextEventMatchingListInModeWithFilter + 71
      52  com.apple.AppKit              	0x00007fff93b078ab _DPSNextEvent + 978
      53  com.apple.AppKit              	0x00007fff93b06e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
      54  com.apple.AppKit              	0x00007fff93afcaf3 -[NSApplication run] + 594
      55  libqcocoa.dylib               	0x000000010c35337f 0x10c331000 + 140159
      56  org.qt-project.QtCore         	0x000000010a1cf7a1 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
      57  org.qt-project.QtCore         	0x000000010a1d3a65 QCoreApplication::exec() + 341
      58  org.qt-project.qtcreator      	0x0000000108ff001f main + 15151
      59  org.qt-project.qtcreator      	0x0000000108fe9ac4 start + 52
      

      I had this happen twice. If I open the file,select and copy the text, then open the other in split mode it works.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-15955
        # Subject Branch Project Status CR V

        Activity

          People

            davschul David Schulz
            asm Andy M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes