Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
Some future release
-
None
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.