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

Qt's qmake tool could assign higher maximum heap limit for Qt applications with "QT += declarative" enabled

    XMLWordPrintable

Details

    Description

      Qt uses more heap than traditional Symbian applications. Symbian default maximum heap size is set to 1MB, which is not enough for non-trivial Qt applications. To compensate this, when qmake generates the Symbian mmp project file it increases the maximum heap of the application process to 0x800000 (8.3MB). Maximum heap does not automatically cause the application to consume more heap, it is just a hard limit the operating system uses to protect itself against badly behaving applications.

      symbian {
          TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
          ... 
      }
      

      Due to JavaScript engine and graphics-heaviness, QML applications on average require even more heap than traditional mobile Qt applications. qmake tool could compensate the increased memory requirements of qml by increasing the maximum heap value assigned to projects depending on the declarative module ("QT += declarative"). A maximum heap value of 0x800000 (8.3MB) to 0x2000000 (33MB) is already used in existing standalone QML demos (under /demos/embedded/qml*) and project templates created by the Qt QML Standalone application wizard in Qt Creator. See bug http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1997 for more info.

      Attachments

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

        Activity

          People

            jpetrell Joona Petrell
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes