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

QWebEnginePage::setHtml crash when render process crashed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.7.1, 5.8.0
    • Fix Version/s: 5.10.0 Beta 1
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
      Linux
    • Commits:
      cf06b687845b6e37ef3cd80fd644bb7d769f0033

      Description

      When render process crashes, calling QWebEnginePage::setHtml() will also crash the application.
      QWebEnginePage::load() correctly restarts render process and doesn't crash.

      test.cpp
      QWebEnginePage *page = new QWebEnginePage;
      connect(page, &QWebEnginePage::renderProcessTerminated, [=]() {
          QTimer::singleShot(0, [=]() {
              page->setHtml(QStringLiteral("<html></html>"));
              // Crash
          });
      });
      

        Attachments

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

          Activity

            People

            • Assignee:
              pvarga Peter Varga
              Reporter:
              nowrep David Rosca
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes