Plugins limitation count
-
Hello,
I have a customer that can't install a plugin, I check his console and I see the message :
OSError : cannot handle more than 50 object plugins.
As it's tagged with "OSError", I guess it depends of the OS, what can we do to increase this limitation ?
-
What version of C4D and what OS? Also are you developing in C++ or Python?
I remember that being an issue a long time ago (pre R20?) but I thought it may have been resolved somehow. From memory I think it was an OS limitation to the number of dynamic libraries it could physically load. The advise to customers at the time was to unload plugins that they did not use as often, putting them into their own folders so you could enable/disable them from the Preferences->Plugins list when required.
-
Hi @César-Vonc I think you speak about Python each plugin type have a limitation of 50 (call to RegisterXXXPlugin).
So you can have 50 ObjectData and 50 TagData. But you can't have 51 ObjectData (the number of C++ plugins does not count).
Normally it should be be an EnvironmentError exception that will be raised and not an OSError.
And there is no workaround.Cheers,
Maxime. -
Hello, it's indeed about Python plugins on S24 and R25 and OSX, and I guess other C4D version and OS.
It's a shame that it is limited to 50 ObjectData, 50 TagData, etc.., the common user will not check the console window and will think it's a bug from the plugin.
I hope it wil change one day.
Thanks for your answer
-
Hello @jwzegelaar,
without any further questions, we will consider this topic as solved by Monday, the 25th and flag it accordingly.
Thank you for your understanding,
Ferdinand -
Hi guys, can u please solve the limitation of loading maximum 50 python plugins ? I dont understand whats the point of it and quite a bit annoying... A plugin pack basically kills every other plugins.... Thanks in advance
-
@lev said in Plugins limitation count:
Hi guys, can u please solve the limitation of loading maximum 50 python plugins ? I dont understand whats the point of it and quite a bit annoying... A plugin pack basically kills every other plugins.... Thanks in advance
I can only agree.
Some times for one plugin you need to register multiple ObjectData or TagData, so it increase quickly...
-
Facing this issue on a regular basis.
Initial problem is that users are not aware of this particular issue, as in general users are not aware of a python console existence.
And users doesn't care if your plugin is C++ or Python, they just expect this will work, once plugin is put into plugins folder.
I bet limit for tags or preferences plugins is hard to reach, but limit for ObjectData might be four times larger.If not limit increase,
Maybe python plugins registration should be changed?
Initially c4d collects all register queries, and if it all within the limit — register them.
If total amount out of limits — open the UI to warn user regarding Cinema4D limitations, and allow user to make a decision to include/exclude plugins. -
This is a bit more complex than that, python is loaded after plugins are registered, therefor for each one we need to have a c++ one that act as a placeholder that will be replaced later by a python one.
I can't guarantee anything but I will see what I can do (probably not for the next release.)
Cheers,
Maxime