Code Monkey home page Code Monkey logo

Trying to use Cantera on windows 7 Professional 64bit using Matlab R2010b. Matlab crashes as soon as function: advance(reactor, t) is getting executed. I have installed Cantera 1.88 and Python 2.6 (both for 64 bit windows). The same code works perfectly fine on a 32bit machine where i have Cantera 1.7 and Python 2.5. I'm using the correct executable(ctmethods.mexw64) file for 64bit machine. Any help will be appreciated. about cantera HOT 12 CLOSED

hkmoffat avatar hkmoffat commented on July 20, 2024
Trying to use Cantera on windows 7 Professional 64bit using Matlab R2010b. Matlab crashes as soon as function: advance(reactor, t) is getting executed. I have installed Cantera 1.88 and Python 2.6 (both for 64 bit windows). The same code works perfectly fine on a 32bit machine where i have Cantera 1.7 and Python 2.5. I'm using the correct executable(ctmethods.mexw64) file for 64bit machine. Any help will be appreciated.

from cantera.

Comments (12)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Please provide an example mechanism and script which produce the error.

Original comment by yarmond on 28 May 2011 at 12:03

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
[deleted comment]

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I run in to a similar issue. I receive it after running the 'air' command. For 
the installation, I followed the instructions in the link, 
http://www.me.berkeley.edu/ME256/InstallingCantera160r1.ppt. I'm using Windows 
Vista, Python 2.6, and Matlab R2010a. Some instructions have mentioned 
installing Numpy or Sundials, which I have not done. Is this required? Running 
any of the tutorials or commands produces a segmentation fault. A copy of the 
error is printed below. Running the command a second time produces the stack 
trace also posted below. Any help on this would be awesome. 

Thanks. 
Sunny



air
Saving minidump to file 
C:\Users\FLUENT\AppData\Local\Temp\matlab_crash_dump.4552.0.dmp

------------------------------------------------------------------------
       Segmentation violation detected at Thu Jun 23 20:51:58 2011
------------------------------------------------------------------------

Configuration:
  MATLAB Version:   7.6.0.324 (R2008a)
  MATLAB License:   XXXX
  Operating System: Microsoft Windows Vista
  Window System:    Version 6.1 (Build 7600)
  Processor ID:     x86 Family 6 Model 14 Stepping 5, GenuineIntel
  Virtual Machine:  Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
  Default Encoding:  windows-1252

Fault Count: 1

Register State:
  rax = 0000000000000000   rbx = 0000000000000000
  rcx = 0000000000000000   rdx = 0000000000000000
  rbp = 000000000000000f   rsi = 00000000010274b0
  rdi = 00000000010267d0   rsp = 00000000010266c8
   r8 = 7efefefefefefeff    r9 = 7efefefefeff6b6b
  r10 = 0000000039937151   r11 = 8101010101010100
  r12 = 0000000000000001   r13 = 00000000010283d0
  r14 = 000000000f950000   r15 = 0000000000000001
  rip = 0000000072dee8e1   flg = 0000000000010246

Stack Trace:

This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

If it is an official MathWorks function, please
follow these steps to report this problem to The MathWorks so we
have the best chance of correcting it:

The next time MATLAB is launched under typical usage, a dialog box will
open to help you send the error log to The MathWorks. Alternatively, you
can send an e-mail to [email protected] with the following file attached:
    C:\Users\FLUENT\AppData\Local\Temp\matlab_crash_dump.4552

If the problem is reproducible, please submit a Service Request via:
    http://www.mathworks.com/support/contact_us/ts/help_request_1.html

A technical support engineer might contact you with further information.

Thank you for your help. MATLAB may attempt to recover, but even if recovery 
appears successful,
we recommend that you save your workspace and restart MATLAB as soon as 
possible.








