exception - JAVA JNA: EXCEPTION_ACCESS_VIOLATION (0xc0000005) after multiple successful calls of the same native C .dll libraries -
i'm using java-based modelling platform , i'm trying solve ordinary differential equations (odes). platform i'm using provides 2 wrapper functions:
- providing integrated access of numerical solvers apache.commons (which nonstiff solvers)
- providing native access non-stiff solver (i.e. cvode sundials package) written in c 2 shared libraries (.dll)
while first option provides no difficulties , runs expected, second option results in exception_access_violation (0xc0000005) crash after running several successful calls of native solver (full error log long can find here)
i've created small example of 3 simple ode's reset original conditions after threshold reached. output correctly plotted here:
while first option continues running until manually stop process, native solver crashes after apparently random amount of integration steps.
i'm in need of successful access native solver because have more complex problem requires stiff solvers provides.
i'll provide list of reasons not causing it
- no hardware failure (memory has been diagnosed confirm this)
- i tried running platform both within eclipse , without eclipse, don't think it's eclipse
- the c libraries used , correct
- both .dll libraries, java , operating system 64 bit
- not enough memory (i tried both 3 gb , 14 gb, both crash)
sadly, virtually impossible me provide reproducible example code modelling platform (i.e. groimp) native solver libraries quite complex (and not own code).
the question causing these crashes , can try resolve them or investigate problem in more detailed , constructive manner.
Comments
Post a Comment