From diptiiitb17 at gmail.com Thu May 5 13:07:07 2016 From: diptiiitb17 at gmail.com (diptig) Date: Thu, 5 May 2016 04:07:07 -0700 (MST) Subject: [Scilab-Dev] Debugging Scilab's Xcos module on eclipse get crash with error :Minidumps In-Reply-To: <1461234498830-4034011.post@n3.nabble.com> References: <1460358502081-4033957.post@n3.nabble.com> <1460396599.2630.17.camel@scilab-enterprises.com> <1461058581239-4034002.post@n3.nabble.com> <1461170969.8298.7.camel@scilab-enterprises.com> <1461219675672-4034009.post@n3.nabble.com> <1461222619.2332.2.camel@scilab-enterprises.com> <1461234498830-4034011.post@n3.nabble.com> Message-ID: <1462446427366-4034070.post@n3.nabble.com> Hi, I tried doing few changes in my setup but unfortunately that also didn't worked. please let me know how to resolve this issue. Thanks, Dipti -- View this message in context: http://mailinglists.scilab.org/Debugging-Scilab-s-Xcos-module-on-eclipse-get-crash-with-error-Minidumps-tp4033957p4034070.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From diptiiitb17 at gmail.com Thu May 5 13:35:02 2016 From: diptiiitb17 at gmail.com (diptig) Date: Thu, 5 May 2016 04:35:02 -0700 (MST) Subject: [Scilab-Dev] How to Build and Compile Scilab 5.2.2 source code on windows 7 Message-ID: <1462448102397-4034071.post@n3.nabble.com> Hi, I'm looking for how to build and compile Scilab 5.5.2 source code on windows 7 system. I found following link (for windows XP) To Build : https://wiki.scilab.org/Build%20Scilab%20x64%20on%20Windows To Compile : https://wiki.scilab.org/How%20to%20create%20a%20binary%20version%20of%20Scilab%20for%20Windows https://wiki.scilab.org/Visual%20Studio%20C%2B%2B%202008%20Pro%20%26%20Intel%20Fortran%2011 As I'm using Windows 7, I'm not able to build or compile scilab following above link. If anyone has build and compile scilab on windows 7 or any higher version, Please let me know how to achieve it. Thanks, Dipti -- View this message in context: http://mailinglists.scilab.org/How-to-Build-and-Compile-Scilab-5-2-2-source-code-on-windows-7-tp4034071.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From caioc2bolado at gmail.com Thu May 5 17:03:18 2016 From: caioc2bolado at gmail.com (Caio Souza) Date: Thu, 5 May 2016 12:03:18 -0300 Subject: [Scilab-Dev] How to Build and Compile Scilab 5.2.2 source code on windows 7 In-Reply-To: <1462448102397-4034071.post@n3.nabble.com> References: <1462448102397-4034071.post@n3.nabble.com> Message-ID: Hello, I haven't built the 5.5.2 version for a long time, but always I have had some troubles (building any version on windows) and need to make some local changes/configs to make it work. Would be more helpfull if you can sent your build log. On Thu, May 5, 2016 at 8:35 AM, diptig wrote: > Hi, > > I'm looking for how to build and compile Scilab 5.5.2 source code on > windows > 7 system. > > I found following link (for windows XP) > > To Build : https://wiki.scilab.org/Build%20Scilab%20x64%20on%20Windows > > > To Compile : > > https://wiki.scilab.org/How%20to%20create%20a%20binary%20version%20of%20Scilab%20for%20Windows > < > https://wiki.scilab.org/How%20to%20create%20a%20binary%20version%20of%20Scilab%20for%20Windows > > > > https://wiki.scilab.org/Visual%20Studio%20C%2B%2B%202008%20Pro%20%26%20Intel%20Fortran%2011 > < > https://wiki.scilab.org/Visual%20Studio%20C%2B%2B%202008%20Pro%20%26%20Intel%20Fortran%2011 > > > > > As I'm using Windows 7, I'm not able to build or compile scilab following > above link. > > If anyone has build and compile scilab on windows 7 or any higher version, > Please let me know how to achieve it. > > Thanks, > Dipti > > > > > > -- > View this message in context: > http://mailinglists.scilab.org/How-to-Build-and-Compile-Scilab-5-2-2-source-code-on-windows-7-tp4034071.html > Sent from the Scilab developers - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From diptiiitb17 at gmail.com Fri May 6 12:11:31 2016 From: diptiiitb17 at gmail.com (diptig) Date: Fri, 6 May 2016 03:11:31 -0700 (MST) Subject: [Scilab-Dev] How to Build and Compile Scilab 5.2.2 source code on windows 7 In-Reply-To: References: <1462448102397-4034071.post@n3.nabble.com> Message-ID: <1462529491755-4034075.post@n3.nabble.com> Hello, As you have mentioned, you have successfully built some other version of scilab source code on windows, Can I know which scilab source code version , windows version, visual studio version you used and which link you followed to build it. Is it this link Thanks, Dipti.G -- View this message in context: http://mailinglists.scilab.org/How-to-Build-and-Compile-Scilab-5-2-2-source-code-on-windows-7-tp4034071p4034075.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From caioc2bolado at gmail.com Fri May 6 16:32:08 2016 From: caioc2bolado at gmail.com (Caio Souza) Date: Fri, 6 May 2016 11:32:08 -0300 Subject: [Scilab-Dev] How to Build and Compile Scilab 5.2.2 source code on windows 7 In-Reply-To: <1462529491755-4034075.post@n3.nabble.com> References: <1462448102397-4034071.post@n3.nabble.com> <1462529491755-4034075.post@n3.nabble.com> Message-ID: Yes, it's the same link. I have build the development version 6.x.x on windows 10 with Visual Studio 2015, but I have to make various (hackish)changes to compile. I'm not sure which version of Visual Studio is used by the Scilab team(if it is used at all), but I tried with the VS2012 and I couldnt get it to work, since it does not support variadic templates. On Fri, May 6, 2016 at 7:11 AM, diptig wrote: > Hello, > > As you have mentioned, you have successfully built some other version of > scilab source code on windows, Can I know which scilab source code version > , > windows version, visual studio version you used and which link you followed > to build it. Is it this link > > > Thanks, > Dipti.G > > > > > -- > View this message in context: > http://mailinglists.scilab.org/How-to-Build-and-Compile-Scilab-5-2-2-source-code-on-windows-7-tp4034071p4034075.html > Sent from the Scilab developers - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chenfeng.zhu at tu-clausthal.de Sat May 7 02:17:25 2016 From: chenfeng.zhu at tu-clausthal.de (sampig) Date: Fri, 6 May 2016 17:17:25 -0700 (MST) Subject: [Scilab-Dev] Error when compiling and running with javasci in Scilab 6 Message-ID: <572D3406.80702@tu-clausthal.de> Hello, When I tried to compile and run javasci in Scilab 6 (https://help.scilab.org/docs/5.5.2/en_US/compile_and_run_javasci_v2.html), I was unable to run a simple application in the example. I am sorry that I have to use the document about 5.5.x instead of 6 because there are no documents for scilab 6. I got this *error*: /------------------ Scilab startup function detected that the function proposed to the engine is the wrong one. Usually, it comes from a linker problem in your distribution/OS.// //Here, Scilab should have 'libscijvm-disable' defined but gets 'libscijvm' instead.// //If you do not know what it means, please report a bug on http://bugzilla.scilab.org/. If you do, you probably know that you should change the link order in SCI/modules/Makefile.am/ *Environment*: -------------------- Ubuntu 16.04 LTS Scilab 6 in master branch / Scilab 6.0.0-beta-1 JDK1.8 Eclipse Mars *HOW TO REPRODUCE THE ISSUE:* ------------------------------------------------------- *1*. in Scilab 6 of master branch: /export SCI=/usr/develop/scilab/share/scilab// //export LD_LIBRARY_PATH=/usr/develop/scilab/lib/scilab:/usr/develop/scilab/lib/thirdparty// //javac -cp $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar Test.java// //java -cp $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar Test/ *2*. in Scilab 6.0.0-beta-1: *3*. in eclipse with Scilab 6 of master branch: Also tried this "Scilab sci = new Scilab();". If anyone has succeeded doing this, please tell me how. Thanks very much! Best wishes, Chenfeng Zhu -- var ME = { "cn_name": "???", "en_name": "Chenfeng Zhu", "mobile": "(+49) 0176 80827704", "university": "TU-Clausthal", "program": "ITIS", "field": ["JAVA", "Android", "Database", "Data Mining"], "chat": {"Hangout":"zhuchenf at gmail.com", "IRC":"sampig at chat.freenode.net"} } part3.09010403.08020700 at tu-clausthal.de (10K) part4.07030502.06020000 at tu-clausthal.de (70K) part5.01090505.08010804 at tu-clausthal.de (13K) part6.05050609.03070302 at tu-clausthal.de (84K) part7.04000201.04090606 at tu-clausthal.de (30K) part8.01070209.03070602 at tu-clausthal.de (179K) -- View this message in context: http://mailinglists.scilab.org/Error-when-compiling-and-running-with-javasci-in-Scilab-6-tp4034079.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.bignier at scilab-enterprises.com Tue May 10 11:58:39 2016 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Tue, 10 May 2016 11:58:39 +0200 Subject: [Scilab-Dev] Error when compiling and running with javasci in Scilab 6 In-Reply-To: <572D3406.80702@tu-clausthal.de> References: <572D3406.80702@tu-clausthal.de> Message-ID: <5731B0CF.9080203@scilab-enterprises.com> Hello Zhu, There seems to be a bug indeed, I am reproducing the errors. Could you please report a bug ? For the record, the error happens in InitScilab.cpp:1042 : calling 'Scilab(true)' in Test.java causes getScilabMode() to return SCILAB_API and 'Scilab(false)' returns SCILAB_NWNI (=> regression from Scilab 5?). There is a confusion between the graphic libs being loaded, and removing the 'getScilabMode() != SCILAB_API' check with 'Scilab(true)' causes Scilab to start launching but ending up in a major crash... Regards, Paul On 05/07/2016 02:17 AM, sampig wrote: > > Hello, > > When I tried to compile and run javasci in Scilab 6 > (https://help.scilab.org/docs/5.5.2/en_US/compile_and_run_javasci_v2.html), > I was unable to run a simple application in the example. I am sorry > that I have to use the document about 5.5.x instead of 6 because there > are no documents for scilab 6. > > > I got this *error*: > /------------------ > Scilab startup function detected that the function proposed to the > engine is the wrong one. Usually, it comes from a linker problem in > your distribution/OS.// > //Here, Scilab should have 'libscijvm-disable' defined but gets > 'libscijvm' instead.// > //If you do not know what it means, please report a bug on > http://bugzilla.scilab.org/. If you do, you probably know that you > should change the link order in SCI/modules/Makefile.am/ > > > *Environment*: > -------------------- > Ubuntu 16.04 LTS > Scilab 6 in master branch / Scilab 6.0.0-beta-1 > JDK1.8 > Eclipse Mars > > > *HOW TO REPRODUCE THE ISSUE:* > ------------------------------------------------------- > *1*. in Scilab 6 of master branch: > /export SCI=/usr/develop/scilab/share/scilab// > //export > LD_LIBRARY_PATH=/usr/develop/scilab/lib/scilab:/usr/develop/scilab/lib/thirdparty// > //javac -cp > $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar > Test.java// > //java -cp > $CLASSPATH:$SCI/modules/javasci/jar/org.scilab.modules.javasci.jar:$SCI/modules/types/jar/org.scilab.modules.types.jar > Test/ > > > > *2*. in Scilab 6.0.0-beta-1: > > > > *3*. in eclipse with Scilab 6 of master branch: > > > Also tried this "Scilab sci = new Scilab();". > > If anyone has succeeded doing this, please tell me how. > > Thanks very much! > > > Best wishes, > Chenfeng Zhu > -- > var ME = { > "cn_name": "???", > "en_name": "Chenfeng Zhu", > "mobile": "(+49) 0176 80827704", > "university": "TU-Clausthal", > "program": "ITIS", > "field": ["JAVA", "Android", "Database", "Data Mining"], > "chat": {"Hangout":[hidden email] , "IRC":[hidden email] } > } > > > > ------------------------------------------------------------------------ > View this message in context: Error when compiling and running with > javasci in Scilab 6 > > Sent from the Scilab developers - Mailing Lists Archives mailing list > archive > > at Nabble.com. > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jm.gauthier at samares-engineering.com Mon May 23 00:06:17 2016 From: jm.gauthier at samares-engineering.com (jm.gauthier) Date: Sun, 22 May 2016 15:06:17 -0700 (MST) Subject: [Scilab-Dev] Problem with advanced mode using scilab within Eclipse Message-ID: <1463954776963-4034100.post@n3.nabble.com> Hello, I'am trying to package an Eclipse plugin that calls the Scilab engine throw the org.scilab.modules.javasci API. The following is what I want to do: /Scilab sci = new Scilab(true); sci.open(); String command = "loadXcosLibs(); importXcosDiagram("PathToMyXCosFile.zcos");xcos_simulate(scs_m, 4);"; sci.exec(command);/ This piece of code works very well inside a JUnit test. However when embedded in an eclipse plugin, it thrown the following error message inside the console (all the paths are defined, and I have a lib folder which contains all the required jar file (including the required modules): java.lang.ClassCastException: org.scilab.modules.history_manager.HistoryPrefs cannot be cast to org.scilab.modules.commons.xml.XConfigurationListener # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x000007fefbd1a06d, pid=11568, tid=12744 # # JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build 1.8.0_91-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [KERNELBASE.dll+0x1a06d] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Softwares\eclipse_mdt_neon_M3\hs_err_pid11568.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # In addition, I have included all the jar files inside the Classpath of the MANIFEST.MF (Runtime tab). Please, find the hs_err_pid11568.log file. I'am using Eclipse Neon 64b with Java 1.8 64b and Scilab 5.5.2 64b. Thank you in advance for your helps. -- View this message in context: http://mailinglists.scilab.org/Problem-with-advanced-mode-using-scilab-within-Eclipse-tp4034100.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Tue May 24 09:16:46 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 24 May 2016 09:16:46 +0200 Subject: [Scilab-Dev] Problem with advanced mode using scilab within Eclipse In-Reply-To: <1463954776963-4034100.post@n3.nabble.com> References: <1463954776963-4034100.post@n3.nabble.com> Message-ID: <1464074206.3361.22.camel@scilab-enterprises.com> Hello Jean-Marie, > java.lang.ClassCastException: >?org.scilab.modules.history_manager.HistoryPrefs cannot be cast to >?org.scilab.modules.commons.xml.XConfigurationListener Could you try to debug the caller of this code ? This seems related to some configuration file but as we use introspection for that part, it is hard to get more info without a stacktrace. Thanks, -- Cl?ment Le dimanche 22 mai 2016 ? 15:06 -0700, jm.gauthier a ?crit?: > Hello,? > > I'am trying to package an Eclipse plugin that calls the Scilab engine throw > the org.scilab.modules.javasci API.? > > The following is what I want to do:? > > /Scilab sci = new Scilab(true); > sci.open(); > > String command = "loadXcosLibs(); > importXcosDiagram("PathToMyXCosFile.zcos");xcos_simulate(scs_m, 4);";? > sci.exec(command);/ > > This piece of code works very well inside a JUnit test. However when > embedded in an eclipse plugin, it thrown the following error message inside > the console (all the paths are defined, and I have a lib folder which > contains all the required jar file (including the required modules):? > > java.lang.ClassCastException: > org.scilab.modules.history_manager.HistoryPrefs cannot be cast to > org.scilab.modules.commons.xml.XConfigurationListener > # > # A fatal error has been detected by the Java Runtime Environment: > # > #??EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x000007fefbd1a06d, > pid=11568, tid=12744 > # > # JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build > 1.8.0_91-b14) > # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode > windows-amd64 compressed oops) > # Problematic frame: > # C??[KERNELBASE.dll+0x1a06d] > # > # Failed to write core dump. Minidumps are not enabled by default on client > versions of Windows > # > # An error report file with more information is saved as: > # C:\Softwares\eclipse_mdt_neon_M3\hs_err_pid11568.log > # > # If you would like to submit a bug report, please visit: > #???http://bugreport.java.com/bugreport/crash.jsp > # The crash happened outside the Java Virtual Machine in native code. > # See problematic frame for where to report the bug. > # > > In addition, I have included all the jar files inside the Classpath of the > MANIFEST.MF (Runtime tab).? > Please, find the??hs_err_pid11568.log > ???file. > I'am using Eclipse Neon 64b with Java 1.8 64b and Scilab 5.5.2 64b. > > Thank you in advance for your helps.?? > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Problem-with-advanced-mode-using-scil > ab-within-Eclipse-tp4034100.html > Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev From clement.david at scilab-enterprises.com Tue May 24 09:20:41 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 24 May 2016 09:20:41 +0200 Subject: [Scilab-Dev] Debugging Scilab's Xcos module on eclipse get crash with error :Minidumps In-Reply-To: <1462446427366-4034070.post@n3.nabble.com> References: <1460358502081-4033957.post@n3.nabble.com> <1460396599.2630.17.camel@scilab-enterprises.com> <1461058581239-4034002.post@n3.nabble.com> <1461170969.8298.7.camel@scilab-enterprises.com> <1461219675672-4034009.post@n3.nabble.com> <1461222619.2332.2.camel@scilab-enterprises.com> <1461234498830-4034011.post@n3.nabble.com> <1462446427366-4034070.post@n3.nabble.com> Message-ID: <1464074441.3361.26.camel@scilab-enterprises.com> Hi diptig, As stated on the documentation (I clarified it on?8d966d0f), to have a full scilab with Java support (and thus xcos) you should start it with : >?Scilab sci = new Scilab(true) -- Cl?ment Le jeudi 05 mai 2016 ? 04:07 -0700, diptig a ?crit?: > Hi, > > I tried doing few changes in my setup but unfortunately that also didn't > worked. > > please let me know how to resolve this issue. > > Thanks, > Dipti > > > > -- > View this message in context: http://mailinglists.scilab.org/Debugging-Scilab-s-Xcos-module-on-ecl > ipse-get-crash-with-error-Minidumps-tp4033957p4034070.html > Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev From diptiiitb17 at gmail.com Wed May 25 11:38:56 2016 From: diptiiitb17 at gmail.com (diptig) Date: Wed, 25 May 2016 02:38:56 -0700 (MST) Subject: [Scilab-Dev] Debugging Scilab's Xcos module on eclipse get crash with error :Minidumps In-Reply-To: <1464074441.3361.26.camel@scilab-enterprises.com> References: <1460358502081-4033957.post@n3.nabble.com> <1460396599.2630.17.camel@scilab-enterprises.com> <1461058581239-4034002.post@n3.nabble.com> <1461170969.8298.7.camel@scilab-enterprises.com> <1461219675672-4034009.post@n3.nabble.com> <1461222619.2332.2.camel@scilab-enterprises.com> <1461234498830-4034011.post@n3.nabble.com> <1462446427366-4034070.post@n3.nabble.com> <1464074441.3361.26.camel@scilab-enterprises.com> Message-ID: <1464169136199-4034118.post@n3.nabble.com> Hi Clement, Thanks for replying. As you had mentioned, I have modified my main class TestXcos as public class TestXcos { public static void main(String[] args) { try { Scilab sci = new Scilab(true); sci.open(); Xcos.xcos("C:/Scilab/SCI_SRC/modules/xcos/demos/Bouncing_ball.zcos",null); } catch (JavasciException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } But still I'm facing same issue ie. message on example window saying "Simulation in progress" but the graph window is not opening (Refer to image posted on Apr 21, 2016) and program get stuck and halt there only. Let me know If I'm missing something more on this and is there any documentation available for scilab code and code's flow diagram. Thanks, Dipti -- View this message in context: http://mailinglists.scilab.org/Debugging-Scilab-s-Xcos-module-on-eclipse-get-crash-with-error-Minidumps-tp4033957p4034118.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From jm.gauthier at samares-engineering.com Wed May 25 15:55:07 2016 From: jm.gauthier at samares-engineering.com (jm.gauthier) Date: Wed, 25 May 2016 06:55:07 -0700 (MST) Subject: [Scilab-Dev] Problem with advanced mode using scilab within Eclipse In-Reply-To: <1464074206.3361.22.camel@scilab-enterprises.com> References: <1463954776963-4034100.post@n3.nabble.com> <1464074206.3361.22.camel@scilab-enterprises.com> Message-ID: <1464184507513-4034120.post@n3.nabble.com> Hello Cl?ment, Thank you for your answer. Actually the error occurs when /sci.open()/ is invoked. I get the source code of the org.scilab.module.xxxx.jars (from here: git clone git://git.scilab.org/scilab) and attached them to each jars in order to go deeper inside the debugging process. The error appear at the follwing call: I am sorry, line number are not available...I don't know really why the Eclipse debugger didn't succeed to indicate the line number of the scilab sources. Maybe the sources version is not the same as the jar of Scilab 5.5.2 ? Anyway, it is the only stack trace I can provide for the moment. The console shows the same error message as in the last post (with hs_err_pid11568.log file). Hope it helps. Thank you. -- View this message in context: http://mailinglists.scilab.org/Problem-with-advanced-mode-using-scilab-within-Eclipse-tp4034100p4034120.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From jm.gauthier at samares-engineering.com Fri May 27 11:28:34 2016 From: jm.gauthier at samares-engineering.com (jm.gauthier) Date: Fri, 27 May 2016 02:28:34 -0700 (MST) Subject: [Scilab-Dev] Debugging Scilab's Xcos module on eclipse get crash with error :Minidumps In-Reply-To: <1464169136199-4034118.post@n3.nabble.com> References: <1460358502081-4033957.post@n3.nabble.com> <1460396599.2630.17.camel@scilab-enterprises.com> <1461058581239-4034002.post@n3.nabble.com> <1461170969.8298.7.camel@scilab-enterprises.com> <1461219675672-4034009.post@n3.nabble.com> <1461222619.2332.2.camel@scilab-enterprises.com> <1461234498830-4034011.post@n3.nabble.com> <1462446427366-4034070.post@n3.nabble.com> <1464074441.3361.26.camel@scilab-enterprises.com> <1464169136199-4034118.post@n3.nabble.com> Message-ID: <1464341314359-4034127.post@n3.nabble.com> Hi Diptig, I tried to reproduce it and I faced the same problem: "/it shows a message saying "Simulation in progress" and nothing happens after that and it remains in this state only/". However I do not face the same problem when I launch the code inside a JUnit test instead of the main method. I've got three JUnit tests for the moment: //Here I want to test that creating and opening a Scilab instance and launching a simple command works well. @Test public void testExecuteSumCommand() { XCosEngine.getInstance().sciOpen(); assertEquals("[4.0]", XCosEngine.getInstance().executeCommand("result = 3 + 1;", "result").toString()); XCosEngine.getInstance().sciClose(); } //Here I want to test that an Xcos model can be loaded and simulated using scilab commands. @Test public void testLoadAndSimulateXcosDiagram() { String diagram_path = "pathTo/mymodel.zcos"; XCosEngine.getInstance().sciOpen(); XCosEngine.getInstance().execute("loadXcosLibs();"); XCosEngine.getInstance().execute( "status = importXcosDiagram(\"" + diagram_path + "\");"); XCosEngine.getInstance().execute("xcos_simulate(scs_m, 4);"); XCosEngine.getInstance().sciClose(); } //Here I want to test your code: @Test public void textExecuteXcos(){ XCosEngine.getInstance().sciOpen(); XCosEngine.getInstance().executeXcos("pathto/mymodel.zcos"); XCosEngine.getInstance().sciClose(); } XCosEngine is a singleton: private XCosEngine(){ try { if (this.sci == null){ this.sci = new Scilab(true); } } catch (InitializationException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public static XCosEngine getInstance() { if(instance == null){ instance = new XCosEngine(); } return instance; } That's why there is XCosEngine.getInstance() everywhere. But anyway it should not change the behaviour of the Scilab libraries. The following is the method used in my last JUnit test: public void executeXcos(String pathfile){ Xcos.xcos(pathfile, null); } So, basically, we have the same set of instructions: new Scilab(true), open() and xcos(string, string). When I execute the last unit test only, nothing happend (no diagram is opened), but no errors appear. When I execute the second unit test only, the simulation graphic appears (from the scope inside the model). Finally, when I execute the second and the last unit test together, the simulation appears and the diagram opens in a new Xcos window. I can't really explain why the last unit test do nothing... diptig wrote > Let me know If I'm missing something more on this and is there any > documentation available for scilab code and code's flow diagram. The javasci documentation is here: https://help.scilab.org/docs/5.5.2/en_US/javasci/javadoc/index.html. Concerning the Xcos module javadoc, I didn't find it yet. Hope it can helps. -- View this message in context: http://mailinglists.scilab.org/Debugging-Scilab-s-Xcos-module-on-eclipse-get-crash-with-error-Minidumps-tp4033957p4034127.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.