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

Application exe runs out of memory when resizing/maximizing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.6.0
    • WebEngine
    • None
    • Windows 10 professional 64 bit

    Description

      I'm running the snippet of code below. I'm on a 4k monitor with dpi set to 200%. Using the debug libs, as I resize the window back and forth and then hit maximize, I notice my free memory dropping by hundreds of MB at a time. If I keep doing this non-stop I eventually will run out of free memory on the main process. Sometimes the qtwebengineprocess will crash and I will get all the free memory back. Now if I do a resize then let the application sit, some but not all of the free memory comes back.

      This also happens on a 1920x1080 screen with no scaling, but just at a much slower rate.

      This also happens with the release libs as well, again at a slower rate.

      #include <QApplication>
      #include <QWebEngineView>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
      
          QWebEngineView view;
          view.setUrl(QUrl(QStringLiteral("http://www.qt.io")));
          view.resize(1024, 750);
          view.show();
      
          return app.exec();
      }
      

      Attachments

        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
              bchan Bryan Chan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes