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

qmlls memory leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • 6.7
    • 6.7.0 RC
    • QML: Tooling
    • None
    • Linux/X11
    • 8a8bfb410 (dev), bdb2cc69e (6.8), 1852267f6 (6.7), 29e1552b5 (tqtc/lts-6.5)

    Description

      qmlls rapidly consumes memory. Over 40GB within 5 minutes for large project I work on.

      Tried to run under valgrind, but there is an invalid read that is throwing SIGSEGV so I can't check for leaks beyond this read access.

      ==12546== Invalid read of size 8
      ==12546== at 0x4215A3E: ??? (in /dev/zero)
      ==12546== Address 0x1d598c1a is 10 bytes after a block of size 48 alloc'd
      ==12546== at 0x4C38185: malloc (vg_replace_malloc.c:431)
      ==12546== by 0x5A81853: QArrayData::allocate2(QArrayData**, long long, QArrayData::AllocationOption) (in /home/jhuels/Qt/6.7.0/gcc_64/lib/libQt6Core.so.6.7.0)
      ==12546== by 0x5A4E0C1: QString::QString(QChar const*, long long) (in /home/jhuels/Qt/6.7.0/gcc_64/lib/libQt6Core.so.6.7.0)
      ==12546== by 0x5B3D8FD: QRegularExpressionMatch::captured(QStringView) const (in /home/jhuels/Qt/6.7.0/gcc_64/lib/libQt6Core.so.6.7.0)
      ==12546== by 0x2121F9: ??? (in /home/jhuels/Qt/6.7.0/gcc_64/bin/qmlls)
      ==12546== by 0x348D1C: ??? (in /home/jhuels/Qt/6.7.0/gcc_64/bin/qmlls)
      ==12546== by 0x362D7B: ??? (in /home/jhuels/Qt/6.7.0/gcc_64/bin/qmlls)
      ==12546== by 0x5304D6F: QQmlJS::AST::UiImport::accept0(QQmlJS::AST::BaseVisitor*) (in /home/jhuels/Qt/6.7.0/gcc_64/lib/libQt6Qml.so.6.7.0)
      ==12546== by 0x5302C31: QQmlJS::AST::UiHeaderItemList::accept0(QQmlJS::AST::BaseVisitor*) (in /home/jhuels/Qt/6.7.0/gcc_64/lib/libQt6Qml.so.6.7.0)
      ==12546== by 0x53070F4: QQmlJS::AST::UiProgram::accept0(QQmlJS::AST::BaseVisitor*) (in /home/jhuels/Qt/6.7.0/gcc_64/lib/libQt6Qml.so.6.7.0)
      ==12546== by 0x22C2BC: ??? (in /home/jhuels/Qt/6.7.0/gcc_64/bin/qmlls)
      ==12546== by 0x345621: ??? (in /home/jhuels/Qt/6.7.0/gcc_64/bin/qmlls)

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-123491
          # Subject Branch Project Status CR V

          Activity

            People

              qtqmlteam Qt Qml Team User
              jhuels20 Joshua Huels
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes