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

qt creator crash because of std::bad_alloc

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.8.0
    • Qt Creator 4.6.2
    • C/C++/Obj-C++ Support
    • None
    • ubuntu 18.04, QT5.11.1

    • Linux/Other display system
    • 9fe8c46d15c9685a744df0f32feb3459a37ee623 (qt-creator/qt-creator/4.8)

    Description

      I have a big header file in my subject which is nearly 2gb.

      Qt creator crashes when I open the cpp file which include the big header file and gives me the error "std::bad_alloc()"

      The cpptool tries to parse the big header file when it is included in c files without specifying the limit size of the file in file builtineditordocumentparser.cpp ( function BuiltinEditorDocumentParser::updateImpl).

      Shall the object sourceProcessor call function setFileSizeLimitInMb before it goes on?

      Thank you!

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            xlong.lee Dawn Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes