Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. C++ indexing fails as the size of the file is too big
Forum Update on Monday, May 27th 2025

C++ indexing fails as the size of the file is too big

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 5 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tanushree
    wrote on last edited by
    #1

    Hi,

    I am trying to build a project but it crashes saying
    " file too big ". Attached is the screenshot.

    Have seen popular answers such as adding -Wa,-mbig-obj to cmake call but it didnt work.

    Can someone please help.

    Capture.PNG

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by mchinand
      #2

      Do you have a screenshot (or better yet, copy and paste the text) where it 'crashing' during building? Your screenshot is showing the C++ indexer skipping a file (I'm seeing just one line in your screenshot, maybe there's more you didn't include). I have seen this for auto-generated source files from resource files (qrc) and just ignore them since I don't see the need for them to be indexed. What happens when you try to build the project?

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        This is an output of your IDE, not of your compiler and linker. It simply tells you that the IDE-internal indexer will ignore a file because it's too big. So you can't find the symbols in this file, nothing more.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Tanushree
          wrote on last edited by
          #4

          When I try to build the project, the application output says The program finished unexpectedly - ss attachedCapture1.PNG

          and in the general logs it says the file is too big (the earlier ss)

          artwawA Christian EhrlicherC 2 Replies Last reply
          0
          • T Tanushree

            When I try to build the project, the application output says The program finished unexpectedly - ss attachedCapture1.PNG

            and in the general logs it says the file is too big (the earlier ss)

            artwawA Offline
            artwawA Offline
            artwaw
            wrote on last edited by
            #5

            @Tanushree This is output from your attempt to run your program, not from the build process?

            For more information please re-read.

            Kind Regards,
            Artur

            1 Reply Last reply
            3
            • T Tanushree

              When I try to build the project, the application output says The program finished unexpectedly - ss attachedCapture1.PNG

              and in the general logs it says the file is too big (the earlier ss)

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Tanushree said in C++ indexing fails as the size of the file is too big:

              When I try to build the project, the application output says The program finished unexpectedly - ss attached

              This is no output from the build process but from your debugging/run session as @artwaw already pointed out.
              When your program crashes you normally use a debugger and fix the crash...

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              3
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #7

                No Qt version info. Check the following out
                https://bugreports.qt.io/browse/QTCREATORBUG-17534
                https://doc.qt.io/qtcreator/creator-clang-codemodel.html
                To avoid out-of-memory crashes caused by indexing huge source files that are typically auto-generated by scripts or code, the size of files to index is limited to 5MB by default. To adjust the limit, edit the value for the Do not index files greater than check box. To index all files, deselect the check box.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved