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

Memory leaking when softkeys are changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.7.1
    • 4.6.3
    • GUI: Window management
    • None
    • Symbian S60 5th edition, Nokia X6 device
    • 0cbb1a488c4199ad06b8ab63a9d6bf09fc8a6911

    Description

      It appears that something in the underlying code that changes the softkeys on the Symbian platform is leaking memory.

      In order to help narrow down what could be causing unexpected memory seepage in our Qt Symbian application, we created a test application which displays the current heap statistics of the application on pressing a button (as an info print message, on devices with ErrRd.sis installed). In this very simple application, we saw a constant amount of heap memory in use each time we pressed the button, which is as expected.

      We then added a QAction to the application main window menu bar, to show the memory usage via a menu option instead of via the button. While doing this, we can see each time the menu is opened that the heap memory in use increases, but doesn't subsequently decrease as expected. This also happens even if the action is not selected from the menu, the act of simply showing the menu and closing it leaks heap memory.

      However, in our application we observe the same creep in memory usage without having to show a menu. It happens whenever a softkey is changed on the main menu bar. This presents itself in the sample application, as the softkeys are changed each time the menu is opened or closed.

      I've attached the sample application to help demonstrate this.

      Thanks.

      Attachments

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

        Activity

          People

            e0101981 Janne Anttila
            markrymer Mark Rymer
            Votes:
            8 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes