memory issues with 2.1.0 #2284
Replies: 3 comments 6 replies
-
Such non-deterministic crashes can indeed be hard to debug. As a start, would it be possible to provide a script that (at least sometimes) gives the crash for you? So then we could see if we can reproduce the issue as well. One thing you could try is running the code under |
Beta Was this translation helpful? Give feedback.
-
here a minimal test script to reproduce:
calling contourpy2geojson just one time does not cause the issue, calling in repeatedly does |
Beta Was this translation helpful? Give feedback.
-
Thanks for providing that reproducer!
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
we have some code which writes contourpy contours to geojson files and is run in a venv
with shapely 2.1.0 we are suddenly getting memory corruption issues for given parameter setups leading to segmentation faults with various errors like
malloc(): unaligned tcache chunk detected
corrupted double-linked list
double free or corruption (out)
these errors do not appear to happen consistently within a given parameter setup so we cannot pin them down to a specific line, but they happen in a function that manipulates a contourpy
contour_generator
object via several shapely functions (from_ragged_array
,set_precision
,unary_union
,to_geojson
) to write a geojson file....the same exact setup with shapely 2.0.6 or 2.0.7 does not lead to any errors (keeping the rest of the packages on the same version, including contourpy==1.3.2 and numpy==1.26.4)
I am wondering if the optimization of
from_ragged_array
in 2.1.0 could play a role here and if someone has any suggestions on how to investigate this further...for reference here is the venv pip list, shapely excluded
Beta Was this translation helpful? Give feedback.
All reactions