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

Spawned QtWebEngineProcess(es) aren't killed after WebEngineView destruction

    XMLWordPrintable

Details

    • macOS, Windows

    Description

      Spawned QtWebEngineProcess(es) aren't killed after WebEngineView destruction.

      It's a common use-case to use WebEngineView inside Loader and instantiate it only when necessary. This allows do not allocate a huge amount of resources for Chromium and free it when you don't need this anymore.

              Loader {
                  id: loader
                  active: false // controlled outside
                  sourceComponent: WebEngineView {
                      url: 'https://www.youtube.com/watch?v=_cc5jbB6Zmw'
                  }
              }
      

      Please see attached demo application.
      At least on Win10 after WebEngineView destored there are still a few of QtWebEngineProcess(es) in the system

      "C:\Qt\5.15.1\msvc2019\bin\QtWebEngineProcess.exe" --type=utility --enable-features=AllowContentInitiatedDataUrlNavigations,TracingServiceInProcess --disable-features=BackgroundFetch,ConsolidatedMovementXY,DnsOverHttpsUpgrade,MojoVideoCapture,PictureInPicture,SmsReceiver,UseSkiaRenderer,WebPayments,WebUSB --lang=ru --service-sandbox-type=network --use-gl=angle --application-name=demo --webengine-schemes=qrc:sLV --mojo-platform-channel-handle=2688 /prefetch:8
      
      "C:\Qt\5.15.1\msvc2019\bin\QtWebEngineProcess.exe" --type=utility --enable-features=AllowContentInitiatedDataUrlNavigations,TracingServiceInProcess --disable-features=BackgroundFetch,ConsolidatedMovementXY,DnsOverHttpsUpgrade,MojoVideoCapture,PictureInPicture,SmsReceiver,UseSkiaRenderer,WebPayments,WebUSB --lang=ru --service-sandbox-type=audio --use-gl=angle --application-name=demo --webengine-schemes=qrc:sLV --mojo-platform-channel-handle=4044 /prefetch:8
      

      Attachments

        1. demo.zip
          2 kB
        2. screenshot-1.png
          screenshot-1.png
          6 kB

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              studiosus Vladimir Belyavsky
              Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes