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

Qt3D NodeInstantiator memory leak and crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.9.0 Beta 2
    • 5.8.0 RC
    • Qt3D
    • None
    • Observed on OS X and Windows

      When running the attached program, a very substantial memory leak can be observed. The leak arises whenever the integer 'model' property of the NodeInstantiator is updated. The leak can also be observed when using a QAbstractItemModel that emits the modelReset signal.

      The leak is present even if the timer interval is set to much longer values (e.g. 500 ms)

      The leak can be reduced, but not eradicated, by moving the instantiation of components out of Sphere and passing them in as properties that are shared between all instances of Sphere.

      The leak is significant enough that it is a barrier to using Qt3D to implement the GUI of a CAD tool where the scene content is regularly updated.

      In Qt5.7.1 the attached example crashes almost immediately. In 5.8.0_rc, a fix was put in place that reduces crashes, but a crash is occasionally observed - stack trace attached.

      seanharmer May be interested in this.

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

            seanharmer Sean Harmer
            simondeeley Simon Deeley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes