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

QWebEngineView crashes application when clicking on a list item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 6.5.2
    • 6.5.1
    • WebEngine
    • None
    • The bug occurred under Qt 6.5.1 on macOS Ventura 13.4.1 (22F82) on an Intel MacBook Pro (13-inch, 2018, Four Thunderbolt 3 Ports). I have not tested any other machines or operating systems. On the same machine, the bug does not occur with Qt 6.4.3
    • macOS

    Description

      The following code invariably causes the entire application to crash when clicking on "Crash", but not when clicking on "No crash":

      #include <QApplication>
      #include <QtWebEngineWidgets/QWebEngineView>
      
      int main(int argc, char *argv[]) {
          QApplication a(argc, argv);
          QWebEngineView w;
          w.page()->setHtml("No crash<ul><li>Crash</li></ul>");
          w.show();
          return a.exec();
      } 

       

      1. The crash also occurs for both local and remote URLs set using setUrl.
      2. The crash also occurs for the simplebrowser example. To reproduce, load https://en.wikipedia.org/wiki/Wikipedia:Contents and click on the "Vital Articles" link (see attached screen recording).
      3. For real-world Internet web pages, not all list items always cause a crash. However, the examples above (the inline HTML example and the "Vital links" on Wikipedia Contents) always cause a crash.
      4. The bug occurs both in Debug and Release mode. Nothing is output by the MRE (the code snippet above).

      The attachments include:

      • A recording of simplebrowser crashing;
      • a dump of simplebrowser after crashing;
      • A minimum reproducible example (not simplebrowser), essentially the code snippet above with an accompanying .pro file.

      Attachments

        1. dump-simplebrowser.txt
          137 kB
          alexandervatov
        2. example.zip
          4 kB
          alexandervatov
        3. Screen Recording 2023-07-11 at 14.30.30.mov
          5.70 MB
          alexandervatov

        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
              alexandervatov alexandervatov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes