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

Drag&Drop Memory leak

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.5.0, 6.6.0
    • 6.4.1
    • GUI: Drag and Drop
    • None
    • Windows 10 21H2
      Qt 6.4.1
      Emscripten 3.1.14
      Chrome 108.0.5359.99 launched with the argument --enable-precise-memory-info
    • WebAssembly
    • cc60d7069 (dev), 524a7c593 (6.5)

      I found a memory leak in the Drad&Drop system with Qt,

      In my sample (see attachement), i've made a bidirectional wrapper to allow the drag&drop of directories from the JS side.

       

      For my test I've dropped some large files (~300Mo). 

      Without a.exec(), it's possible to drop many times the file, the JS Garbage Collector do it's job,

      With a.exec() uncommented, the used memory keep growing after each drop.  

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

            mikolaj.boc Mikołaj Boc (Inactive)
            bastien-thonnat-personal Bastien Thonnat
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes