Print at Dec 18, 2025, 9:27:29 AM View all posts in this thread on one page
Posted by enkonyito at Apr 7, 2024, 12:07:43 AM
Maximum size of a plug-in
Is there a maximum size a plug-in can be added into the Sweet Home 3D project on SourceForge?

For a 15.5MB plug-in, I get the message: "413 Request Entity Too Large".
----------------------------------------
EnkoNyito

Posted by Keet at Apr 7, 2024, 7:38:35 AM
Re: Maximum size of a plug-in
There are limits on file size: https://sourceforge.net/p/forge/documentation...r%20Web/#file-size-limits but this is probably not your problem. 15.5 MB should not be a problem.
Maybe it's related to this: https://sourceforge.net/p/seeddms/discussion/general/thread/133a634a/
I don't know how sourceforge is setup but maybe these instructions can help: https://popart-studio.medium.com/what-is-a-41...ow-to-fix-it-9f07fffdcc92 (heading "Modifying the PHP ini File")
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by Daniels118 at Apr 7, 2024, 1:02:36 PM
Re: Maximum size of a plug-in
You could also try to compress the jar with a higher compression level to shrink its size. By the way I'm curious about what make your plugin so large.

Posted by Puybaret at Apr 7, 2024, 1:41:57 PM
Re: Maximum size of a plug-in
I don’t have access to this kind of parameters on SourceForge, but they already increased the size limit of attached files in the past. If you want to make your plug-in smaller, you could compile your class files without debug information (Enkonyito already zip them). His plug-ins are large because they include YafaRay DLLs.
Enkonyito, if you don’t find a solution on SourceForge, send it to me, I’ll host your plug-in on sweethome3d.com server.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by Daniels118 at Apr 7, 2024, 3:03:27 PM
Re: Maximum size of a plug-in
But considering that yafaray dll is now part of SH3D itself, I see no pratical reason to include it in the plugin. It could worth to think about it.

Posted by enkonyito at Apr 8, 2024, 12:31:15 AM
Re: Maximum size of a plug-in
@Puybaret
Thanks for the suggestion, it might be useful in the future.
For the moment, I applied this solution.

@Daniels118
Unfortunately, using the DLLs of the version of YafaRay integrated into Sweet Home 3D causes the error
java.lang.UnsatisfiedLinkError: YafarayRenderer.createEnvironment(Ljava/lang/String;Ljava/lang/String;)J

----------------------------------------
EnkoNyito

Posted by Daniels118 at Apr 8, 2024, 7:19:41 PM
Re: Maximum size of a plug-in
You should try to not call initdll at all, they are already loaded.