Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] My app needs 20MB RAM to run
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] My app needs 20MB RAM to run

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    michprev
    wrote on last edited by
    #1

    Hi all,
    I wrote application with Qt Quick (I did not use C++) and my app takes after start about 20MB RAM!
    I did not use any Component.onCompleted events so I call JavaScript functions after buttons click.
    So 20MB needs only QML file to run or after start loads JavaScript files too?
    My QML file has about 3766 lines.
    After click on a button my app shuts down.

    I don not use Qt Quick components and Qt mobility library.
    I tried to set symbian:TARGET.EPOCHEAPSIZE = 0x020000 0x8000000.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      favoritas37
      wrote on last edited by
      #2

      Have you tried to run your project in Debug mode to see if it provides you with an error code? Your target platform is Symbian?

      In my opinion the Ram amount used is irrelevant with your problem. It most likely is a problem in the handler function of the button clicking. Finally, if you target Symbian platform you could take a look if you have set the correct Capabilities to your project.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        I'm not familiar with Symbian, but could it be that your process manager is counting shared memory too? In this case, you would get about 16MB of memory from QtCore + QtGui + QtDeclarative + QtScript.

        (Z(:^

        1 Reply Last reply
        0
        • M Offline
          M Offline
          michprev
          wrote on last edited by
          #4

          Yes, my target platform is symbian.
          I ran my project in Debug mode and it worked. I did not edit anything. Then I build my project in Release mode and it worked too. So maybe was bug in Qt SDK in my computer.
          Thank you for help.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #5

            I remember, there was a talk on dev days about such a thing.
            A QML file of about 100 or 200 lines that occupied 200 MB of RAM and it took about 1 minute to load.
            The problems there were mainly property bindings of containers and children. Each property binding is a represented by connections and they must be recalculated on each change throughout the whole chain.

            I think it was "this video":http://developer.qt.nokia.com/videos/watch/creating-performant-qt-quick-apps

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved