Memory leak - macOSX - leaks command line tool

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
cocoabsb
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Jan 29, 2020 12:13 pm

Memory leak - macOSX - leaks command line tool

Post by cocoabsb »

Hello,
I am developing an application for macOSX with wxWidgets and I would like to understand an issue, as follows:

If I run may application and while it is running I run the macOSX's leaks command line tool, it reports always a very small memory leak and it is always constant as long as I do not run any modules that call neither wxFileDialog(and selects a file) nor wxPrinter(and save as PDF).
If I run a module that calls wxFileDialog(and I select a file) or wxPrinter(and I choose not to print but to save as PDF), then if I run the leaks tools right after one of these operations takes place, "leaks command line tool" reports an increase in memory leaks which increases every time the Application calls wxFileDialog(and selects a file) or wxPrinter(and I choose to save as PDF), otherwise it does not report any increase in leaked bytes).

When I run ps, I can also notice that every time I call wxFileDialog(and select a file) or wxPrinter(and I choose to save as PDF), the amount of memory ps reports for my Application increases, so in fact there must really be a memory leak.

Does anybody know why this happens and how to fix it?

I also noticed that if I run the leaks command line utility and inform as its parameter for instance the "Finder.app" PID, it reports an enormous amount of leaked memory bytes! So, it may be something related to calls to internal system library functions on macOSX.

Thanks for any help on this!
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Memory leak - macOSX - leaks command line tool

Post by doublemax »

if I run the leaks tools right after one of these operations takes place, "leaks command line tool" reports an increase in memory leaks which increases every time the Application calls wxFileDialog(and selects a file) or wxPrinter(and I choose to save as PDF)
Is it possible that you create these dialogs on the heap and don't free them? Can you show code how and where you use these dialogs?
Use the source, Luke!
cocoabsb
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Jan 29, 2020 12:13 pm

Re: Memory leak - macOSX - leaks command line tool

Post by cocoabsb »

doublemax wrote: Thu May 13, 2021 6:32 am
if I run the leaks tools right after one of these operations takes place, "leaks command line tool" reports an increase in memory leaks which increases every time the Application calls wxFileDialog(and selects a file) or wxPrinter(and I choose to save as PDF)
Is it possible that you create these dialogs on the heap and don't free them? Can you show code how and where you use these dialogs?
No. It is not possible!
My Code:

