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

"Leaks" utility in the Instruments app report memory leak.

    XMLWordPrintable

Details

    • macOS

    Description

      On macOS, when a tooltip is activated for a control that has been assigned a tooltip, the "Leaks" utility in the Instruments app report a  memory leak.

      To reproduce this:
      1) Build and launch the gallery application in the qtbase/examples/widgets/gallery folder.
      2) Launch the Instruments app and select the "Leaks" utility.
      3) In the target selector, choose "gallery"
      4) Press the "record" toolbar button (the red dot in a circle) to begin profiling leaks, then select Leaks" to see leaks in the timeline.
      5) Move focus to the gallery app and wait 10 seconds to see an "inactive" status appear in the Leaks timeline.
      6) Move the mouse over the tab widget control to activate a tooltip, then move the mouse away.
      Notice a leak event appears in the timeline.
      Each time you activate a tooltip, within 10 seconds, another leak event will appear in the timeline which will include one or more leaks.

      The leak indicates a QNSViewMenuHelper is being leaked, and the callstack associated with the leak indicates it is happening during [QNSView initWithCocoaWindow] which is called during QToolTip::showText() .

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            irfan.omair@digia.com Irfan Omair
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes