Repository navigation
Replies: 2 comments 1 reply
|
Dear @angchhh, thanks for reaching out - but I don't think that this is a Parcels issue. You didn't |
|
The exit code is the useful part here, and it rules out both "a Parcels bug" and "a matplotlib bug" before anyone opens a debugger.
A process that dies this way is terminated by the Windows loader, not by Python — which is exactly why you get a bare exit code and no traceback, and why Why a Parcels environment in particularActivating a conda env puts
Narrowing it down in a few commandsFirst, name the offending module instead of guessing. Windows Event Viewer does it for you:
Then: python -m pip check
conda list --show-channel-urls | findstr /I "mkl hdf5 netcdf zlib libpng freetype libxml2 libcurl"
where.exe hdf5.dll netcdf.dll mkl_rt.dll zlib.dllIf several different directories come back from python -c "import psutil; [print(m.path) for m in psutil.Process().memory_maps()]"The reliable tool, though, is Process Monitor (Sysinternals): filter Then bisect the environment — that's the part that actually resolves it: conda create -n mplonly -c conda-forge python=3.12 matplotlib=3.10
conda activate mplonly
python -c "import matplotlib.pyplot as plt; plt.plot([1,2]); plt.savefig('t.png'); print('ok')"
Two extra checks that cost nothing:
On the package sideTwo things would genuinely help, and neither is "blame the user's env":
@erikvansebille's reading of the symptom was right, but "you're not importing parcels" describes when it happens, not what it is. If someone can paste |
Uh oh!
There was an error while loading. Please reload this page.
Question
Question
On Windows, any matplotlib plotting in the conda environments where I installed Parcels (both v4 and v3) terminates the Python process with exit code -1066598273 (0xC06D007F), with no Python traceback. The same kind of plotting script works normally in my other conda environments.I’ve tried several things but still can’t figure out what’s wrong.
Supporting code/error messages
# Paste your code within this blockimport matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.savefig('test.png')
print("ok")
-1066598273 (0xC06D007F)
All reactions