Code: Select all

    
void <class name>::<method name()>
{
    wxFileDialog *openFileDialog = new wxFileDialog (this, _("Select Import File"), 
        "", "", "", wxFD_OPEN|wxFD_FILE_MUST_EXIST, ptPos);

    // Opens the file dialog itself
    if ( openFileDialog->ShowModal() == wxID_CANCEL ) {
        openFileDialog->Destroy();
        return;     
    }

    m_strFilePath = openFileDialog->GetPath();

    openFileDialog->Destroy();
}    
Every time a I run this code and select a file (click on the Dialog's Open Button), the leaks command tool displays an increased number of memory leaks in my Application and also the ps shows an increased memory usage for my Application.

Here is part of the output (since the whole output is too big and not allowed to be included here) of the leaks command on Finder.app, which is a standard Application developed by Apple and is part of macOSX:

Code: Select all

marcoss-iMac:bin marcos$ leaks 445
Process:         Finder [445]
Path:            /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
Load Address:    0x108349000
Identifier:      com.apple.finder
Version:         10.14.7 (1143.7.1)
Build Info:      Finder_FE-1143007001000000~1
Code Type:       X86-64
Parent Process:  ??? [1]

Date/Time:       2021-05-13 11:27:00.823 -0300
Launch Time:     2021-05-03 13:00:06.637 -0300
OS Version:      Mac OS X 10.14.6 (18G9028)
Report Version:  7
Analysis Tool:   /Applications/Xcode.app/Contents/Developer/usr/bin/leaks
Analysis Tool Version:  Xcode 11.3.1 (11C504)

Physical footprint:         434.0M
Physical footprint (peak):  596.4M
----

leaks Report Version: 4.0
Process 445: 507612 nodes malloced for 68175 KB
Process 445: 4335 leaks for 239792 total leaked bytes.

    4335 (234K) << TOTAL >>

      74 (5.95K) ROOT LEAK: <NSArray 0x600000300960> [16]
         73 (5.94K) __strong _object --> <NSExtension 0x600003400900> [192]
            49 (3.95K) __plugIn --> <PKHostPlugIn 0x7fe85fc51a80> [352]
               19 (1.44K) __strong _sourceForm --> <NSDictionary 0x600000143ca0> [32]
                  17 (1.39K) <NSDictionary (Storage) 0x7fe82fc1fe70> [368]
                     11 (688 bytes) <NSDictionary 0x600003838380> [224]  item count: 8
                        2 (112 bytes) <NSDictionary 0x6000014363c0> [64]  item count: 3
                           1 (48 bytes) <CFString 0x600000f34c00> [48]  length: 20  "com.apple.FinderSync"
                        2 (64 bytes) <NSArray 0x600000330210> [16]
                           1 (48 bytes) __strong _object --> <CFString 0x600000f34ba0> [48]  length: 29  "FIFinderSyncService_Subsystem"
                        1 (64 bytes) _list --> <CFString 0x600001436480> [64]  length: 38  "_NSExtensionHostRequiresDedicatedQueue"
                        1 (48 bytes) <CFString 0x600000f34990> [48]  length: 20  "com.apple.FinderSync"
                        1 (48 bytes) <CFString 0x600000f34a20> [48]  length: 25  "FIFinderSyncExtensionHost"
                        1 (48 bytes) <CFString 0x600000f34ab0> [48]  length: 21  "FIFinderSyncExtension"
                        1 (48 bytes) <CFString 0x600000f34cf0> [48]  length: 20  "com.apple.FinderSync"
                        1 (32 bytes) <CFString 0x600000134440> [32]  length: 10  "FinderSync"
                     1 (112 bytes) <CFString 0x600002a3caf0> [112]  length: 79  "/Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex"
                     1 (80 bytes) <CFString 0x600002234d70> [80]  length: 51  "/Applications/Sync.app/Contents/Resources/Setup.app"
                     1 (64 bytes) <CFString 0x600001436300> [64]  length: 32  "localizedFileProviderActionNames"
                     1 (64 bytes) <CFString 0x600001436440> [64]  length: 36  "17D6BD3D-D242-4C08-9588-1D86763FCBA7"
                     1 (48 bytes) <CFString 0x600000f34a80> [48]  length: 17  "service-extension"
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x60000032aeb0> [16]
               9 (576 bytes) __strong _plugInDictionary --> <NSDictionary 0x6000038382a0> [224]  item count: 8
                  2 (64 bytes) <NSArray 0x6000003301e0> [16]
                     1 (48 bytes) __strong _object --> <CFString 0x600000f34900> [48]  length: 29  "FIFinderSyncService_Subsystem"
                  1 (64 bytes) _list --> <CFString 0x600001436380> [64]  length: 38  "_NSExtensionHostRequiresDedicatedQueue"
                  1 (48 bytes) <CFString 0x600000f34840> [48]  length: 20  "com.apple.FinderSync"
                  1 (48 bytes) <CFString 0x600000f349c0> [48]  length: 21  "FIFinderSyncExtension"
                  1 (48 bytes) <CFString 0x600000f349f0> [48]  length: 20  "com.apple.FinderSync"
                  1 (48 bytes) <CFString 0x600000f34c60> [48]  length: 25  "FIFinderSyncExtensionHost"
                  1 (32 bytes) <CFString 0x6000001349c0> [32]  length: 10  "FinderSync"
               2 (288 bytes) __strong _discoveryExtensions --> <NSDictionary 0x600000134420> [32]
                  1 (256 bytes) _obj --> <CFString 0x600003d2c200> [256]  length: 226  "f69a83e7f2faaf4647fdbbee23e8dd816a6d09bc;00;00000000;00000000;00000000;00000000000..."
               2 (208 bytes) __strong _url --> <NSURL 0x60000256fae0> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x600002a731e0> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __replyQueue --> <OS_dispatch_queue_serial 0x600002f0fa80> [128]  "PlugInKit reply:com.sync.agent.findersync"
                  1 (48 bytes) 0x600000fc5410 [48]  length: 41  "PlugInKit reply:com.sync.agent.findersync"
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002f13900> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000fe8510 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002f13880> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000fe8e40 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x60000256fb40> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x6000022194f0> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               1 (176 bytes) __strong _serviceExtension --> <CFString 0x6000036282c0> [176]  length: 148  "84868eb6c3e83fe1fecbbb3e9c4187816a364dd2;01;00000000;00000000;00000000;00000000000..."
               3 (144 bytes) __strong _annotations --> <NSDictionary 0x600001b0bc80> [64]  item count: 2
                  2 (80 bytes) <NSDictionary 0x600000143c00> [32]
                     1 (48 bytes) _key --> <CFString 0x600000f9a370> [48]  length: 17  "lastDateManagedOn"
               1 (48 bytes) __strong _originalIdentifier --> <CFString 0x600000f348a0> [48]  length: 25  "com.sync.agent.findersync"
               1 (32 bytes) __strong _entitlements --> <NSDictionary 0x600000134ae0> [32]
               1 (32 bytes) __strong _uuid --> <NSUUID 0x6000001a5380> [32]
               1 (16 bytes) __strong _beganUsingAt --> <NSDate 0x600000335390> [16]  2021-05-03 13:00:12 -0300
            15 (1.45K) _infoDictionary --> <NSDictionary 0x7fe82ff02380> [672]  item count: 27
               2 (160 bytes) <NSDictionary 0x600002f34980> [128]  item count: 5
                  1 (32 bytes) <NSDictionary 0x600000134940> [32]
               1 (112 bytes) <CFString 0x600002a3ca10> [112]  length: 79  "/Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex"
               1 (112 bytes) <CFString 0x600002a3cb60> [112]  length: 43  Unicode:  "Copyright © 2015 Sync. All rights reserved."
               1 (48 bytes) <CFString 0x600000f347b0> [48]  length: 28  "LSExecutableMinimumOSVersion"
               1 (48 bytes) <CFString 0x600000f348d0> [48]  length: 26  "CFBundleSupportedPlatforms"
               1 (48 bytes) <CFString 0x600000f34930> [48]  length: 25  "_LSArchitecturesAvailable"
               1 (48 bytes) <CFString 0x600000f34a50> [48]  length: 19  "Contents/MacOS/Sync"
               1 (48 bytes) <CFString 0x600000f34ae0> [48]  length: 23  "LSExecutablePlatformKey"
               1 (48 bytes) <CFString 0x600000f34b10> [48]  length: 22  "LSExecutableSDKVersion"
               1 (48 bytes) <CFString 0x600000f34bd0> [48]  length: 17  "_LSExecutablePath"
               1 (48 bytes) <CFString 0x600000f34c90> [48]  length: 25  "com.sync.agent.findersync"
               1 (32 bytes) <CFString 0x600000134a00> [32]  length: 10  "MachOUUIDs"
               1 (16 bytes) <NSArray 0x600000330140> [16]
            2 (80 bytes) __extensionContexts --> <NSMutableDictionary 0x600000195620> [32]  item count: 0
               1 (48 bytes) <NSMutableDictionary (Storage) 0x600000e29c50> [48]
            2 (80 bytes) __extensionServiceConnections --> <NSMutableDictionary 0x600000195740> [32]  item count: 0
               1 (48 bytes) <NSMutableDictionary (Storage) 0x600000e29ce0> [48]
            1 (64 bytes) _attributes --> <NSDictionary 0x600001436340> [64]  item count: 3
            1 (48 bytes) _extensionPointIdentifier --> <CFString 0x600000f34c30> [48]  length: 20  "com.apple.FinderSync"
            1 (48 bytes) _identifier --> <CFString 0x600000f34870> [48]  length: 25  "com.sync.agent.findersync"
            1 (32 bytes) _connectionUUID --> <NSUUID 0x6000001a53c0> [32]

      27 (3.06K) ROOT CYCLE: <FITNode 0x600002910690> [112]
         2 (688 bytes) _node + 48 --> ROOT CYCLE: 0x6000038272c0 [224]
            CYCLE BACK TO <FITNode 0x600002910690> [112]
            1 (464 bytes) 0x7fe82fd57e00 [464]
         21 (2.02K) _node + 40 --> <std::__1::__shared_ptr_emplace<TFSInfo, std::__1::allocator<TFSInfo> > 0x6000034afe40> [192]
            13 (1.16K) <NSURL 0x6000024aeca0> [96]  "file:///.file/id=8587162.31643/"
               12 (1.06K) <_FileCache 0x7fe83fd67730> [320]
                  4 (368 bytes) <CFDictionary 0x600001820200> [64]  item count: 11
                     2 (192 bytes) <CFDictionary (Value Storage) 0x600002ae7560> [112]
                        1 (80 bytes) <CFString 0x60000227c870> [80]  length: 62  "/Volumes/Safe_Folder_2/Documents/Castro_Milu/Comprovantes/2021"
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002ae67d0> [112]
                  4 (176 bytes) <CFDictionary 0x600001823b00> [64]  item count: 1
                     2 (80 bytes) <CFDictionary (Value Storage) 0x60000002d2c0> [32]
                        1 (48 bytes) <_LSDisplayNameConstructor 0x600000ca9ad0> [48]
                     1 (32 bytes) <CFDictionary (Key Storage) 0x60000002e220> [32]
                  1 (144 bytes) <CFData 0x6000033325b0> [144]  inline content length 72: 0xFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000006102..."
                  2 (80 bytes) <__NSFileSecurity 0x600000341cd0> [16]
                     1 (64 bytes) _filesec --> <__NSFileSecurity._filesec (struct _filesec) 0x600001820a00> [64]
            7 (688 bytes) <NSURL 0x6000024af540> [96]  "file:///.file/id=8587162.31643/"
               5 (528 bytes) <_FileCache 0x7fe83fd182e0> [320]
                  3 (128 bytes) <CFDictionary 0x600001b17e40> [64]  item count: 3
                     1 (32 bytes) <CFDictionary (Key Storage) 0x600000018de0> [32]
                     1 (32 bytes) <CFDictionary (Value Storage) 0x600000019fe0> [32]
                  1 (80 bytes) <CFString 0x60000227e9e0> [80]  length: 62  "/Volumes/Safe_Folder_2/Documents/Castro_Milu/Comprovantes/2021"
               1 (64 bytes) _clients --> <CFString 0x600001822d80> [64]  length: 31  "file:///.file/id=8587162.31643/"
         3 (272 bytes) _node + 72 --> 0x60000200ff70 [80]
            1 (128 bytes) 0x600002e75780 [128]
            1 (64 bytes) <std::__1::__shared_ptr_emplace<ExternalRegistration, std::__1::allocator<ExternalRegistration> > 0x600001ebbf00> [64]

      23 (2.50K) ROOT CYCLE: <FITNode 0x6000029541c0> [112]
         1 (224 bytes) _node + 48 --> ROOT CYCLE: 0x6000038b3e20 [224]
            CYCLE BACK TO <FITNode 0x6000029541c0> [112]
         18 (1.91K) _node + 40 --> <std::__1::__shared_ptr_emplace<TFSInfo, std::__1::allocator<TFSInfo> > 0x6000034f9c80> [192]
            11 (1.08K) <NSURL 0x60000258a460> [96]  "file:///.file/id=9056419.11823/"
               10 (1008 bytes) <_FileCache 0x7fe7f966c6e0> [320]
                  4 (368 bytes) <CFDictionary 0x600001ee42c0> [64]  item count: 11
                     2 (192 bytes) <CFDictionary (Value Storage) 0x60000297c0e0> [112]
                        1 (80 bytes) <CFString 0x60000227f7a0> [80]  length: 49  "/Volumes/Safe_Folder_2/Documents/Technical/MACOSX"
                     1 (112 bytes) <CFDictionary (Key Storage) 0x60000297df80> [112]
                  1 (144 bytes) <CFData 0x600003382c70> [144]  inline content length 72: 0xFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000006102..."
                  2 (96 bytes) <CFDictionary 0x600001fd9cc0> [64]  item count: 1
                     1 (32 bytes) <CFDictionary (Key Storage) 0x600000000b20> [32]
                  2 (80 bytes) <__NSFileSecurity 0x6000003032f0> [16]
                     1 (64 bytes) _filesec --> <__NSFileSecurity._filesec (struct _filesec) 0x600001d68a40> [64]
            6 (656 bytes) <NSURL 0x60000258b360> [96]  "file:///.file/id=9056419.11823/"
               4 (496 bytes) <_FileCache 0x7fe7f9627190> [320]
                  2 (96 bytes) <CFDictionary 0x600001fd88c0> [64]  item count: 3
                     1 (32 bytes) <CFDictionary (Value Storage) 0x6000000009a0> [32]
                  1 (80 bytes) <CFString 0x60000227f160> [80]  length: 49  "/Volumes/Safe_Folder_2/Documents/Technical/MACOSX"
               1 (64 bytes) _clients --> <CFString 0x600001fd84c0> [64]  length: 31  "file:///.file/id=9056419.11823/"
         3 (272 bytes) _node + 72 --> 0x6000022a5f90 [80]
            1 (128 bytes) 0x600002e7ea00 [128]
            1 (64 bytes) <std::__1::__shared_ptr_emplace<ExternalRegistration, std::__1::allocator<ExternalRegistration> > 0x600001dcd200> [64]

      20 (1.89K) ROOT LEAK: <NSArray 0x600000342920> [16]
         19 (1.88K) __strong _object --> <NSExtension 0x600003495200> [192]
            17 (1.66K) __plugIn --> <PKHostPlugIn 0x7fe83fd8d4e0> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x6000007673c0> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe7f90e13f0> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x600000345e80> [16]
               2 (208 bytes) __strong _url --> <NSURL 0x600002b4ad60> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x600002aba7d0> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002e27e80> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c97630 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002e24980> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c97180 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x600002b4a340> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x60000227f340> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               4 (160 bytes) __strong _annotations --> <NSDictionary 0x600001eb9600> [64]  item count: 2
                  3 (96 bytes) <NSDictionary 0x600000764120> [32]
                     1 (48 bytes) _key --> <CFString 0x600000cf4b70> [48]  length: 17  "lastDateManagedOn"
                     1 (16 bytes) _obj --> <NSDate 0x600000346500> [16]  2021-05-12 16:02:01 -0300
               1 (32 bytes) __strong _uuid --> <NSUUID 0x60000076d920> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x60000076e0c0> [32]

      20 (1.89K) ROOT LEAK: <NSArray 0x60000035f990> [16]
         19 (1.88K) __strong _object --> <NSExtension 0x6000034c4540> [192]
            17 (1.66K) __plugIn --> <PKHostPlugIn 0x7fe7f964fc70> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x600000768340> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe7f9259ea0> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x60000035f340> [16]
               2 (208 bytes) __strong _url --> <NSURL 0x6000024aba20> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x600002906a70> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002e77500> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cc2010 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002e77080> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cc1140 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x6000024aabe0> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x6000020225d0> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               4 (160 bytes) __strong _annotations --> <NSDictionary 0x600001ebcec0> [64]  item count: 2
                  3 (96 bytes) <NSDictionary 0x60000076aa00> [32]
                     1 (48 bytes) _key --> <CFString 0x600000cc0600> [48]  length: 17  "lastDateManagedOn"
                     1 (16 bytes) _obj --> <NSDate 0x60000035dea0> [16]  2021-05-12 16:00:10 -0300
               1 (32 bytes) __strong _uuid --> <NSUUID 0x60000076b2e0> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x60000076aae0> [32]

      20 (1.89K) ROOT LEAK: <NSArray 0x6000003b46d0> [16]
         19 (1.88K) __strong _object --> <NSExtension 0x6000034e24c0> [192]
            17 (1.66K) __plugIn --> <PKHostPlugIn 0x7fe7f973e9f0> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x600000768a20> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe7f926ede0> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x60000035d5c0> [16]
               2 (208 bytes) __strong _url --> <NSURL 0x6000024a3780> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x600002960d20> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002f84200> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c6c930 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002f84900> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c6d620 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x6000024a0780> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x6000021adae0> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               4 (160 bytes) __strong _annotations --> <NSDictionary 0x600001ebd0c0> [64]  item count: 2
                  3 (96 bytes) <NSDictionary 0x600000768f40> [32]
                     1 (48 bytes) _key --> <CFString 0x600000cf7120> [48]  length: 17  "lastDateManagedOn"
                     1 (16 bytes) _obj --> <NSDate 0x60000035f680> [16]  2021-05-12 16:00:10 -0300
               1 (32 bytes) __strong _uuid --> <NSUUID 0x600000776040> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x600000777a40> [32]

      20 (1.89K) ROOT LEAK: <NSArray 0x6000003b4e30> [16]
         19 (1.88K) __strong _object --> <NSExtension 0x6000034e3900> [192]
            17 (1.66K) __plugIn --> <PKHostPlugIn 0x7fe7f9775dd0> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x60000071b2c0> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe7f9066a80> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x600000350c70> [16]
               2 (208 bytes) __strong _url --> <NSURL 0x6000024a2040> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x6000029623e0> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002f84880> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cf5a10 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002f87f00> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cf7ab0 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x6000024a2820> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x6000021ac5f0> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               4 (160 bytes) __strong _annotations --> <NSDictionary 0x600001bfe700> [64]  item count: 2
                  3 (96 bytes) <NSDictionary 0x600000718660> [32]
                     1 (48 bytes) _key --> <CFString 0x600000ceadc0> [48]  length: 17  "lastDateManagedOn"
                     1 (16 bytes) _obj --> <NSDate 0x6000003539c0> [16]  2021-05-12 16:01:00 -0300
               1 (32 bytes) __strong _uuid --> <NSUUID 0x600000766ca0> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x600000766ac0> [32]

      19 (1.88K) ROOT LEAK: <NSArray 0x600000351d40> [16]
         18 (1.86K) __strong _object --> <NSExtension 0x600003493f00> [192]
            16 (1.64K) __plugIn --> <PKHostPlugIn 0x7fe7f9066910> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x60000071b240> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe7f93fb080> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x600000353ca0> [16]
               2 (208 bytes) __strong _url --> <NSURL 0x6000024ae880> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x600002975490> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002e18d80> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c6e520 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002e1b400> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c6cd50 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x6000024ad980> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x6000021b8f50> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               3 (144 bytes) __strong _annotations --> <NSDictionary 0x600001eb8040> [64]  item count: 2
                  2 (80 bytes) <NSDictionary 0x60000071bf40> [32]
                     1 (48 bytes) _key --> <CFString 0x600000c6fe70> [48]  length: 17  "lastDateManagedOn"
               1 (32 bytes) __strong _uuid --> <NSUUID 0x60000071bae0> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x60000071bee0> [32]

      19 (1.88K) ROOT LEAK: <NSArray 0x6000003601f0> [16]
         18 (1.86K) __strong _object --> <NSExtension 0x60000340bd80> [192]
            16 (1.64K) __plugIn --> <PKHostPlugIn 0x7fe82fc7df80> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x60000015a4e0> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe82fd743f0> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x600000333100> [16]
               2 (208 bytes) __strong _url --> <NSURL 0x600002502ee0> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x600002a749a0> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002fe6100> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000d35440 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002fe6080> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000d34300 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x600002502d60> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x600002132f30> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               3 (144 bytes) __strong _annotations --> <NSDictionary 0x600001b7b840> [64]  item count: 2
                  2 (80 bytes) <NSDictionary 0x60000015a4c0> [32]
                     1 (48 bytes) _key --> <CFString 0x600000d32f10> [48]  length: 17  "lastDateManagedOn"
               1 (32 bytes) __strong _uuid --> <NSUUID 0x6000001a3ca0> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x6000001a1e40> [32]

      19 (1.84K) ROOT LEAK: <NSArray 0x600000344690> [16]
         18 (1.83K) __strong _object --> <NSExtension 0x60000349d440> [192]
            16 (1.61K) __plugIn --> <PKHostPlugIn 0x7fe7efff7460> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x60000072c6e0> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe82fd90e20> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x600000347670> [16]
               2 (208 bytes) __strong _url --> <NSURL 0x6000024a9140> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x600002969a40> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002e16b00> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cc7840 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002e16f00> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cc53b0 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x6000024ab6c0> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x600002189d60> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               3 (112 bytes) __strong _annotations --> <NSDictionary 0x600001f22440> [64]  item count: 2
                  2 (48 bytes) <NSDictionary 0x60000072c7c0> [32]
                     1 (16 bytes) _obj --> <NSDate 0x600000344d60> [16]  2021-05-12 16:00:10 -0300
               1 (32 bytes) __strong _uuid --> <NSUUID 0x60000072cc00> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x60000072c4c0> [32]

      18 (1.69K) ROOT LEAK: <NSArray 0x600000345f20> [16]
         17 (1.67K) __strong _object --> <NSExtension 0x60000349d8c0> [192]
            15 (1.45K) __plugIn --> <PKHostPlugIn 0x7fe7effb91d0> [352]
               3 (416 bytes) __strong _sourceForm --> <NSDictionary 0x600000776b80> [32]
                  1 (368 bytes) <NSDictionary (Storage) 0x7fe7f92af4b0> [368]
                  1 (16 bytes) cow --> <NSDictionary.cow (struct __cow_state_t) 0x60000035cb10> [16]
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002e0c900> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cf5920 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002e0c080> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000cf4de0 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x600002497ea0> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x60000218b890> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               4 (160 bytes) __strong _annotations --> <NSDictionary 0x600001bfcfc0> [64]  item count: 2
                  3 (96 bytes) <NSDictionary 0x600000777e00> [32]
                     1 (48 bytes) _key --> <CFString 0x600000c0e340> [48]  length: 17  "lastDateManagedOn"
                     1 (16 bytes) _obj --> <NSDate 0x60000035d0b0> [16]  2021-05-12 16:02:01 -0300
               1 (32 bytes) __strong _uuid --> <NSUUID 0x600000766dc0> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x600000764200> [32]

      13 (1.33K) ROOT LEAK: <NSArray 0x60000035e770> [16]
         12 (1.31K) __strong _object --> <NSExtension 0x6000034c6400> [192]
            10 (1.09K) __plugIn --> <PKHostPlugIn 0x7fe85fcf2860> [352]
               2 (208 bytes) __strong _url --> <NSURL 0x60000244d740> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.appex/"
                  1 (112 bytes) _clients --> <CFString 0x6000029065a0> [112]  length: 87  "file:///Applications/Sync.app/Contents/Resources/Setup.app/Contents/PlugIns/Sync.ap..."
               2 (176 bytes) __strong __startQueue --> <OS_dispatch_queue_serial 0x600002e77880> [128]  "PKPlugIn start (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c6f180 [48]  length: 42  "PKPlugIn start (com.sync.agent.findersync)"
               2 (176 bytes) __strong __syncQueue --> <OS_dispatch_queue_serial 0x600002e76880> [128]  "PKPlugIn sync (com.sync.agent.findersync)"
                  1 (48 bytes) 0x600000c6df20 [48]  length: 41  "PKPlugIn sync (com.sync.agent.findersync)"
               2 (176 bytes) __strong _containingUrl --> <NSURL 0x60000244cba0> [96]  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
                  1 (80 bytes) _clients --> <CFString 0x600002021540> [80]  length: 59  "file:///Applications/Sync.app/Contents/Resources/Setup.app/"
               1 (32 bytes) __strong _uuid --> <NSUUID 0x6000007774c0> [32]
            1 (32 bytes) _connectionUUID --> <NSUUID 0x6000007745a0> [32]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x6000003477b0> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x60000072cce0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038439c0> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x6000003477b0> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024ab7e0> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000018c1c00> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002969ce0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002969260> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000018c3cc0> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002969c00> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x60000072f8c0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x60000349ee80> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x600000347a60> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x60000072dec0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x600003842760> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x600000347a60> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024a8660> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001f23580> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002969180> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x60000296adf0> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001f20340> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002969b90> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x60000072e9e0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x60000349c540> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x600000351510> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x60000071b6a0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x600003850d20> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x600000351510> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024adc80> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000014d3bc0> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002975500> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002974380> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000014d3980> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x6000029755e0> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x60000071b580> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x600003490a80> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x600000351cd0> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x60000071b7c0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a39c0> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x600000351cd0> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024afba0> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001eb8a80> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x6000029768b0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002977020> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001eb8500> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x6000029759d0> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000719bc0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x600003492100> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x600000353fd0> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000718a40> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a1420> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x600000353fd0> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024ac780> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001eb8b80> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002975880> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002975f80> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001ebaa00> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x6000029744d0> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x6000007195c0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x600003491c80> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035c1f0> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x60000076bfe0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a81c0> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035c1f0> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x60000244b0c0> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001ebe100> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002905490> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002907d40> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001ebcd40> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002904cb0> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x6000007699a0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c76c0> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035c390> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000769820> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038ab720> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035c390> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x600002449e00> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001ebe940> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x6000029048c0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x6000029055e0> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001ebdec0> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002907020> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x60000076ab80> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c79c0> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035cfd0> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000776240> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a90a0> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035cfd0> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x60000244c420> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000014d1700> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002907b80> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002906450> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000014d2440> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002905880> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000774080> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c6640> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035d010> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x6000007762c0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038ab9c0> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035d010> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024c6a00> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000014d3c40> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002904460> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x6000029057a0> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000014d1280> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002905030> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x6000007776c0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c5980> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035de70> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000775f80> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x600003850b60> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035de70> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x60000244f960> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000014d2400> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x6000029052d0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002904bd0> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000014d0440> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002906290> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000775460> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c4c00> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035df20> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000775620> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a8a80> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035df20> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024c7780> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000014d1500> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002907480> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002907bf0> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000014d0340> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002904af0> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000776da0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c7000> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035eb80> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x60000076bdc0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038aa760> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035eb80> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024a8840> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001ebeb00> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002907e90> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002906220> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001ebf4c0> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002907100> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x60000076b440> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c4900> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035f5a0> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000777aa0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a8ee0> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035f5a0> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x60000244ff00> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001bac280> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x6000029072c0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002904000> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001baf280> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002904c40> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000776900> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c5800> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x60000035f7a0> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x60000076ba20> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038aa920> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x60000035f7a0> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024aa9a0> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001ebff80> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002904e00> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002906fb0> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x600001ebde00> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002907560> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000768c60> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034c61c0> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x6000003b5790> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000767da0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a7100> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x6000003b5790> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024a1c80> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000014d13c0> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x6000029625a0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002960b60> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000014d0fc0> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002960f50> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000764cc0> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034e0840> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x6000003b6060> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x6000007752e0> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a5340> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x6000003b6060> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024a3360> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000019e8580> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002962fb0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002962a70> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000019e82c0> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002961f80> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000775a20> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034e1380> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingService 0x6000003b6430> [16]
         10 (1.02K) _reserved --> ROOT CYCLE: <NSSharingServiceReserved 0x600000767520> [32]
            9 (1008 bytes) service --> ROOT CYCLE: <SHKSharingService 0x6000038a5880> [224]
               __strong _customDelegate --> CYCLE BACK TO <NSSharingService 0x6000003b6430> [16]
               4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024a3f60> [96]
                  3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x6000014d3c00> [64]  item count: 4
                     1 (112 bytes) <CFDictionary (Key Storage) 0x600002963cd0> [112]
                     1 (112 bytes) <CFDictionary (Value Storage) 0x600002962300> [112]
               3 (208 bytes) __strong _image --> <NSImage 0x6000014d3b40> [64]
                  1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002960850> [112]
                  1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x600000766f60> [32]
               1 (192 bytes) __strong _extension --> <NSExtension 0x6000034e0780> [192]

      11 (1.03K) ROOT CYCLE: <NSSharingServiceReserved 0x60000011de40> [32]
         10 (1.00K) service --> ROOT CYCLE: <SHKSharingService 0x6000038a47e0> [224]
            1 (16 bytes) __strong _customDelegate --> ROOT CYCLE: <NSSharingService 0x6000003b4450> [16]
               _reserved --> CYCLE BACK TO <NSSharingServiceReserved 0x60000011de40> [32]
            4 (384 bytes) __strong _serviceDescription --> <NSSharingServiceDescription 0x6000024a0ba0> [96]
               3 (288 bytes) __strong _serviceDictionary --> <CFDictionary 0x600001bbb980> [64]  item count: 4
                  1 (112 bytes) <CFDictionary (Key Storage) 0x600002963790> [112]
                  1 (112 bytes) <CFDictionary (Value Storage) 0x600002961b90> [112]
            3 (208 bytes) __strong _image --> <NSImage 0x600001bbbb40> [64]
               1 (112 bytes) _imageAuxiliary --> <_NSImageAuxiliary 0x600002961500> [112]
               1 (32 bytes) _reps --> <NSImageISIconRepProvider 0x60000011eb80> [32]
            1 (192 bytes) __strong _extension --> <NSExtension 0x6000034e0a80> [192]

As you can see, I believe that either this tool (leaks) does not a good job (but I believe it does because de ps command also shows that the Application is eating up more memory every time a certain piece of code is run within itself) or the internal libraries on macOSX don´t bother deallocating memory on a regular basis!

Anyone has a different view on this?

Thanks!
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Memory leak - macOSX - leaks command line tool

Post by doublemax »

Please try to create the dialog on the stack (that's what you're supposed to do, although what you did should work, too), and check if it makes any difference.

If you still get a leak, please run and build the unmodified "dialogs" sample (or any sample that uses a wxFileDialog) and check if it leaks, too. If yes, please open a ticket at http://trac.wxwidgets.org
Use the source, Luke!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Memory leak - macOSX - leaks command line tool

Post by ONEEYEMAN »

Hi,
This very well be a OSX library issue or justy a false positive from the "Leaks" tool from Xcode.

To confirm:
If you can build the simple OSX/Cocoa application and run it against this tool it will confirm this..

You may also make a thread on the Apple forum about it and see what Apple developers can say.

But the fact that even the Finder leaks memory is already a good sign that the leaks are false positive. ;-)

