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

Application hangs when too many QWebEngineView objects are created.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.13.2
    • WebEngine
    • None
    • Windows 10
    • Windows

    Description

      Qt Application hangs when too many QWebEngineView widgets are shown.

      In my application I have more than 100 different dialogs. I use QWebEngineView to display help for each dialog beside it. When I create and show more than ~70 QWebEngineView widgets qt application hangs and becomes inresponsive forever.

      I created a simple test Qt Widgets Application, where the problem is reproduced on Widows 10. I attached the whole buildable project "CrashWebkit" in .zip.

      In the application over 100 Tabs with QWebEngineView are created. Each QWebEngineView shows the same simple content of the text file from the resource.

      Run the application and tab through the tabWidget tabs (with mouse or Ctrl+Tab) until you reach more than 70th - 71th tab. Eventually, the application will hang and become inresponsive.

      Note, that even when I comment out the setUrl(url) line, the QWebEngineView doesn't show any content, but the application will still hang (this time more tabs need to be tabbed through to achieve it). 

      I tried to clean QtWebEngine cache on my Windows in %LOCALAPPDATA%. Eventually, the application worked fine, when I tabbed through all tabs. But when I increased tab number from 100 to 125, the bug still reproduced on "Tab 103".

      Attachments

        1. 1.jpg
          1.jpg
          48 kB
        2. 2.jpg
          2.jpg
          490 kB
        3. CrashWebkit.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            vitaly_gorokhov Vitaly Gorokhov
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes