OneMoreGres / qtc-cppcheck

Qt Creator Cppcheck integration plugin [deprecated]
MIT License
127 stars 37 forks source link

QtCreator crashes when I change branch or stash changes from command line #8

Closed agilob closed 9 years ago

agilob commented 9 years ago

This happens since I installed your plugin.

  1. git stash or git pull <branch>
  2. <file> has changed outside Qt Creator. Do you want to reload it?
  3. Select Yes to all

Possible two different errors:

 /usr/bin/qtcreator: line 2: 16501 Segmentation fault      (core dumped) QT_LOGGING_TO_CONSOLE=1 qtcreator-bin $@

or

0  libLLVM-3.5.so     0x00007f8b46bcbb82 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1  libLLVM-3.5.so     0x00007f8b46bcb5dc
2  libpthread.so.0    0x00007f8b5f3e7210
3  libTextEditor.so   0x00007f8b51f9f693 TextEditor::TextDocumentLayout::documentReloaded(QList<TextEditor::TextMark*>, TextEditor::TextDocument*) + 275
4  libTextEditor.so   0x00007f8b51f2cae7 TextEditor::TextDocument::reload(QString*) + 311
5  libCore.so         0x00007f8b5288885e Core::DocumentManager::checkForReload() + 4190
6  libQt5Core.so.5    0x00007f8b5f8b14ba QObject::event(QEvent*) + 250
7  libQt5Widgets.so.5 0x00007f8b5fc1bd8c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 140
8  libQt5Widgets.so.5 0x00007f8b5fc21370 QApplication::notify(QObject*, QEvent*) + 1392
9  libQt5Core.so.5    0x00007f8b5f880a9b QCoreApplication::notifyInternal(QObject*, QEvent*) + 219
10 libQt5Core.so.5    0x00007f8b5f882adb QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 491
11 libQt5Core.so.5    0x00007f8b5f8d7c83
12 libglib-2.0.so.0   0x00007f8b5dd4ca0d g_main_context_dispatch + 589
13 libglib-2.0.so.0   0x00007f8b5dd4ccf8
14 libglib-2.0.so.0   0x00007f8b5dd4cdac g_main_context_iteration + 44
15 libQt5Core.so.5    0x00007f8b5f8d8077 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 87
16 libQt5Core.so.5    0x00007f8b5f87e532 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 274
17 libQt5Core.so.5    0x00007f8b5f885f0c QCoreApplication::exec() + 156
18 qtcreator-bin      0x000000000040a208
19 libc.so.6          0x00007f8b5eb2f040 __libc_start_main + 240
20 qtcreator-bin      0x000000000040a3eb
/usr/bin/qtcreator: line 2: 17133 Segmentation fault      (core dumped) QT_LOGGING_TO_CONSOLE=1 qtcreator-bin $@

Unable to reproduce without plugin, happens only when QtcCppCheck is enabled.

Qt Creator 3.3.0
Based on Qt 5.4.0 (GCC 4.9.2, 64 bit)
Built on Dec 10 2014 at 12:50:07
OneMoreGres commented 9 years ago

Ok. I'll try to reproduce it. What options do you have enabled in plugin's settings? Its screen would be great. And your Qt Creator and plugin are prebuilt or you compiled them by yourself?

agilob commented 9 years ago

qtcppckeck

QtCreator downloaded from standard ArchLinux repository, plugin downloaded from SF.

OneMoreGres commented 9 years ago

Should be fixed now. I uploaded x64 binary to sourceforge. Other versions will be soon.

agilob commented 9 years ago

4 days without crash, thank you.

OneMoreGres commented 9 years ago

You're welcome :)