Which OSX version are running? And which version of Xcode?

Thank you.
cocoabsb
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Jan 29, 2020 12:13 pm

Re: Memory leak - macOSX - leaks command line tool

Post by cocoabsb »

doublemax wrote: Thu May 13, 2021 2:50 pm Please try to create the dialog on the stack (that's what you're supposed to do, although what you did should work, too), and check if it makes any difference.

If you still get a leak, please run and build the unmodified "dialogs" sample (or any sample that uses a wxFileDialog) and check if it leaks, too. If yes, please open a ticket at http://trac.wxwidgets.org
I did and I still get the leaks!
Thank you!
cocoabsb
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Jan 29, 2020 12:13 pm

Re: Memory leak - macOSX - leaks command line tool

Post by cocoabsb »

ONEEYEMAN wrote: Thu May 13, 2021 4:05 pm Hi,
This very well be a OSX library issue or justy a false positive from the "Leaks" tool from Xcode.

To confirm:
If you can build the simple OSX/Cocoa application and run it against this tool it will confirm this..

You may also make a thread on the Apple forum about it and see what Apple developers can say.

But the fact that even the Finder leaks memory is already a good sign that the leaks are false positive. ;-)

Which OSX version are running? And which version of Xcode?

Thank you.
I am running OSX Mojave (10.14.6) and Xcode Version 11.3.1.

