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

Large increase in memory usage when using the "\n" character

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.1
    • 4.5.3
    • GUI: Font handling
    • None
    • 98a23b974509bd1b6d9459e6c79677bdcbaa0108

    Description

      To test this bug I used Qt example program in /usr/local/Trolltech/Qt-4.5.1/examples/widgets named spinboxes.

      This bug occurs on X11 with Qt 4.5.1, 4.5.2, and the 4.6 snapshot.

      Just change one of the labels text, just add a \n between the label text. This causes increase in virtual memory of application.
      Without \n Virtual memory is 25 MB and with \n in label it is 90 MB.

      First run unaltered:

      Memory: 3.2 M
      Virtual Size: 39.5 M

      Second run, with \n character added to one of the lables:

      Memory: 8.6 M
      Virtual Size: 118.8 M

      Third run, after removing the \n character and rebuilding:

      Memory: 3.2 M
      Virtual Size: 39.5 M

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes