Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-10973

Out of memory when opening qtcreator.pro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 3.0.0
    • Qt Creator 3.0.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 7 64 bit
      Creator based on Qt 5 stable
      MSVC 32 bit
    • 796fcaf1d288267e93baba3d01927957c684758f

    Description

      1. Start Creator built on Qt 5 stable.
      2. Open qtcreator.pro from Creator's repository.
      3. Configure the project.
        I imported an existing out-of-source debug build based on Qt 5 stable.
      4. Wait for parsing to finish.
        Memory consumption rises to 1.5 GB and then Creator crashes:
        0	RaiseException	KERNELBASE		0x76f2c41f	
        1	_CxxThrowException	MSVCR100D		0x6618cf82	
        2	qBadAlloc	qglobal.cpp	2069	0x6632c28c	
        3	QByteArray::reallocData	qbytearray.cpp	1501	0x6635a577	
        4	QByteArray::reserve	qbytearray.h	448	0x663283ee	
        5	CPlusPlus::Preprocessor::run	pp-engine.cpp	768	0x5fcdbb6a	
        6	CppTools::Internal::CppPreprocessor::sourceNeeded	cpppreprocessor.cpp	443	0x5fea3c8e	
        7	CPlusPlus::Preprocessor::handleIncludeDirective	pp-engine.cpp	1617	0x5fcdbfae	
        8	CPlusPlus::Preprocessor::handlePreprocessorDirective	pp-engine.cpp	1565	0x5fcdc4c1	
        9	CPlusPlus::Preprocessor::lex	pp-engine.cpp	874	0x5fcdc7c5	
        10	CPlusPlus::Preprocessor::preprocess	pp-engine.cpp	1408	0x5fcdb16c	
        11	CPlusPlus::Preprocessor::run	pp-engine.cpp	768	0x5fcdbb8b	
        12	CppTools::Internal::CppPreprocessor::sourceNeeded	cpppreprocessor.cpp	443	0x5fea3c8e	
        13	CPlusPlus::Preprocessor::handleIncludeDirective	pp-engine.cpp	1617	0x5fcdbfae	
        14	CPlusPlus::Preprocessor::handlePreprocessorDirective	pp-engine.cpp	1565	0x5fcdc4c1	
        15	CPlusPlus::Preprocessor::lex	pp-engine.cpp	874	0x5fcdc7c5	
        16	CPlusPlus::Preprocessor::preprocess	pp-engine.cpp	1408	0x5fcdb16c	
        17	CPlusPlus::Preprocessor::run	pp-engine.cpp	768	0x5fcdbb8b	
        18	CppTools::Internal::CppPreprocessor::sourceNeeded	cpppreprocessor.cpp	443	0x5fea3c8e	
        19	CppTools::Internal::CppPreprocessor::run	cpppreprocessor.cpp	161	0x5fea1d0c	
        ...	<Mehr>				
        

        A Creator 3.0 built on Qt 4.8.5 is a little more robust (I got the backtrace using it) but will crash, too.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-10973
          # Subject Branch Project Status CR V

          Activity

            People

              kosjar Nikolai Kosjar
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes