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

Qt WebEngineProcess not terminated under windows on crash when JS is busy?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.12.3
    • WebEngine
    • None
    • Windows 7+, MSVC 2017
    • Windows

    Description

      When pressing the "Crash" Button in the attached (minimal) example "QtWebEngineProcess.exe" will stay open. If the program is closed regularly however, it closes correctly. The index.html keeps javascript busy by reconnecting a websocket on connection loss, which permanently occurs here because the host application does not start a websocketserver. The problem probably has nothing to do with WebSockets. Just illustrating the admittedly questionable code pattern. But IMHO whatever the state of the javascript execution can be, QtWebEngineProcess.exe should shut down orderly.

      PS: index.html has to be put in the application runtime folder.

      Attachments

        1. webengineprocess.pro
          0.1 kB
        2. main.cpp
          0.7 kB
        3. index-setTimeout.html
          0.6 kB
        4. index.html
          0.6 kB

        Issue Links

          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
              johannesmunk Johannes Munk
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes