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. Potential WebView memory leak on a script-rich application (graph included)
Forum Updated to NodeBB v4.3 + New Features

Potential WebView memory leak on a script-rich application (graph included)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 4 Posters 790 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.
  • W Offline
    W Offline
    wojtekzin
    wrote on last edited by
    #1

    Hi,

    we're using QT 5.10 with webview deployed on a linux box with AMD 9260 GPU directly through QT (no Xorg).

    What you can see below is a graph of WebView memory consumption on a system with a continuous usage of the application that's running inside it. The app is rich - it's a game that continously runs inside webview through qtwebenengine (which does not show any signs of a memory leak). It does a lot of JS executions, uses shaders and webgl through PIXI JS.

    0_1553529979982_879b5d6f-5360-4a34-bd76-b8ea114bbc31-image.png

    Below you can see the same webview application but the site that's loaded does not include any "active" JS (meaning - it does not execute any meaningful scripts .e.g shows an image)

    0_1553530251460_d169cf51-0bf9-408a-984a-f1b8054b478e-image.png

    Where should we look for the memleak? What would be the best way to debug it?

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

      Have you tried some newer version of Qt? Perhaps it is fixed already.

      (Z(:^

      1 Reply Last reply
      1
      • W Offline
        W Offline
        wojtekzin
        wrote on last edited by
        #3

        Unfortunately upgrading is not an option right now as we're using buildroot-based embedded linux and it comes with a fixed version of QT and other dependencies.

        What's worth mentionin is that we were getting the same memory leak on QT version 5.6.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wojtekzin
          wrote on last edited by
          #4

          Not sure how to mark is as "solved" but upgrading to 5.11 solved the problem but incured additional problems. However 5.11 does not produce a memory leak anymore.

          aha_1980A JonBJ 2 Replies Last reply
          0
          • W wojtekzin

            Not sure how to mark is as "solved" but upgrading to 5.11 solved the problem but incured additional problems. However 5.11 does not produce a memory leak anymore.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @wojtekzin said in Potential WebView memory leak on a script-rich application (graph included):

            Not sure how to mark is as "solved"

            The button "Topic Tools" contains that option. Thanks for reporting back.

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • W wojtekzin

              Not sure how to mark is as "solved" but upgrading to 5.11 solved the problem but incured additional problems. However 5.11 does not produce a memory leak anymore.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @wojtekzin

              upgrading to 5.11 solved the problem but incured additional problems

              Don't mean to burst your bubble, but I believe I have seen posts stating that 5.12 is a better release to go for than 5.11, was 5.12 not suitable for you?

              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