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:

  1. providing integrated access of numerical solvers apache.commons (which nonstiff solvers)
  2. 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: simple ode

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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -