#189 Qt Creator crashes when opening project (patch)

unstable
closed
nobody
None
2014-08-11
2012-04-01
Tyler Mandry
No

Build from 2.5 branch of android-qt-creator.

Process:         Qt Creator [37891]
Path:            /Users/USER/*/Qt Creator.app/Contents/MacOS/Qt Creator
Identifier:      com.nokia.qtcreator
Version:         2.4.82 (2.4.82)
Code Type:       X86-64 (Native)
Parent Process:  launchd [434]

Date/Time:       2012-04-01 00:45:23.656 -0500
OS Version:      Mac OS X 10.7.3 (11D50b)
Report Version:  9

Interval Since Last Report:          637457 sec
Crashes Since Last Report:           17
Per-App Interval Since Last Report:  11430 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      6DB08BE5-2538-409B-816C-6C8D40A7AFF7

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                 0000000100000000-000000010001c000 [  112K] r-x/rwx SM=COW  /Users/USER/*/Qt Creator.app/Contents/MacOS/Qt Creator

Application Specific Information:
objc[37891]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libAndroid_debug.dylib          0x000000010b67e01f Android::Internal::AndroidTarget::createAndroidTemplatesIfNecessary() + 655 (androidtarget.cpp:350)
1   libAndroid_debug.dylib          0x000000010b6845fb Android::Internal::AndroidTarget::targetSDK() + 83 (androidtarget.cpp:963)
2   libAndroid_debug.dylib          0x000000010b63af6d Android::Internal::AndroidPackageCreationWidget::updateAndroidProjectInfo() + 195 (androidpackagecreationwidget.cpp:245)
3   libAndroid_debug.dylib          0x000000010b63c430 Android::Internal::AndroidPackageCreationWidget::initGui() + 56 (androidpackagecreationwidget.cpp:205)
4   libAndroid_debug.dylib          0x000000010b6aa1be Android::Internal::AndroidPackageCreationWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 196 (moc_androidpackagecreationwidget.cpp:222)
5   QtCore                          0x00000001010c01fe QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 1566
6   QtCore                          0x00000001010c9017 QSingleShotTimer::timerEvent(QTimerEvent*) + 39
7   QtCore                          0x00000001010bc5e0 QObject::event(QEvent*) + 432
8   QtGui                           0x0000000100188fad QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189
9   QtGui                           0x000000010018ffe4 QApplication::notify(QObject*, QEvent*) + 1060
10  QtCore                          0x00000001010a875c QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
11  QtGui                           0x0000000100189d5c qt_sendSpontaneousEvent(QObject*, QEvent*) + 44
12  QtGui                           0x0000000100143c6c QEventDispatcherMacPrivate::activateTimer(__CFRunLoopTimer*, void*) + 188
13  com.apple.CoreFoundation        0x00007fff8ac14c24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
14  com.apple.CoreFoundation        0x00007fff8ac14776 __CFRunLoopDoTimer + 534
15  com.apple.CoreFoundation        0x00007fff8abf5001 __CFRunLoopRun + 1617
16  com.apple.CoreFoundation        0x00007fff8abf4676 CFRunLoopRunSpecific + 230
17  com.apple.HIToolbox             0x00007fff877a131f RunCurrentEventLoopInMode + 277
18  com.apple.HIToolbox             0x00007fff877a851b ReceiveNextEventCommon + 181
19  com.apple.HIToolbox             0x00007fff877a8456 BlockUntilNextEventMatchingListInMode + 62
20  com.apple.AppKit                0x00007fff89693f5d _DPSNextEvent + 659
21  com.apple.AppKit                0x00007fff89693861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
22  QtGui                           0x000000010014552e QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1278
23  QtCore                          0x00000001010aaac5 QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 69
24  libProjectExplorer_debug.dylib  0x0000000107c20797 ProjectExplorer::SessionManager::sessionLoadingProgress() + 101 (session.cpp:916)
25  libProjectExplorer_debug.dylib  0x0000000107c207b6 ProjectExplorer::SessionManager::reportProjectLoadingProgress() + 24 (session.cpp:903)
26  libProjectExplorer_debug.dylib  0x0000000107b38fe5 ProjectExplorer::ProjectExplorerPlugin::openProjects(QStringList const&, QString*) + 2001 (projectexplorer.cpp:1330)
27  libProjectExplorer_debug.dylib  0x0000000107b39b6e ProjectExplorer::ProjectExplorerPlugin::openProject(QString const&, QString*) + 232 (projectexplorer.cpp:1285)
28  libProjectExplorer_debug.dylib  0x0000000107c47c62 ProjectExplorer::Internal::ProjectFileFactory::open(QString const&) + 54 (pluginfilefactory.cpp:82)
29  libCore_debug.dylib             0x000000010650e578 Core::Internal::MainWindow::openFiles(QStringList const&, Core::ICore::OpenFilesFlags) + 326 (mainwindow.cpp:874)
30  libCore_debug.dylib             0x000000010650ebb3 Core::Internal::MainWindow::openFile() + 71 (mainwindow.cpp:836)
31  libCore_debug.dylib             0x000000010672a9b2 Core::Internal::MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 2658 (moc_mainwindow.cpp:128)
32  QtCore                          0x00000001010c01fe QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 1566
33  QtGui                           0x0000000100183581 QAction::triggered(bool) + 49
34  QtCore                          0x00000001010c01fe QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 1566
35  QtGui                           0x0000000100183581 QAction::triggered(bool) + 49
36  QtGui                           0x0000000100184914 QAction::activate(QAction::ActionEvent) + 180
37  QtGui                           0x0000000100139d5a -[QCocoaMenuLoader qtDispatcherToQAction:] + 106
38  com.apple.CoreFoundation        0x00007fff8ac4f75d -[NSObject performSelector:withObject:] + 61
39  com.apple.AppKit                0x00007fff89798cb2 -[NSApplication sendAction:to:from:] + 139
40  com.apple.AppKit                0x00007fff89885fe7 -[NSMenuItem _corePerformAction] + 399
41  com.apple.AppKit                0x00007fff89885d1e -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 125
42  com.apple.AppKit                0x00007fff89803264 -[NSMenu performKeyEquivalent:] + 281
43  com.apple.AppKit                0x00007fff89801eb5 -[NSApplication _handleKeyEquivalent:] + 526
44  com.apple.AppKit                0x00007fff896f9c4e -[NSApplication sendEvent:] + 4282
45  QtGui                           0x000000010013a974 -[QNSApplication sendEvent:] + 84
46  com.apple.AppKit                0x00007fff896901f2 -[NSApplication run] + 555
47  QtGui                           0x0000000100145750 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1824
48  QtCore                          0x00000001010a7664 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
49  QtCore                          0x00000001010a7a14 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
50  QtCore                          0x00000001010aa90c QCoreApplication::exec() + 188
51  com.nokia.qtcreator             0x000000010000e2d2 main + 17074 (main.cpp:421)
52  com.nokia.qtcreator             0x0000000100003f04 start + 52

Discussion

  • Tyler Mandry
    Tyler Mandry
    2012-04-01

    • summary: Qt Creator crash --> Qt Creator crashes when opening project (patch)

    • Description has changed

     
    Last edit: Tyler Mandry 2012-04-01
  • Tyler Mandry
    Tyler Mandry
    2012-04-01

    Turns out this crash is easy to avoid. See attached patch. I don't know if the review board is for qt creator so I'll just leave it here for now.

     
    Attachments
  • BogDan Vatra
    BogDan Vatra
    2012-05-15

    • status: open --> closed
     
  • BogDan Vatra
    BogDan Vatra
    2012-05-15

    Many thanks for your effort ! Sadly it was already fixed in master branch :)
    Anyway, meanwhile Android plugin was upstreamed and from now on only for QtCreator, please use codereview.qt-project.org to post your patches.