[Scilab-users] Headless graphics in scilab: time & memory issues

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu Dec 3 09:59:56 CET 2020


Hello again,

Just to add to my previous message: increasing nx or ny in my script can 
crash scilab during the call to xend().
On my small local machine, this occurs for:

    nx=4000;
    ny=3000;

for which scilab takes ~7 seconds to create the png in "normal" mode...

Can any of you confirm this bug?

Antoine

On 03/12/2020 09:48, Antoine Monmayrant wrote:
>
> Hello all,
>
> In these days of remote working, I need to use again scilab in 
> headless mode to generate graphics.
>
> In other words, I connect  in command line only to a remote server 
> where scilab is installed and I want it to generate graphics using a 
> combination of driver, xinit and xend.
>
> There seems to be some issues with driver/xinit/xend: huge memory 
> overhead and long computation time that makes it impossible to 
> generate some plots in headless mode.
>
> For example, a simple Sgrayplot that takes ~1 second to plot and save 
> to a png in normal mode takes more than 200 seconds and huge amount of 
> ram in headless mode (see attached test script).
>
> I also have some plots that works without a problem in normal mode, 
> but fail in headless mode because of some memory limitation:
>
>     xend: An error occurred: Unable to create export file, not enough
>     memory. Decreasing the number of elements or the size of the
>     figure should fix this error.
>
> Is there a way to get around these problems?
>
> Thanks for your help,
>
> Antoine
>
>
>
>
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20201203/70ea7cf3/attachment.htm>


More information about the users mailing list