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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
      Windows 7+, MSVC 2017
    • Platform/s:
      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. index.html
          0.6 kB
          Johannes Munk
        2. index-setTimeout.html
          0.6 kB
          Johannes Munk
        3. main.cpp
          0.7 kB
          Johannes Munk
        4. webengineprocess.pro
          0.1 kB
          Johannes Munk

          Issue Links

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

            Activity

              People

              Assignee:
              qt_webengine_team Qt WebEngine Team
              Reporter:
              johannesmunk Johannes Munk
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes