I am getting a consistent crash when I paste some code into a .cpp file. Here is the relevant stack trace from macOS 10.13.6. We have our own .clang-format file at the top level of the project.
Process: Qt Creator [1238] Path: /Users/USER/*/Qt Creator.app/Contents/MacOS/Qt Creator Identifier: org.qt-project.qtcreator Version: 4.7 (4.7.82) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Qt Creator [1238] User ID: 502 Date/Time: 2018-10-15 09:26:33.219 -0400 OS Version: Mac OS X 10.13.6 (17G65) Report Version: 12 Anonymous UUID: 8CB19EB8-ED2B-2DE7-7B3F-94DF58A06966 Time Awake Since Boot: 400000 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: abort() called terminating with uncaught exception of type std::out_of_range: basic_string Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff73d18b66 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff73ee3080 pthread_kill + 333 2 libsystem_c.dylib 0x00007fff73c741ae abort + 127 3 libc++abi.dylib 0x00007fff71b71f8f abort_message + 245 4 libc++abi.dylib 0x00007fff71b72113 default_terminate_handler() + 241 5 libobjc.A.dylib 0x00007fff72fb3a4f _objc_terminate() + 105 6 libc++abi.dylib 0x00007fff71b8d7c9 std::__terminate(void (*)()) + 8 7 libc++abi.dylib 0x00007fff71b8d26f __cxa_throw + 121 8 libc++.1.dylib 0x00007fff71b53e11 std::__1::__basic_string_common<true>::__throw_out_of_range() const + 71 9 libc++.1.dylib 0x00007fff71b54913 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, unsigned long, std::__1::allocator<char> const&) + 187 10 libClangFormat.dylib 0x000000010ed9b139 ClangFormat::Internal::(anonymous namespace)::applyReplacements(QTextDocument*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, clang::tooling::Replacements const&, int) + 281 11 libClangFormat.dylib 0x000000010ed9be14 ClangFormat::Internal::ClangFormatIndenter::indentBlock(QTextDocument*, QTextBlock const&, QChar const&, TextEditor::TabSettings const&) + 1284 12 libClangFormat.dylib 0x000000010ed9a9b8 ClangFormat::Internal::ClangFormatIndenter::indent(QTextDocument*, QTextCursor const&, QChar const&, TextEditor::TabSettings const&, bool) + 88 13 libTextEditor.dylib 0x000000010c4a069b TextEditor::TextDocument::autoIndent(QTextCursor const&, QChar, bool) + 91 14 libTextEditor.dylib 0x000000010c4b21c3 TextEditor::TextEditorWidget::keyPressEvent(QKeyEvent*) + 1043 15 libCppEditor.dylib 0x000000010d5e5ce1 CppEditor::Internal::CppEditorWidget::keyPressEvent(QKeyEvent*) + 257 16 org.qt-project.QtWidgets 0x00000001063d30ab QWidget::event(QEvent*) + 587 17 org.qt-project.QtWidgets 0x000000010647c7ed QFrame::event(QEvent*) + 45 18 org.qt-project.QtWidgets 0x000000010647f281 QAbstractScrollArea::event(QEvent*) + 449 19 org.qt-project.QtWidgets 0x0000000106553b1d QPlainTextEdit::event(QEvent*) + 781 20 libTextEditor.dylib 0x000000010c4b583a TextEditor::TextEditorWidget::event(QEvent*) + 74 21 libCppEditor.dylib 0x000000010d5e4f96 CppEditor::Internal::CppEditorWidget::event(QEvent*) + 70 22 org.qt-project.QtWidgets 0x0000000106398d32 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306 23 org.qt-project.QtWidgets 0x000000010639a25c QApplication::notify(QObject*, QEvent*) + 908 24 org.qt-project.QtCore 0x000000010703d85f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159 25 org.qt-project.QtWidgets 0x00000001063f1ea4 0x106389000 + 429732 26 org.qt-project.QtWidgets 0x0000000106398d32 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306 27 org.qt-project.QtWidgets 0x000000010639a10d QApplication::notify(QObject*, QEvent*) + 573 28 org.qt-project.QtCore 0x000000010703d85f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159 29 org.qt-project.QtGui 0x0000000106967c75 QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) + 165 30 org.qt-project.QtGui 0x000000010694ed4b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 155 31 org.qt-project.QtGui 0x000000010694a7b0 QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 576 32 libqcocoa.dylib 0x00000001093eb450 0x1093c8000 + 144464 33 libqcocoa.dylib 0x00000001093eb618 0x1093c8000 + 144920 34 com.apple.AppKit 0x00007fff49baa43d -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 5040 35 com.apple.AppKit 0x00007fff49ba8c70 -[NSWindow(NSEventRouting) sendEvent:] + 497 36 libqcocoa.dylib 0x00000001093efc70 0x1093c8000 + 162928 37 com.apple.AppKit 0x00007fff49a0a236 -[NSApplication(NSEvent) sendEvent:] + 2462 38 libqcocoa.dylib 0x00000001093f626a 0x1093c8000 + 189034 39 com.apple.AppKit 0x00007fff4926a8b5 -[NSApplication run] + 812 40 libqcocoa.dylib 0x00000001093f28ed 0x1093c8000 + 174317 41 org.qt-project.QtCore 0x00000001070393b2 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 418 42 org.qt-project.QtCore 0x000000010703df72 QCoreApplication::exec() + 402 43 org.qt-project.qtcreator 0x00000001060b4e11 main + 15313 44 libdyld.dylib 0x00007fff73bc8015 start + 1 -- Michael Jackson | Owner, President BlueQuartz Software [e] mike.jack...@bluequartz.net [w] www.bluequartz.net
_______________________________________________ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator