New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bus error in contour on OSX in master #4222
Comments
I can't reproduce this on the linux, which backend are you using? |
I can reproduce in on OSX I spent some time today trying to figure out why with no luck. As far as I can see it only happens when the array is masked and with the new c++ contour code. I think that I have narrowed it down to the PyArg_ParseTuple call: PyArg_ParseTuple(args, "O&O&O&O&il",
&x.converter_contiguous, &x,
&y.converter_contiguous, &y,
&z.converter_contiguous, &z,
&mask.converter_contiguous, &mask,
&corner_mask,
&chunk_size)) In PyQuadContourGenerator_init (_contour_wrapper.cpp) I am guessing that this may relate to I got the following not very helpfull backtrace:
|
I don't think this relates to the backend. It happens to me too when building the docs with the bare Agg backend (How I originally noticed it while trying to fix the Sphinx issues) Based on the above traceback I did some experiments. Removing the Py_XDECREF(m_arr) call from the destructor of array_view (~array_view) does seem to resolve it. While this is naturally not a solution it does seem to prevent the Bus error. I guess that either the mask array is destroyed to early. |
If it is the XDECREF call I am thinking of, @mdboom changed it to that On Sun, Mar 15, 2015 at 6:30 PM, Jens Hedegaard Nielsen <
|
Fixed by #4229 |
The test of the new contour code is causing a
Bus error: 10
for me on OSX 10.9.5, with both python 2.7.9 and 3.4.3 installed via homebrew. Here is the code as a standalone script sufficient to trigger the error:The text was updated successfully, but these errors were encountered: