<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p>Hello Stefan & Claus,</p>
<p>I manage to reproduce the bug in Scilab 5.5.2 but it has been
fixed on the master branch (Scilab 6): Xcos doesn't crash after
calls to input().</p>
<p>You may want to port your code to Scilab 6, or as a workaround
you can use other <a
href="https://help.scilab.org/docs/6.0.0/en_US/section_7182261dbbb2bb2293bb9166ba5f1fb3.html">i/o
functions</a> than input().</p>
<p>Regards,</p>
<p>Paul<br>
</p>
<br>
<div class="moz-cite-prefix">On 08/16/2016 12:05 AM, Stefan Du Rietz
wrote:<br>
</div>
<blockquote
cite="mid:822e01d1-abbe-74c6-bf0c-f7a93f59d34b@durietz.se"
type="cite">Thank you, Claus, for confirming. But for me there is
no difference and if I just enter return, r is a space character:
<br>
<br>
-->r = input("Reply! ", "s");
<br>
-->mprintf("""%s""\n", r)
<br>
" "
<br>
-->ascii(r)
<br>
ans =
<br>
32.
<br>
<br>
/Stefan
<br>
<br>
<br>
On 2016-08-15 22:13, Claus Futtrup wrote:
<br>
<blockquote type="cite">Hi Stefan
<br>
<br>
An interesting find ... amazing. If you enter something (not
just
<br>
Return), then xcos opens. If you do not enter anything, then s
<br>
contains an empty string, and xcos crashes.
<br>
<br>
/Claus
<br>
<br>
On 15-08-2016 20:04, Stefan Du Rietz wrote:
<br>
<blockquote type="cite">1. Launch Scilab
<br>
2. Do this
<br>
-->input("Press Return!", "s")
<br>
-->xcos()
<br>
<br>
Regards
<br>
Stefan
<br>
<br>
<br>
On 2016-08-15 17:58, Stefan Du Rietz wrote:
<br>
<blockquote type="cite">This line in my loadsci.sce is the
culprit:
<br>
<br>
r = input("usb2data? [n] ", "s");
<br>
<br>
The following lines don't matter. This must certainly be a
bug?
<br>
<br>
Regards
<br>
Stefan
<br>
<br>
<br>
On 2016-08-12 16:23, Stefan Du Rietz wrote:
<br>
<blockquote type="cite">But why can I launch Xcos after
running my loadsci.sce(!) if I have
<br>
launched it before? Does it remember something from the
first launch
<br>
that makes it tolerant during the second launch to what I
have
<br>
done in
<br>
loadsci.sce?
<br>
<br>
Can you give me a hint?
<br>
<br>
Regards
<br>
Stefan
<br>
<br>
<br>
On 2016-08-12 15:29, Paul Bignier wrote:
<br>
<blockquote type="cite">
<br>
You're welcome!
<br>
<br>
I don't know what is in that loadsci.sci (sounds more
like a .sce by
<br>
the way) but if it is a personal file I'd start looking
into it ;)
<br>
<br>
Regards,
<br>
<br>
Paul
<br>
<br>
<br>
On 08/12/2016 03:06 PM, Stefan Du Rietz wrote:
<br>
<blockquote type="cite">Paul,
<br>
thank you very much for your help. Generally it is
one's own fault
<br>
when programs don't behave as expected ... So I
started Scilab with
<br>
all the same toolboxes but without my loadsci.sci and
then I could
<br>
start Xcos! But the strange thing is that if I then
ran loadsci.sci
<br>
from scilab's command line,
<br>
<br>
-->exec(SCIHOME+"/loadsci.sci", -1)
<br>
<br>
Xcos could still be started!
<br>
<br>
Am I haunted by some evil ghost?
<br>
<br>
Stefan
<br>
<br>
<br>
On 2016-08-12 11:53, Paul Bignier wrote:
<br>
<blockquote type="cite">
<br>
Stefan,
<br>
<br>
You are launching Xcos properly, but this number of
toolboxes
<br>
looks
<br>
suspicious to me, one of them may be interferring.
<br>
<br>
Can you please disable their autoload and try to
launch Xcos?
<br>
If it
<br>
works, you may want to load them one by one until
you can't
<br>
relaunch
<br>
Xcos ; that way we'll know which one is causing the
trouble.
<br>
<br>
Thank you, best regards,
<br>
<br>
Paul
<br>
<br>
<br>
On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:
<br>
<blockquote type="cite">Hello Paul,
<br>
<br>
I am using Scilab 5.5.2, installed from binaries
in three
<br>
different
<br>
computers with Windows 7 Pro, Windows 10 Home, and
Xubuntu Linux
<br>
14.4, respectively. I have these toolboxes
installed(?):
<br>
<br>
-->s = atomsSearch("toolbox");
<br>
-->mprintf("%s\n", s(:, 1))
<br>
ampl_toolbox
<br>
ANN_Toolbox
<br>
celestlab
<br>
celestlabx
<br>
CLUSTER
<br>
CWA
<br>
dace_scilab
<br>
emd_toolbox
<br>
EMTTOOL
<br>
FACT
<br>
Global_Optim_toolbox
<br>
grocer
<br>
guimaker
<br>
huffcomp
<br>
hypt
<br>
ica_toolbox
<br>
json
<br>
lsitbx
<br>
Mascaret
<br>
MDPtoolbox
<br>
metanet
<br>
microdaq
<br>
minphase_toolbox
<br>
moc_toolbox
<br>
nan
<br>
OpenRTDynamics
<br>
regtools
<br>
rltool
<br>
serial
<br>
sndfile_toolbox
<br>
socket_toolbox
<br>
stixbox
<br>
swt
<br>
toolbox_skeleton
<br>
toolbox_spgl1
<br>
usb_toolbox
<br>
XCPL
<br>
<br>
Best regards
<br>
Stefan
<br>
<br>
<br>
On 2016-08-12 08:42, Paul Bignier wrote:
<br>
<blockquote type="cite">
<br>
Hello Stefan,
<br>
<br>
This error is not familiar, could you give us
more information
<br>
please?
<br>
<br>
What version of Scilab are you using? Compiled
or Binary? OS? Do
<br>
you
<br>
have toolboxes installed?
<br>
<br>
Thanks,
<br>
<br>
Paul
<br>
<br>
<br>
On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:
<br>
<blockquote type="cite">Hello,
<br>
how do I start Xcos for the first time ever?
<br>
<br>
When I try from the menu: Applications - Xcos,
<br>
I get this message:
<br>
<br>
8361 Tue Aug 9 21:14
<br>
ckobject(28);if with_module("xcos") then
xcos(); else
<br>
disp(gettext("Please install xcos module
<br>
!--error 999
<br>
xcos:
<br>
while executing a callback
<br>
<br>
<br>
And from the command line:
<br>
<br>
-->xcos
<br>
!--error 999
<br>
xcos:
<br>
<br>
<br>
What can I do?
<br>
<br>
Regards
<br>
Stefan
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
</body>
</html>