I have already compiled and run the dialogs sample and every time I use the File Operations dialogs the amount of leaked memory increases, so I believe it is an issue related to the macOSX system libraries.

I will make a thread on the Apple forum about it.

Thank you!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Memory leak - macOSX - leaks command line tool

Post by ONEEYEMAN »

Hi,
Are you able to test on any other OSX version?

Thank you.
cocoabsb
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Jan 29, 2020 12:13 pm

Re: Memory leak - macOSX - leaks command line tool

Post by cocoabsb »

ONEEYEMAN wrote: Thu May 13, 2021 5:25 pm Hi,
Are you able to test on any other OSX version?

Thank you.
No. Right now I only have Mojave installed. I will see with a friend that has Big Sur on his iMac if I can test it there.

I have already opened a thread on Apple Developer Forums. Let's see what they say, since the leaks tool reports this big leak when I pass the Finder.app PID as its parameter.

Thank you.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Memory leak - macOSX - leaks command line tool

Post by ONEEYEMAN »

Hi,
Can you post a link to this thread on Mac forum?

It will be helpful for other people who is interested...

Thank you.
cocoabsb
Earned a small fee
Earned a small fee
Posts: 23
Joined: Wed Jan 29, 2020 12:13 pm

Re: Memory leak - macOSX - leaks command line tool

Post by cocoabsb »

ONEEYEMAN wrote: Thu May 13, 2021 6:27 pm Hi,
Can you post a link to this thread on Mac forum?

It will be helpful for other people who is interested...

Thank you.
There you go:
https://developer.apple.com/forums/thread/680081

Thank you.
Post Reply