Stack Trace:
  [  0] 0000000072DEE8E1              MSVCR90.dll+125153 (strlen+000049)
  [  1] 00000000747144C1              MSVCP90.dll+017601 (std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >+000041)
  [  2] 00000000422E60BF                 clib.dll+2580671 (rdiag_setTitle+2560835)
  [  3] 00000000422E592C                 clib.dll+2578732 (rdiag_setTitle+2558896)
  [  4] 00000000422D0D11                 clib.dll+2493713 (rdiag_setTitle+2473877)
  [  5] 00000000422D06B0                 clib.dll+2492080 (rdiag_setTitle+2472244)
  [  6] 00000000420E00DC                 clib.dll+458972 (rdiag_setTitle+439136)
  [  7] 000000000F951A7F         ctmethods.mexw64+006783 (mexFunction+002111)
  [  8] 000000000F9512EF         ctmethods.mexw64+004847 (mexFunction+000175)
  [  9] 0000000001804FAF               libmex.dll+020399 (mexRunMexFile+000127)
  [ 10] 0000000001802D9C               libmex.dll+011676 (inSwapMexfileReader+000476)
  [ 11] 000000000180305B               libmex.dll+012379 (QueryMLFcnTable_libmex+000491)
  [ 12] 0000000001883440         m_dispatcher.dll+341056 (Mfh_file::dispatch_fh+000336)
  [ 13] 0000000001831B65         m_dispatcher.dll+007013 (Mfunction_handle::dispatch+000021)
  [ 14] 0000000001D9DBF6        m_interpreter.dll+4709366 (inDeletePredictor+064262)
  [ 15] 0000000001DA2283        m_interpreter.dll+4727427 (inDeletePredictor+082323)
  [ 16] 0000000001DA3195        m_interpreter.dll+4731285 (inDeletePredictor+086181)
  [ 17] 0000000001ABF4ED        m_interpreter.dll+1701101 (inConvertToLHSType+1113197)
  [ 18] 0000000001B2AD27        m_interpreter.dll+2141479 (inConvertToLHSType+1553575)
  [ 19] 0000000001B2AE48        m_interpreter.dll+2141768 (inConvertToLHSType+1553864)
  [ 20] 0000000001D010A2        m_interpreter.dll+4067490 (inSetAccelFeatureEnabled+041570)
  [ 21] 000000000195A7AA        m_interpreter.dll+239530 (inRegisterLineNoHook+026506)
  [ 22] 00000000019B274D        m_interpreter.dll+599885 (inConvertToLHSType+011981)
  [ 23] 0000000001986AF9        m_interpreter.dll+420601 (inRegisterInterest+004313)
  [ 24] 0000000001986B25        m_interpreter.dll+420645 (inRegisterInterest+004357)
  [ 25] 0000000001883440         m_dispatcher.dll+341056 (Mfh_file::dispatch_fh+000336)
  [ 26] 0000000001831B65         m_dispatcher.dll+007013 (Mfunction_handle::dispatch+000021)
  [ 27] 0000000001D9DBF6        m_interpreter.dll+4709366 (inDeletePredictor+064262)
  [ 28] 0000000001DA2283        m_interpreter.dll+4727427 (inDeletePredictor+082323)
  [ 29] 0000000001DA3195        m_interpreter.dll+4731285 (inDeletePredictor+086181)
  [ 30] 0000000001ABF4ED        m_interpreter.dll+1701101 (inConvertToLHSType+1113197)
  [ 31] 0000000001B2AD27        m_interpreter.dll+2141479 (inConvertToLHSType+1553575)
  [ 32] 0000000001B2AE48        m_interpreter.dll+2141768 (inConvertToLHSType+1553864)
  [ 33] 0000000001D010A2        m_interpreter.dll+4067490 (inSetAccelFeatureEnabled+041570)
  [ 34] 000000000195A7AA        m_interpreter.dll+239530 (inRegisterLineNoHook+026506)
  [ 35] 00000000019B274D        m_interpreter.dll+599885 (inConvertToLHSType+011981)
  [ 36] 0000000001986AF9        m_interpreter.dll+420601 (inRegisterInterest+004313)
  [ 37] 0000000001986B25        m_interpreter.dll+420645 (inRegisterInterest+004357)
  [ 38] 0000000001883440         m_dispatcher.dll+341056 (Mfh_file::dispatch_fh+000336)
  [ 39] 0000000001831B65         m_dispatcher.dll+007013 (Mfunction_handle::dispatch+000021)
  [ 40] 0000000001D9DBF6        m_interpreter.dll+4709366 (inDeletePredictor+064262)
  [ 41] 0000000001DA2283        m_interpreter.dll+4727427 (inDeletePredictor+082323)
  [ 42] 0000000001DA3195        m_interpreter.dll+4731285 (inDeletePredictor+086181)
  [ 43] 0000000001ABF4ED        m_interpreter.dll+1701101 (inConvertToLHSType+1113197)
  [ 44] 0000000001B2AD27        m_interpreter.dll+2141479 (inConvertToLHSType+1553575)
  [ 45] 0000000001B2AE48        m_interpreter.dll+2141768 (inConvertToLHSType+1553864)
  [ 46] 0000000001D010A2        m_interpreter.dll+4067490 (inSetAccelFeatureEnabled+041570)
  [ 47] 000000000195A7AA        m_interpreter.dll+239530 (inRegisterLineNoHook+026506)
  [ 48] 00000000019B274D        m_interpreter.dll+599885 (inConvertToLHSType+011981)
  [ 49] 0000000001986AF9        m_interpreter.dll+420601 (inRegisterInterest+004313)
  [ 50] 0000000001986B25        m_interpreter.dll+420645 (inRegisterInterest+004357)
  [ 51] 0000000001883440         m_dispatcher.dll+341056 (Mfh_file::dispatch_fh+000336)
  [ 52] 0000000001831B65         m_dispatcher.dll+007013 (Mfunction_handle::dispatch+000021)
  [ 53] 0000000001D9DBF6        m_interpreter.dll+4709366 (inDeletePredictor+064262)
  [ 54] 0000000001DA2283        m_interpreter.dll+4727427 (inDeletePredictor+082323)
  [ 55] 0000000001DA3195        m_interpreter.dll+4731285 (inDeletePredictor+086181)
  [ 56] 0000000001ABF4ED        m_interpreter.dll+1701101 (inConvertToLHSType+1113197)
  [ 57] 0000000001B2AD27        m_interpreter.dll+2141479 (inConvertToLHSType+1553575)
  [ 58] 0000000001B2AE48        m_interpreter.dll+2141768 (inConvertToLHSType+1553864)
  [ 59] 0000000001D010A2        m_interpreter.dll+4067490 (inSetAccelFeatureEnabled+041570)
  [ 60] 000000000195A7AA        m_interpreter.dll+239530 (inRegisterLineNoHook+026506)
  [ 61] 00000000019B274D        m_interpreter.dll+599885 (inConvertToLHSType+011981)
  [ 62] 0000000001986AF9        m_interpreter.dll+420601 (inRegisterInterest+004313)
  [ 63] 0000000001986B25        m_interpreter.dll+420645 (inRegisterInterest+004357)
  [ 64] 0000000001883440         m_dispatcher.dll+341056 (Mfh_file::dispatch_fh+000336)
  [ 65] 0000000001831B65         m_dispatcher.dll+007013 (Mfunction_handle::dispatch+000021)
  [ 66] 000000000199E62B        m_interpreter.dll+517675 (inRunSaveObjFunction+009003)
  [ 67] 00000000019569FC        m_interpreter.dll+223740 (inRegisterLineNoHook+010716)
  [ 68] 0000000001957A3C        m_interpreter.dll+227900 (inRegisterLineNoHook+014876)
  [ 69] 00000000019594FD        m_interpreter.dll+234749 (inRegisterLineNoHook+021725)
  [ 70] 0000000001959692        m_interpreter.dll+235154 (inRegisterLineNoHook+022130)
  [ 71] 000000000195AAC9        m_interpreter.dll+240329 (inRegisterLineNoHook+027305)
  [ 72] 00000000019B274D        m_interpreter.dll+599885 (inConvertToLHSType+011981)
  [ 73] 0000000001986AF9        m_interpreter.dll+420601 (inRegisterInterest+004313)
  [ 74] 0000000001986B25        m_interpreter.dll+420645 (inRegisterInterest+004357)
  [ 75] 0000000001883440         m_dispatcher.dll+341056 (Mfh_file::dispatch_fh+000336)
  [ 76] 0000000001831B65         m_dispatcher.dll+007013 (Mfunction_handle::dispatch+000021)
  [ 77] 0000000001991EA2        m_interpreter.dll+466594 (inEachVisibleName_unsafe+034754)
  [ 78] 000000000194C3F5        m_interpreter.dll+181237 (inEvalC+002037)
  [ 79] 000000000194FDBB        m_interpreter.dll+196027 (inIsCodeBlockComplete+006731)
  [ 80] 0000000001950248        m_interpreter.dll+197192 (inEvalCmdWithLocalReturn+000152)
  [ 81] 00000000017C755A               bridge.dll+030042 (mnInitializeParser+000218)
  [ 82] 00000000017C7FA2               bridge.dll+032674 (mnParser+000450)
  [ 83] 00000000017323C4                  mcr.dll+140228 (mcrInstance::mnParser+000164)
  [ 86] 00000000778DF56D             kernel32.dll+128365 (BaseThreadInitThunk+000013)
  [ 87] 0000000077A12CC1                ntdll.dll+208065 (RtlUserThreadStart+000033)



