Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Can't build QtWebEngine. Compiler out of heap space error!
Forum Updated to NodeBB v4.3 + New Features

Can't build QtWebEngine. Compiler out of heap space error!

Scheduled Pinned Locked Moved Solved QtWebEngine
20 Posts 8 Posters 2.6k Views 2 Watching
  • 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.
  • N new-user

    @Christian-Ehrlicher

    Do you not know how to solve the problem. Maybe I should report this as a bug in Qt because no software should be using 100GB of ram just to compile.

    Axel SpoerlA Offline
    Axel SpoerlA Offline
    Axel Spoerl
    Moderators
    wrote on last edited by
    #10

    @new-user
    Before reporting a bug, could to cd into the qtwebengine source tree and run

    git submodule update —recursive
    

    (two minuses, as on my computer this here is displayed as one long minus)
    Webengine uses a lot of 3rd party sources. When they are just slightly out of date, you sometimes face strange compiling errors.

    How much ram do you have? I can build Webengine with 64GB of ram.

    Software Engineer
    The Qt Company, Oslo

    N 1 Reply Last reply
    0
    • Axel SpoerlA Axel Spoerl

      @new-user
      Before reporting a bug, could to cd into the qtwebengine source tree and run

      git submodule update —recursive
      

      (two minuses, as on my computer this here is displayed as one long minus)
      Webengine uses a lot of 3rd party sources. When they are just slightly out of date, you sometimes face strange compiling errors.

      How much ram do you have? I can build Webengine with 64GB of ram.

      N Offline
      N Offline
      new-user
      wrote on last edited by
      #11

      @Axel-Spoerl

      It doesn't matter how much memory I have. No matter how much more memory I add to the system it is still for some weird reason not enough. How did you even build it with 64GB of memory? What version of Qt did you use? What are your compiler flags? What is the size of your page file? What is your build environment?

      Axel SpoerlA 1 Reply Last reply
      0
      • N new-user

        @Axel-Spoerl

        It doesn't matter how much memory I have. No matter how much more memory I add to the system it is still for some weird reason not enough. How did you even build it with 64GB of memory? What version of Qt did you use? What are your compiler flags? What is the size of your page file? What is your build environment?

        Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by
        #12

        @new-user
        I build 6.7 and 6.8 on Linux with 64MB Ram and ample disk space.

        configure -developer-build -xcb -submodules qtdeclarative, qtwebengine
        

        Have you tried the submodule update?

        Software Engineer
        The Qt Company, Oslo

        N 1 Reply Last reply
        0
        • Axel SpoerlA Axel Spoerl

          @new-user
          I build 6.7 and 6.8 on Linux with 64MB Ram and ample disk space.

          configure -developer-build -xcb -submodules qtdeclarative, qtwebengine
          

          Have you tried the submodule update?

          N Offline
          N Offline
          new-user
          wrote on last edited by
          #13

          @Axel-Spoerl

          I built qtwebengine successfully but unfortunately it needs a lot of memory to be built it used as mush as 112GB of memory for a few hours of building then memory consumption normalized afterwards. Just by increasing window's page file size it worked. Gracias😀

          Axel SpoerlA 1 Reply Last reply
          0
          • N new-user has marked this topic as solved on
          • N new-user

            @Axel-Spoerl

            I built qtwebengine successfully but unfortunately it needs a lot of memory to be built it used as mush as 112GB of memory for a few hours of building then memory consumption normalized afterwards. Just by increasing window's page file size it worked. Gracias😀

            Axel SpoerlA Offline
            Axel SpoerlA Offline
            Axel Spoerl
            Moderators
            wrote on last edited by
            #14

            @new-user
            It’s a bit sad, that you completely ignore my question about the submodule update.

            Software Engineer
            The Qt Company, Oslo

            N 1 Reply Last reply
            0
            • S Offline
              S Offline
              SimonSchroeder
              wrote on last edited by
              #15

              If you are using parallel compilation on an AMD ThreadRipper with up to 96 cores, each compilation processes only gets about 1GB of memory if you have ~100GB available. If your PC has many cores, try restricting the number of cores and compilation will become faster (using the pagefile is not a real solution). More cores is not always better.

              JonBJ 1 Reply Last reply
              2
              • S SimonSchroeder

                If you are using parallel compilation on an AMD ThreadRipper with up to 96 cores, each compilation processes only gets about 1GB of memory if you have ~100GB available. If your PC has many cores, try restricting the number of cores and compilation will become faster (using the pagefile is not a real solution). More cores is not always better.

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by
                #16

                @SimonSchroeder
                Wow that is interesting! I assume this applies to any multi-core/processor. So each time I offer use of a core to a process it will divide available memory across cores used and each one (or the new one at least) will only get a limited amount. Having more available cores than available memory sounds like a bad idea!

                1 Reply Last reply
                0
                • Axel SpoerlA Axel Spoerl

                  @new-user
                  It’s a bit sad, that you completely ignore my question about the submodule update.

                  N Offline
                  N Offline
                  new-user
                  wrote on last edited by
                  #17

                  @Axel-Spoerl

                  Q: Can you please confirm if you have done a submodule update in qtwebengine, as I already asked in the forum?

                  A: Yes I did run the command "git submodule update --recursive" but no output was shown.

                  1 Reply Last reply
                  0
                  • 7 Offline
                    7 Offline
                    7erg
                    wrote on last edited by
                    #18

                    Same here.
                    It needs at least 112 GB memory to build qtwebengine 6.6.1 on windows 10 with MSVC 2022. I was able to finally build it with 50 GB ram + 70 GB pagefile in virtual environment.
                    Building linux version on ubuntu with gcc was successfull with 8 GB ram+30 GB swap.
                    It would be better to list memory requirements in prerequisites section of building instructions

                    JonBJ jsulmJ 2 Replies Last reply
                    0
                    • 7 7erg

                      Same here.
                      It needs at least 112 GB memory to build qtwebengine 6.6.1 on windows 10 with MSVC 2022. I was able to finally build it with 50 GB ram + 70 GB pagefile in virtual environment.
                      Building linux version on ubuntu with gcc was successfull with 8 GB ram+30 GB swap.
                      It would be better to list memory requirements in prerequisites section of building instructions

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #19

                      @7erg said in Can't build QtWebEngine. Compiler out of heap space error!:

                      It needs at least 112 GB memory to build qtwebengine 6.6.1 on windows 10 with MSVC 2022. I was able to finally build it with 50 GB ram + 70 GB pagefile in virtual environment.

                      OMG!

                      1 Reply Last reply
                      0
                      • 7 7erg

                        Same here.
                        It needs at least 112 GB memory to build qtwebengine 6.6.1 on windows 10 with MSVC 2022. I was able to finally build it with 50 GB ram + 70 GB pagefile in virtual environment.
                        Building linux version on ubuntu with gcc was successfull with 8 GB ram+30 GB swap.
                        It would be better to list memory requirements in prerequisites section of building instructions

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #20

                        @7erg Does it help to reduce the number of parallel build processes?

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        1

                        • Login

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