Error related to the interaction between Orekit and the PyCharm debugger. Process finished with exit code -1073741819 (0xC0000005)
I am new to the Orekit community, not sure if this is more relevant to Orekit or PyCharm. Anyways, here is my problem. While I try to run the simple code as added below, in the latest version of PyCharm IDE.
import orekit
vm = orekit.initVM()
from orekit.pyhelpers import setup_orekit_curdir
# from orekit.pyhelpers import absolutedate_to_datetime
setup_orekit_curdir()
from org.orekit.orbits import KeplerianOrbit, PositionAngle, OrbitType
from org.orekit.frames import FramesFactory
from org.orekit.utils import Constants
from org.orekit.propagation.analytical import KeplerianPropagator
from org.orekit.time import AbsoluteDate, TimeScalesFactory
# Define epoch times
utc = TimeScalesFactory.getUTC()
initialDate = AbsoluteDate(2020, 1, 1, 0, 0, 00.000, utc)
# Define the Kepler elements for the orbit
k_orbit = KeplerianOrbit(24464560.0, # Semimajor Axis (m)
0.7311, # Eccentricity
0.122138, # Inclination (radians)
3.10686, # Perigee argument (radians)
1.00681, # Right ascension of ascending node (radians)
0.048363, # Anomaly
PositionAngle.MEAN, # Sets which type of anomaly we use
FramesFactory.getEME2000(),
# The frame in which the parameters are defined (must be a pseudo-inertial frame)
initialDate, # Sets the epoch of the orbital parameters
Constants.WGS84_EARTH_MU) # Sets the central attraction coefficient (m³/s²)
# Propagate 48 hours
propagator = KeplerianPropagator(k_orbit)
proporb = propagator.propagate(initialDate, initialDate.shiftedBy(3600.0 * 48))
# Initial Cartesian state in meters, meters/second
pvt1 = OrbitType.CARTESIAN.convertType(k_orbit).pVCoordinates
# Final Cartesian state in meters, meters/second
pvt2 = OrbitType.CARTESIAN.convertType(proporb.orbit).pVCoordinates
The code works great if I run it as a single .py
file, but when I run it in the PyCharm debugger mode, at this specific line utc = TimeScalesFactory.getUTC()
, the debugger exits with the error Process finished with exit code -1073741819 (0xC0000005). Can anyone help with the valid reason for this exit error?