Some of Xcos examples produce errors in Xcos 6.0.0-beta2
Reported by Nikolay Strelkov
examples_errors.sce (2.65 KB, application/x-scilab)
Scilab file for demonstration of Xcos 6.0.0-beta2 errors while launching examples
BUG DESCRIPTION:
----------------
I launched some Xcos examples from Scilab 6.0.0-beta2 distibution and some of them produce errors.
ERROR LOG:
----------
Startup execution:
loading initial environment
--> //Here I get errors with Examples:
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/continuous_pal/PID_1_Example.zcos');xcos_simulate(scs_m, 4);
at line 342 of function scicos_flat ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/scicos_flat.sci line 366 )
at line 243 of function scicos_flat ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/scicos_flat.sci line 267 )
at line 37 of function c_pass1 ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/c_pass1.sci line 59 )
at line 50 of function do_compile ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/do_compile.sci line 71 )
at line 96 of function do_update ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/do_update.sci line 117 )
at line 115 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 131 )
Invalid index.
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/continuous_pal/PID_2_Example.zcos');xcos_simulate(scs_m, 4);
at line 342 of function scicos_flat ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/scicos_flat.sci line 366 )
at line 243 of function scicos_flat ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/scicos_flat.sci line 267 )
at line 37 of function c_pass1 ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/c_pass1.sci line 59 )
at line 50 of function do_compile ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/do_compile.sci line 71 )
at line 96 of function do_update ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/do_update.sci line 117 )
at line 115 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 131 )
Invalid index.
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/continuous_pal/PID_3_Example.zcos');xcos_simulate(scs_m, 4);
at line 342 of function scicos_flat ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/scicos_flat.sci line 366 )
at line 243 of function scicos_flat ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/scicos_flat.sci line 267 )
at line 37 of function c_pass1 ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/c_pass1.sci line 59 )
at line 50 of function do_compile ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/do_compile.sci line 71 )
at line 96 of function do_update ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/scicos/macros/scicos_scicos/do_update.sci line 117 )
at line 115 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 131 )
Invalid index.
-->
-->
--> //2 - window "Scilab Message" with text "Problem in port size or type."
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/events_pal/ANDLOG_f_Example.zcos');xcos_simulate(scs_m, 4);
at line 117 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 133 )
xcos_simulate: Error during block parameters update.
-->
--> //3
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/integer_pal/en_US/DLATCH_en_US.zcos');xcos_simulate(scs_m, 4);
scicos_flat: Not connected super block input
scicos_flat: Invalid super block at 16
c_pass1: flat failed
at line 117 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 133 )
xcos_simulate: Error during block parameters update.
-->
--> //4
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/integer_pal/en_US/JKFLIPFLOP_en_US.zcos');xcos_simulate(scs_m, 4);
scicos_flat: Not connected super block input
scicos_flat: Invalid super block at 3
c_pass1: flat failed
at line 117 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 133 )
xcos_simulate: Error during block parameters update.
-->
--> //5
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/integer_pal/en_US/LOGIC_en_US.zcos');xcos_simulate(scs_m, 4);
scicos_flat: Not connected super block input
scicos_flat: Invalid super block at 9
scicos_flat: Invalid super block at 20
c_pass1: flat failed
at line 117 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 133 )
xcos_simulate: Error during block parameters update.
-->
--> //6
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/integer_pal/en_US/SHIFT_en_US.zcos');xcos_simulate(scs_m, 4);
scicos_flat: Not connected super block input
scicos_flat: Invalid super block at 8
scicos_flat: Invalid super block at 23
c_pass1: flat failed
at line 117 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 133 )
xcos_simulate: Error during block parameters update.
-->
--> //7
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/integer_pal/en_US/SRFLIPFLOP_en_US.zcos');xcos_simulate(scs_m, 4);
scicos_flat: Not connected super block input
scicos_flat: Invalid super block at 2
c_pass1: flat failed
at line 117 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 133 )
xcos_simulate: Error during block parameters update.
-->
--> //8
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/signalrouting_pal/SELF_SWITCH_on_off_Example.zcos');xcos_simulate(scs_m, 4);
scicos_flat: Not connected super block input
scicos_flat: Invalid super block at 3
c_pass1: flat failed
at line 117 of function xcos_simulate ( /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/macros/xcos_simulate.sci line 133 )
xcos_simulate: Error during block parameters update.
-->
--> //9
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/sinks_pal/en_US/wfile_f_en_US.zcos');xcos_simulate(scs_m, 4);
WARNING: Feature WFILE_f is obsolete.
WARNING: Please use WRITEC_f instead.
WARNING: This feature will be permanently removed in Scilab 6.0.0
the block 1 has been called with input out of its domain
-->
--> //10 - window "Scilab message" with text "Initialisation problem:
--> // the block 2 has been called with input out of its domain"
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/sources_pal/en_US/rfile_f_en_US.zcos');xcos_simulate(scs_m, 4);
Read error on file /home/nikolay/Software/scilab-6.0.0-beta-2/share/scilab/modules/xcos/examples/sources_pal/en_US/rfile_f.txt
-->
--> //11
--> clear;xdel(winsid());importXcosDiagram(SCI+'/modules/xcos/examples/userdefinedfunctions_pal/en_US/EXPRESSION_en_US.zcos');xcos_simulate(scs_m, 4);
singularity in a block
HOW TO REPRODUCE THE BUG:
-------------------------
1. Download Scilab 6.0.0-beta2
2. Launch attached file (or copy lines from it) in Scilab 6.0.0-beta2
3. See errors.
OTHER INFORMATION:
------------------
Tested on Ubuntu 12.04.5 amd64 with Scilab 6.0.0-beta2 amd64.
All these examples launches without errors on Scilab/Xcos 5.5.2.