Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Tools
    5
    7
    660
    Loading More Posts
    • 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
      Tanushree last edited by

      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 Reply Quote 0
      • M
        mchinand last edited by mchinand

        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 Reply Quote 0
        • Christian Ehrlicher
          Christian Ehrlicher Lifetime Qt Champion last edited by

          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 Reply Quote 0
          • T
            Tanushree last edited by

            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)

            artwaw Christian Ehrlicher 2 Replies Last reply Reply Quote 0
            • artwaw
              artwaw @Tanushree last edited by

              @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 Reply Quote 3
              • Christian Ehrlicher
                Christian Ehrlicher Lifetime Qt Champion @Tanushree last edited by

                @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 Reply Quote 3
                • JoeCFD
                  JoeCFD last edited by JoeCFD

                  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 Reply Quote 0
                  • First post
                    Last post