Original comment by [email protected] on 24 Jun 2011 at 3:59

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I noticed that you are running cantera on a Mac.  Could you please help me 
through the install process.

[email protected]

Original comment by [email protected] on 13 Aug 2011 at 2:14

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I have a similar problem. I compiled and installed Cantera on a 64-bit Windows 
(Vista) box with Python 2.7. When I invoke the "advance" command (on a 
ReactorNet object), the python program crashes (I do not get any tracebacks). 
Strangely, this does not happen in all cases. For example, if run the GRI30 cti 
file, it advances fine. But if I create a test case containing a single 
reaction (say, 2H2+O2 = 2H2O), the python shell crashes. The same test case 
runs fine with the 32-bit Cantera executable for Python 2.6. I am trying to 
debug the C++ code now to get more information that can be added to this bug 
report.

Original comment by [email protected] on 19 Aug 2011 at 3:33

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I'm also have a similar problem with all the Cantera functions where the 
Arrhenius equation has to be evaluated ("ydot" command for example). I have 
installed the proper version of Cantera for Windows 7 64-bit (at least 
according to what is claimed in  
http://stuff.mit.edu/afs/athena/course/2/2.62/www/cantera/install.html). 
Instead of Python I'm using Matlab 2007b. I have no problem as far as I run 
GRI30.cti file. When I try to run mine (2H2+O2 = 2H2O) Matlab crashes without 
any feedbacks. I've also tried to modify the GRI30.cti file in order to have it 
matching the mechanism I'd like to run, but no luck so far.
I didn't have this problem using Cantera still for Matlab2007b but on Windows 
XP 32-bit machine.

Any hints about that? 

Original comment by [email protected] on 13 Sep 2011 at 9:39

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Actually, I debugged this a bit, and found that the 64-bit windows program 
crashes when we run a reaction set that *does not* contain any fall-off and/or 
three-body reactions. If I comment out lines pertaining to 3-body and fall-off 
reactions in the code and then build Cantera, the simplified reaction set runs 
fine. So it seems like there is some problem handling a "NULL" array for the 
three-body and fall-off reactions. I'll post the lines that I had to comment 
out and maybe the dev group can help with this.


Original comment by [email protected] on 14 Sep 2011 at 4:02

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I tried as you suggested, but I still have the same problem. Moreover, it also 
appears if 32-bit version is used. Can you please attach me an example of what 
you did so to reproduce it?

Original comment by [email protected] on 14 Sep 2011 at 11:14

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
What steps will reproduce the problem?
1 Any call within MATLAB to an 'rop*' or 'Rates of Progress' function using the 
default phase of the air.cti file or the attached air-highT.cti file. Note that 
the default phases of gri30.cti and h2o2.cti do function properly, and that all 
4 files function properly when run with Python 2.6.6

2. The test programs, which are modification of the demo files provided by 
Cantera, are attached:
'tut4_mod.m', 'tut5_mod.m', 'tut4_mod.py'


What is the expected output? What do you see instead?
MATLAB crashes with no ouput


What version of the product are you using? On what operating system?
Windows 7 SP1 Home Premium 
Cantera: Installed from cantera-1.8r444-amd64
Matlab: R2010a 7.10.0.499
Python: 2.6.6 64 bit using Numpy 1.6.1 64 bit


Please provide any additional information below.
Comment 7 from "[email protected]" suggests that the crashes are tied 
to a lack of fallof or 3 body reactions, however, all four files that I have 
tried had both three-body and falloff reactions regardless of whether they ran 
successfully or failed.

Original comment by [email protected] on 24 Jan 2012 at 4:40

Attachments:

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I fixed the problems with 3rd body and falloff reactions in r957. Both the 
Matlab and Python examples given by vaughantel1 work for me, so I think this 
will be resolved when the SCons branch is merged into trunk.

Original comment by yarmond on 25 Jan 2012 at 12:11

  • Changed state: Started

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Having the same problems when implementing my own mechanism.

yarmond, how do i implement r947, I cant find GasKinetics.cpp in my 
directories.  Would I just save it in the private folder with the other cpp 
files.  I can find GasKinetics.h, but not .cpp.

Thanks!,
Ben

Original comment by [email protected] on 6 Mar 2012 at 12:52

from cantera.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Ben: you would need to check out the source code from subversion (svn checkout 
http://cantera.googlecode.com/svn/cantera/trunk/ cantera) and compile Cantera 
yourself, or wait for an updated installer to be released in the near future.

Original comment by yarmond on 16 Mar 2012 at 3:03

  • Changed state: Fixed

from cantera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.