Qt Creator 3.4.1 on Windows: issues with CMake?
-
Hi,
I have just upgraded my copy of Qt Creator on Windows from version 3.4.0 to version 3.4.1, and my Qt+CMake project which used to work perfectly fine now keeps crashing Qt Creator.
All I have to do is to open my project and wait, then without a few seconds Qt Creator will crash.
I thought it might be an issue with Qt+CMake, so I created a very simple Qt+CMake project and loaded it in Qt Creator. However, everything works fine and Qt Creator doesn't crash (as should be the case indeed).
So, there is something in my Qt+CMake project that makes Qt Creator crash, but I really can't tell what it is since all I am getting from Qt Creator is a message that reads:
qtcreator.exe has stopped working. A Problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
Otherwise, and FWIW, something that I noticed is that it now takes longer to open my Qt+CMake project in Qt Creator.
Anyway, would anyone know how to tell what could be wrong with Qt Creator here? Right now, I am stuck...
Cheers, Alan.
-
Ok, I thought I would switch the Mac version, but... same problem except that this time I am getting more information about the crash (thanks to OS X). Among the different threads, one is particularly interesting:
Thread 14 Crashed:: Thread (pooled) 0 libCPlusPlus.1.0.0.dylib 0x0000000113801c69 CPlusPlus::AST::AST() + 9 1 libCPlusPlus.1.0.0.dylib 0x0000000113813af5 CPlusPlus::BinaryExpressionAST::clone(CPlusPlus::MemoryPool*) const + 37 ... 511 libCPlusPlus.1.0.0.dylib 0x0000000113813b2c CPlusPlus::BinaryExpressionAST::clone(CPlusPlus::MemoryPool*) const + 92
So, it looks like there might be something wrong with the C++ plugin?
-
Hi @sneubert ,
I have tried that, as well as reinstall Qt and Qt Creator from scratch (i.e. after having uninstalled both of them), but to no avail.
However, I believe I might have found the reason of the problem. Basically, one of my sub
CMakeLists.txt
files refers to more than a thousand.cpp
file (it's an external library that I can build as part of my project).Indeed, I commented out all the references to the
.cpp
files in that subCMakeLists.txt
file, and everything worked as expected, i.e. Qt Creator didn't crash. From there, I uncommented some.cpp
files and tried again until the point where there were apparently too many.cpp
files for Qt Creator to cope and Qt Creator to crash (and get the message I mentioned above on OS X).I am going to investigate this further today, but to me it's obvious that the problem is with Qt Creator, not least because it all used to work fine with an older version of Qt Creator (can't tell which one though since I don't always build that external library).
-
Hi,
At how many files does the crash trigger ?