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

Memory leak: WebEngine Processes stuck after closing app

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • 5.10.1
    • WebEngine
    • None
    • Ubuntu 18.04 and Fedora 28
    • Linux/X11

      On linux WebEngineView seems to start superfluous WebEngine processes (QtWebEngineProc) that do not get stopped properly when closing the application.

      This is however only noticable when starting multiple instants of the application using:

      QProcess::startDetached(QCoreApplication::applicationFilePath());
      

      And then closing several, but not all, of the started windows.

       

      If I do this on Mac OsX each of the started applications has only one QtWebEngineProc child process (seen in top) and when I close each application it dissappears.

      In Linux however the exact same code now starts 3 QtWebEngineProc child processes (again seen in top) and when I close each instant it only closes a single QtWebEngineProc and leaves the other 2 dangling and also, it seems, keeping the application process up. If you close all of the windows all processes are killed though.

      To show this I have created a small example project with a simple mainwindow that has a single WebEngineView and a button that spawns a new detached process with the same window. If you open a few of them on linux and close a subset I would expect the described behaviour to occur. I have seen this on both Ubuntu and Fedora.

       

      Hopefully somebody would be so kind as to take a look at this.

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

            qt_webengine_team Qt WebEngine Team
            jorisgoosen Joris Goosen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes