Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 3.5.0-beta1
-
None
-
Kubuntu 15.04, x86_64.
-
99dea548e034524d49820a2c10b3b03adddc9ec3
Description
I opened my CMake C++ project. From the previous session it had several files opened. I switched to another open C++ file and QtCreator crashed. See the backtrace attached.
The crash happens only when I switch to a particular file. I'm able to switch to other files without a problem. What's interesting, yesterday I was editing this very file in QtCreator and it didn't crash. Apparently, the problem appeared after I restarted QtCreator and it reparsed the project.
I wasn't able to identify the particular piece of code that caused the crash. The code includes quite a few headers, some of them are from Boost and ffmpeg. It kept crashing until I commented this line:
std::unique_ptr< AVFormatContext, xcoder::av_format_context_deleter > m_avf_ctx;
as well as ffmpeg headers. But after it stopped crashing I uncommented all code back and it didn't crash again after restart.
Attachments
For Gerrit Dashboard: QTCREATORBUG-14748 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
122618,2 | C++: Fix potential crash | 3.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
122623,3 | C++: Fix crash in template argument resolving | 3.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |