Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
Qt Creator 4.2.0-rc1
-
None
-
Windows 7, MSVC2015
Description
I have a large project with ~13K source files.
When Creator finishes to parse the project, it takes ~1G of memory.
Switching build configurations or editing project files triggers reparsing, which consumes even more memory.
At some point (I currently have 1.45G of private bytes, 1.8G virtual size), Creator crashes with bad_alloc exception. Trace follows.
Providing a 64-bit build might help, but it would be better to reduce memory consumption
RaiseException CxxThrowException __scrt_throw_std_bad_alloc operator new std::allocator<CPlusPlus::Token>::allocate std::vector<CPlusPlus::Token,std::allocator<CPlusPlus::Token> >::_Reallocate std::vector<CPlusPlus::Token,std::allocator<CPlusPlus::Token> >::_Reserve std::vector<CPlusPlus::Token,std::allocator<CPlusPlus::Token> >::push_back CPlusPlus::TranslationUnit::tokenize CppTools::Internal::CppSourceProcessor::sourceNeeded CppTools::Internal::CppSourceProcessor::run `anonymous namespace'::index `anonymous namespace'::parse Utils::Internal::runAsyncMemberDispatch<void,void (__cdecl*)(QFutureInterface<void> &,`anonymous namespace'::ParseParams),A0xfa66740b::ParseParams,void> Utils::Internal::AsyncJob<void,void (__cdecl&)(QFutureInterface<void> &,`anonymous namespace'::ParseParams),A0xfa66740b::ParseParams &>::runHelper<0,1> Utils::Internal::AsyncJob<void,void (__cdecl&)(QFutureInterface<void> &,`anonymous namespace'::ParseParams),A0xfa66740b::ParseParams &>::run QThreadPoolPrivate::reset QThread::start crt_at_quick_exit BaseThreadInitThunk RtlInitializeExceptionChain RtlInitializeExceptionChain