Memory leak after plugin migration R16 -> R20
C4DS last edited by C4DS
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 ;-)
m_adam last edited by m_adam
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,
C4DS last edited by C4DS
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.
m_adam last edited by
Hi C4DS, unfortunately, I'm still not able to reproduce it, is it possible for you to share the Layout and Palette File?
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.
Boony2000 last edited by
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.
m_adam last edited by
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.
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
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.
I have all the same version as you mentioned except for .NET
I am currently on 4.7.02558
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?
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.
Thanks Daniel, look forward your further tests.
Have finally got the chance to install from scratch. But I didn't try with the original install, and upgraded directly to R20.057 before testing. Could not reproduce the problem on this new install.
However, the problem persisted on the other installed R20.030.
I updated that version as well to R20.057 and with that the memory leak cannot be reproduced anymore.
I am setting this topic to solved as the update seems to fix the issue.
Thanks a lot Daniel for following up here.
Glad to listen that the update actually fixed it, although even on 20.030 I had no better luck to reproduce.