Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6199

Embedding of resources into executable needs too much memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 4.5.3
    • Core: Resource System
    • None
    • Windows XP, GCC from MinGW
    • 5395180fcb9a68b1590ce4bf29ef26745161403f

    Description

      I tried embedding a 7MB resource in an executable and saw this operation needed ~3GB of memory to complete.
      This is way too much IMHO. You should be able to embed a file weighing ~1GB with 3GB of memory available.
      A way to do this IMHO is generating the .o file without using gcc to compile big files; gcc uses way too much memory for such files.

      Steps to reproduce:
      1. Have a ~20MB compressed file (so rcc cannot compress it much)
      2. Try to compile it statically into an executable using a machine with <=4GB of memory

      Expected result:
      No problem, this operation is successful and uses little memory (say <100MB).

      Current result:
      The compilation fails because it runs out of memory.

      Attachments

        Issue Links

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

          Activity

            People

              hjk hjk
              poletti.marco Marco Poletti
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes