Pytest fails with access violation?

Hi Petrus,

These errors occuring in pytest runs are annoying. Mostly because they are unstable, and faulthandler could be useful in some cases. Is it possible to fix them?

For example, this simple test gives 2 faults on Windows with rather high probability (more than 50% in my case). 1st fault is on initVM() call, 2nd is on getITRF() call.

import orekit_jpype
orekit_jpype.initVM()
orekit_jpype.pyhelpers.setup_orekit_data()
from org.orekit.frames import FramesFactory
from org.orekit.utils import IERSConventions


def test_access_violation():
    FramesFactory.getITRF(IERSConventions.IERS_2010, True)

I use
python 3.12.*
pytest 8.3.*
orekit-jpype==12.2.*

On Linux we’ve had similar issues, but there they lead to test fail. Unfortunately now I can’t repeat that. If it occur later I’ll add test here.