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

The application can freeze when using QWebEngine and QWebChannel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.5.0
    • WebEngine
    • None
    • Windows 8.1 x64. qt-runtime: msvc2013-x86

    Description

      I am developing a program that uses a Web browser as an user interface and Qt for windows and network transport.

      The application logic is that sometimes you need to press html-widgets. In the handler, I give control of the C ++ - application (written in qt) through QWebChannel.

      In C ++ program I create windows (dialogs or tabs) that use Web browser component.

      In a real program, I often see that the program stops responding (this is not always). The main thread is not working - nothing is updated in the windows, and they can not be closed. But other threads working.

      I can not exactly reproduce the error and make a good example. Only get something like this.

      Steps to reproduce the error:

      1. Start the program.
      2. Very fast to click the mouse on the box "Press me" (div-element) inside the browser on the main page. At each press creates a new tab in the tab control with browser window.

      My results are:
      Release-version QWebEngine - about 20 clicks before the program will hang.

      Debug-version QWebEngine in debug mode - about 5 clicks before the program will hang.

      Debug-version QWebEngine without debugging - it is impossible to test (there are errors - QTBUG-46973).

      Debug / Release QWebView - could not reproduce the error.

      If you could not reproduce the error on the first try - try to repeat a couple of times. Perhaps you are not fast click the mouse.

      The sources of the program are included.

      If you just create windows with WebEngine, the error does not occur.

      Apparently this only happens in conjunction with QWebChannel.

      PS: My computer has enough memory. This error is not an error to lack of memory!

      Attachments

        Issue Links

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

          Activity

            People

              albisser Zeno Albisser
              Yaroslav Yaroslav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes