Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved Qt Installer Framework 7zip exception not enough memory

    Tools
    installer framework 7zip qtifw-957 bug qtifw-957
    13
    21
    4358
    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.
    • M
      mselizabeth005 Banned last edited by mselizabeth005

      This post is deleted!
      M 1 Reply Last reply Reply Quote 0
      • M
        miller9163286 @mselizabeth005 last edited by miller9163286

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • K
          kuro last edited by kuro

          Hi,
          I'm facing just same problem.
          After some investigation, I found thant this is caused by multithread build of 7zip codes.
          Though I have not solved this bug(must be a bug) yet, I found we can use Single Threaded IFW by specifing _7ZIP_ST preprocessor macro on building IFW.
          (If you can make effort to build IFW by yourself)
          anyway, I'll make bug report to IFW team.

          aha_1980 dcouch 2 Replies Last reply Reply Quote 2
          • aha_1980
            aha_1980 Lifetime Qt Champion @kuro last edited by

            @kuro

            Thanks for reporting this. Please add a link to the report her once you've done it, so others can follow.

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply Reply Quote 1
            • K
              kuro last edited by kuro

              O key, I see, I'll put link to the issue after submit it.
              because I'm now doing some more investigation(for writing more precise report), it will takes more time.
              Thank you for your guide.

              1 Reply Last reply Reply Quote 2
              • K
                kuro last edited by

                I searched bug tracker site for this issue, then found this:
                https://bugreports.qt.io/browse/QTIFW-1157
                This issue is already closed because this is duplication of this:
                https://bugreports.qt.io/browse/QTIFW-957

                Regards.

                K aha_1980 2 Replies Last reply Reply Quote 2
                • K
                  koahnig @kuro last edited by

                  @kuro said in Qt Installer Framework 7zip exception not enough memory:

                  I searched bug tracker site for this issue, then found this:
                  https://bugreports.qt.io/browse/QTIFW-1157
                  This issue is already closed because this is duplication of this:
                  https://bugreports.qt.io/browse/QTIFW-957

                  Regards.

                  Thanks for following up and reporting links

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply Reply Quote 0
                  • aha_1980
                    aha_1980 Lifetime Qt Champion @kuro last edited by

                    @kuro Thanks for your findings. You can vote and comment at the bug QTIFW-957 to give it more priority :)

                    Qt has to stay free or it will die.

                    1 Reply Last reply Reply Quote 0
                    • dcouch
                      dcouch @kuro last edited by

                      @kuro Where are you defining this preprocessor macro?

                      1 Reply Last reply Reply Quote 0
                      • K
                        KMKT last edited by

                        Hi! This topic is pretty old; but the problem remains...
                        I am currently using IFW 4.2 with a Core i9 processor with10 cores => 20 logical processors.
                        I have 32GB RAM but I guess that the 32-bit official version 4.2 can only handle 2GB...
                        I bet the high number of threads combined with limited 32-bit memory is a bad combination.
                        Building the IFW in 64-bit (or, as kuro suggests: limiting the number of threads) would help.
                        However, many Qt users (like me) just want to use the official build installed by the MaintenanceTool.
                        Can we expect the forthcoming official release version 4.3 to fix this? I see a recent git commit about using libarchive for 7zip. The comment seems to tell that using libarchive will not be official but will require a special build option...

                        Christian Ehrlicher 1 Reply Last reply Reply Quote 0
                        • Christian Ehrlicher
                          Christian Ehrlicher Lifetime Qt Champion @KMKT last edited by

                          @KMKT said in Qt Installer Framework 7zip exception not enough memory:

                          Can we expect the forthcoming official release version 4.3 to fix this?

                          Wrong place to ask such things, this is a user-driven forum -> bugreports.qt.io

                          Qt has to stay free or it will die.

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            KMKT @Christian Ehrlicher last edited by

                            @Christian-Ehrlicher Oh! I'm sorry.
                            My first search on bugreports.qt.io only found closed topics that did not fix the problem, and I was too shy to open a new one while so many others were closed. Then I found this open topic on this forum.
                            Anyway, after a second search on bugreports.qt.io, I found this: https://bugreports.qt.io/browse/QTIFW-2375
                            This will probably fix the problem. I guess, we'll have to wait for v4.3.0...
                            In the meantime, I can use my old 4-core computer to build installers; or use zip compression instead of 7zip, which results in a 10% larger file size (+50MB in my case).

                            S A 2 Replies Last reply Reply Quote 2
                            • S
                              Stephen Quan @KMKT last edited by

                              @KMKT writes:

                              In the meantime, I can use my old 4-core computer to build installers; or use zip compression instead of 7zip, which results in a 10% larger file size (+50MB in my case).

                              I have been having this issue for 3 years now, but, your sentence gave me a new perspective on this issue. For me, the computer that always fails has 12 cores, whereas the computer that always works has 4 cores.

                              I decided to do an experiment on my failing 12 core machine: I run MSCONFIG, go to Boot options go into Advanced Options I tried changing my cores to either 4 or 8. And, oh my gosh, to my surprise, in both tests, the problem went away?!?! So, there must be some fault in the 7zip library not handling a large number of cores?!

                              K 1 Reply Last reply Reply Quote 4
                              • K
                                KMKT @Stephen Quan last edited by

                                @Stephen-Quan Thank you for detailing how to limit the number of processors. I did not know it was possible.
                                Remark: my Intel Core i9 CPU has 10 cores, which makes 20 logical processors. So if I set the number of processors to 8, it iactually limits my CPU to 4 cores.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  artarkia @KMKT last edited by

                                  @KMKT Hi, and sorry for the late reply.

                                  libarchive support is enabled in the official Qt IFW binaries, and for the upcoming 4.3 release it does the handling of all archive formats including 7zip. The reason it's behind a separate config feature is that libarchive requires linking against additional libraries in comparison to the LZMA SDK distributed with the Installer Framework, so we didn't want to force the changes to the users' build environments.

                                  However, even after migrating the 7z format to libarchive, there have still been some findings about occasional memory allocation failures when extracting large archives. Moving the IFW binaries to 64-bit on Windows should hopefully finally fix these issues. The user story is tracked here QTIFW-2544, and is something targeted for Qt IFW 4.4.

                                  1 Reply Last reply Reply Quote 2
                                  • First post
                                    Last post