<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:Calibri}
@font-face
{font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{margin-right:0in;
margin-left:0in;
font-size:10.0pt;
font-family:"Times New Roman","serif";
color:black}
span.emailstyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.emailstyle18
{font-family:"Calibri","sans-serif";
color:#1F497D}
span.EmailStyle20
{font-family:"Calibri","sans-serif";
color:#1F497D}
.MsoChpDefault
{font-size:10.0pt}
@page Section1
{margin:1.0in 1.0in 1.0in 1.0in}
div.Section1
{}
-->
</style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span style="color:#1F497D">Mathieu,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for your response. Here is the line of code where I execute xs2svg:</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">xs2svg(1,strcat([file_name,".svg"]),"portrait");</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">This line works fine on windows version of scilab.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">When I run the line above I get 2 errors at the same time. The first one appears in the scilab console window:</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal">xs2svg: GL2PS error during export.</p>
<p class="MsoNormal">at line 412 of exec file called by : </p>
<p class="MsoNormal"> exec(%fileToExec); disp(msprintf(gettext("Execution done.\
</p>
<p class="MsoNormal">while executing a callback</p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">The second one I believe comes from the linux redhat OS. It appears in a linux window or linux terminal. In other words, it appears in a non-scilab window:</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal">GL2PS error: gl2psBeginPage called in wrong program state</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Please let me know if you need any other info.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Dean Parsons</p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:windowtext">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:windowtext"> Mathieu Dubois [mailto:mathieu.dubois@limsi.fr]
<br>
<b>Sent:</b> Thursday, March 15, 2012 12:47 PM<br>
<b>To:</b> users@lists.scilab.org<br>
<b>Subject:</b> Re: [scilab-Users] GL2PS error when exporting</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hello,<br>
<br>
On 03/15/2012 03:38 PM, Dean Parsons wrote: </p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">I thought I would send this again since I never received a response.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Dean Parsons</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid windowtext 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Dean Parsons
<br>
<b>Sent:</b> Tuesday, March 13, 2012 9:03 AM<br>
<b>To:</b> <a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<b>Subject:</b> GL2PS error when exporting</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Oops, I forgot to mention that my linux terminal gives me the following error message when I run xs2svg:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">GL2PS error: gl2psBeginPage called in wrong program state</p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif"">Why do you mean by Linux Terminal? You mean when you type 'xs2svg' under bash? If that's the I don't know this command (not found on my ubuntu box) but I think it's not
related to scilab.<br>
<br>
So if I understand correctly you receive 2 different error messages when using xs2svg: one time "GL2PS error: gl2psBeginPage called in wrong program state", one time ''xs2svg: GL2PS error during export.", right?<br>
<br>
Can you give us exactly the way you call xs2svg?<br>
<br>
<br>
</span></p>
<div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Dean Parsons</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’m running scilab 5.1 64 bit on linux. (I had to change the Device to “vesa” in the “Device” Section of the /etc/X11/xorg.conf file to get the graphics to work correctly.)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">When I run xs2svg I get the following error:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">xs2svg: GL2PS error during export.</p>
<p class="MsoNormal">at line 412 of exec file called by : </p>
<p class="MsoNormal"> exec(%fileToExec); disp(msprintf(gettext("Execution done.\
</p>
<p class="MsoNormal">while executing a callback</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">My graphics card is an nVidia Quadro FX3450. The driver is version A1391.85 dated 10/30/2007.
<span style="color:#1F497D">After searching the nvidia website I did find a more recent version of the driver which I will install and try. Besides updating my GC driver, do you have a</span>ny
<span style="color:#1F497D">other </span>suggestions as to how I can work around this?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Dean Parsons</p>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><i><span style="font-size:10.0pt">CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.</span></i></p>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif""> </span></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><i><span style="font-size:10.0pt; color:black">CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.</span></i></p>
</body>
</html>