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

[MAC/LINUX] Crash in QtSupport::UiCodeModelSupport::init when opening project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.6.1
    • Qt Creator 3.5.0, Qt Creator 3.5.1
    • None
    • Mac OSX 10.9.5, XCode 6.2, Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

    Description

      I'm getting a crash in Qt creator (both official 3.5.0 and 3.5.1 snapshot from Sept 25, revision f229f0dbe5) when I try to open the project file of my large, complicated application. Shortly before the crash comes up, the box in the lower right comes up saying "Reading Project "Igor Phoenix"" and the bar may move some (but stays gray) and then I get the crash.

      Process:         Qt Creator [5970]
      Path:            /Applications/Qt Creator.app/Contents/MacOS/Qt Creator
      Identifier:      org.qt-project.qtcreator
      Version:         3.5.1 (3.5.1)
      Code Type:       X86-64 (Native)
      Parent Process:  launchd [205]
      Responsible:     Qt Creator [5970]
      User ID:         501
      
      Date/Time:       2015-09-25 14:31:06.286 -0700
      OS Version:      Mac OS X 10.9.5 (13F1112)
      Report Version:  11
      Anonymous UUID:  48AE9005-E29D-A2AC-D5A6-4A54F266F748
      
      
      Crashed Thread:  0  Dispatch queue: com.apple.main-thread
      
      Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes: KERN_INVALID_ADDRESS at 0x0000000100000002
      
      VM Regions Near 0x100000002:
      --> 
          __TEXT                 0000000103671000-0000000103684000 [   76K] 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.QtCore         	0x00000001044efd8c QByteArray::clear() + 12
      1   libQtSupport.dylib            	0x000000010aea0204 QtSupport::UiCodeModelSupport::init() const + 1924
      2   libQtSupport.dylib            	0x000000010ae9f949 QtSupport::UiCodeModelSupport::UiCodeModelSupport(CppTools::CppModelManager*, ProjectExplorer::Project*, QString const&, QString const&) + 473
      3   libQtSupport.dylib            	0x000000010aea28b7 QtSupport::UiCodeModelManager::update(ProjectExplorer::Project*, QHash<QString, QString>) + 519
      4   libQmakeProjectManager.dylib  	0x000000010f5de441 QmakeProjectManager::QmakeProject::updateCppCodeModel() + 5249
      5   libQmakeProjectManager.dylib  	0x000000010f5df9e3 QmakeProjectManager::QmakeProject::decrementPendingEvaluateFutures() + 275
      6   org.qt-project.QtCore         	0x00000001046c3ef2 QMetaObject::activate(QObject*, int, int, void**) + 1986
      7   org.qt-project.QtCore         	0x00000001044e1189 QFutureWatcherBase::event(QEvent*) + 265
      8   org.qt-project.QtWidgets      	0x000000010390e4bb QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
      9   org.qt-project.QtWidgets      	0x000000010391189e QApplication::notify(QObject*, QEvent*) + 8318
      10  org.qt-project.QtCore         	0x000000010469465b QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 971
      11  libqcocoa.dylib               	0x0000000106432cfe 0x106411000 + 138494
      12  libqcocoa.dylib               	0x0000000106433581 0x106411000 + 140673
      13  com.apple.CoreFoundation      	0x00007fff88f515b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      14  com.apple.CoreFoundation      	0x00007fff88f42c62 __CFRunLoopDoSources0 + 242
      15  com.apple.CoreFoundation      	0x00007fff88f423ef __CFRunLoopRun + 831
      16  com.apple.CoreFoundation      	0x00007fff88f41e75 CFRunLoopRunSpecific + 309
      17  com.apple.HIToolbox           	0x00007fff8cf78a0d RunCurrentEventLoopInMode + 226
      18  com.apple.HIToolbox           	0x00007fff8cf787b7 ReceiveNextEventCommon + 479
      19  com.apple.HIToolbox           	0x00007fff8cf785bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
      20  com.apple.AppKit              	0x00007fff92eea24e _DPSNextEvent + 1434
      21  com.apple.AppKit              	0x00007fff92ee989b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
      22  com.apple.AppKit              	0x00007fff92edd99c -[NSApplication run] + 553
      23  libqcocoa.dylib               	0x000000010643246d 0x106411000 + 136301
      24  org.qt-project.QtCore         	0x000000010469107d QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 381
      25  org.qt-project.QtCore         	0x0000000104693f5a QCoreApplication::exec() + 346
      26  org.qt-project.qtcreator      	0x000000010367cd4c main + 14780
      27  org.qt-project.qtcreator      	0x00000001036767d4 start + 52
      

      I am able to load a very simple project without a crash, so I suspect that there's something complicated in my main project file that's causing the crash.

      I first got this crash today, after I recompiled Qt itself locally. Previously, I was using essentially 5.5.0. Today, I updated to the tip of the 5.5.1 branch (f835537d9fe8076aaf7a8b6311dbdf30b01d1900) and rebuilt. When I opened Creator and opened my project, I got the crash. The crash is reproducible 100% of the time.

      Just to be clear, I am not building Qt Creator myself, only Qt.

      In case it matters, the configure commands I'm using for my Qt build are:

      MAKEFLAGS=-j16 ../../qt/configure -confirm-license -debug-and-release -opensource -gui -widgets -qpa cocoa -no-qml-debug -nomake examples -nomake tests -silent -no-sql-mysql -platform macx-clang-32  -skip declarative -prefix /qtbuild5/install/mac32
      
      
      MAKEFLAGS=-j16 ../../qt/configure -confirm-license -debug-and-release -opensource -gui -widgets -qpa cocoa -no-qml-debug -nomake examples -nomake tests -silent -no-sql-mysql -platform macx-clang -prefix /qtbuild5/install/mac64
      

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            aclight Adam Light
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes