Maximum size of a plug-in

This topic has been viewed 6523 times and has 6 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Maximum size of a plug-in

Post by enkonyito »

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
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Maximum size of a plug-in

Post by Keet »

There are limits on file size: https://sourceforge.net/p/forge/documen ... ize-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/discu ... /133a634a/
I don't know how sourceforge is setup but maybe these instructions can help: https://popart-studio.medium.com/what-i ... 07fffdcc92 (heading "Modifying the PHP ini File")
Dodecagon.nl
1300+ 3D models, manuals, and projects
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Maximum size of a plug-in

Post by Daniels118 »

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.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Maximum size of a plug-in

Post by Puybaret »

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
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Maximum size of a plug-in

Post by Daniels118 »

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.
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Maximum size of a plug-in

Post by enkonyito »

@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

Code: Select all

java.lang.UnsatisfiedLinkError: YafarayRenderer.createEnvironment(Ljava/lang/String;Ljava/lang/String;)J
EnkoNyito
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Maximum size of a plug-in

Post by Daniels118 »

You should try to not call initdll at all, they are already loaded.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest