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

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

XMLWordPrintable

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

      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.

        1. index.html
          0.6 kB
        2. main.cpp
          0.7 kB
        3. webengineprocess.pro
          0.1 kB
        4. index-setTimeout.html
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes