Memory leak after plugin migration R16 -> R20



  • The source of memory leaks is always hard to pinpoint.
    In this case I have a plugin which has no memory leaks in R16 and above. Once migrated to the R20 SDK it reveals the following:

    Memory Leaks Detected:
    p:\c4d_perforce_work\release\20.0\modules\xtensions\source\manager\datadescriptioneditor\dde_dialog.cpp (5333): Memory leak of 80 bytes () at 0000002476158C40
    1 blocks not freed
    

    Went a little further, and started the Visual Studio debugging AFTER having removed the xdl64 file in the plugin folder ...
    Meaning I am debugging Cinema 4D without my plugin loaded, nor even being present.
    Close Cinema 4D and still get the exact same memory leak.

    Even went as far as removing ALL plugins from the system -> still same memory leak.

    I think this one is for you guys to fix ;-)


  • Global Moderator

    Hi Daniel, thanks for sending this.

    Unfortunately, I'm not able to reproduce it.
    What's your OS? Windows, Mac? What's your exact version of Cinema 4D? You can find it in the bottom of about windows in the Help menu.

    Did you load a specific scene? Did you do something special in Cinema 4D (like creating an object, material?)
    Do you have any custom nodal materiel preset?

    Thanks in advance,
    Cheers.



  • Windows 8.1 running Cinema 4D Studio R20.030 (RB257898).
    Just started C4D from Visual Studio (2015).
    Default scene, with Live Selection tool active.
    No objects, no materials, no plugins.
    Didn't do anything in Cinema 4D, then just closed the application.

    R20 was installed without content, only program and help documentation.
    The only thing I did after clean install, was set the "Highlight new features" in preferences to "Off". Select the Live Selection tool and then "Window > Customization > Set as Default scene".
    I also have created a few custom palettes and saved the custom Layout as startup Layout.

    Apart from this, the install is clean ... and never used, apart from starting from Visual Studio to test out some CommandData/GeDialog plugins.


  • Global Moderator

    Hi C4DS, unfortunately, I'm still not able to reproduce it, is it possible for you to share the Layout and Palette File?

    Cheers,
    Maxime.



  • Maxime,

    I deleted all layouts, deleted all preferences, removed the new.c4d file.
    All, except the installed updates. My Cinema 4D install should now be equal to a fully clean install.

    Still have that same oneliner memory leak just starting Cinema 4D from Visual Studio 2015 (Express), and closing application without performing any action.



  • Not that this is any help, but I'm currently also looking into some other memory leak issues and I get the same leak when running a clean Cinema R20.026.


  • Global Moderator

    First of all, happy new year to both of you.

    Regarding the issue, thanks a lot for confirming it, despite I'm still not able to reproduce it. I will ask you to wait until my other colleagues come back from their well deserved holiday to do more tests on this topic.

    Cheers,
    Maxime.


  • Global Moderator

    Hi Daniel, thanks for following up.

    I've tried to match as much as possible your devenv but I confirm what reported by @m_adam and I can't replicate the behavior.

    My setup is:

    • Windows 8.1 version 6.3 (Build 9600)

    • Microsoft Visual Studio Express 2015 for Windows Desktop
      Version 14.0.25431.01 Update 3

    • Microsoft .NET Framework
      Version 4.7.03062

    • Common Azure Tools 1.8
      Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

    • NuGet Package Manager 3.4.4
      NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    • SQL Server Data Tools 14.0.60519.0
      Microsoft SQL Server Data Tools

    I apologize for not being more helpful but without a more detailed scenario letting us to replicate the issue we can't be of any further help here.

    Best, Riccardo



  • Hi Riccardo,

    I have all the same version as you mentioned except for .NET
    I am currently on 4.7.02558


  • Global Moderator

    Hi Daniel,

    I'm actually running out of ideas here. Can you try to install Cinema from scratch in a different folder and see if it the behavior persists?

    Cheers, Riccardo



  • It will take a while before I find the time to install from scratch.
    I am in the middle of a project, and don't want to risk anything on this machine right now.
    But I'll leave the topic open for now and come back when I have more to report.


  • Global Moderator

    Thanks Daniel, look forward your further tests.

    Best, Riccardo