Skip to content
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

gaussian_filter seg faults on float16 numpy arrays #8207

Closed
arngorf opened this issue Dec 11, 2017 · 3 comments
Closed

gaussian_filter seg faults on float16 numpy arrays #8207

arngorf opened this issue Dec 11, 2017 · 3 comments
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.ndimage
Milestone

Comments

@arngorf
Copy link

arngorf commented Dec 11, 2017

<<Please describe the issue in detail here, and for bug reports fill in the fields below.>>

Using gaussian_filter from scipy.ndimage.filters on numpy arrays with dtype=np.float16 causes a segmentation fault.

Reproducing code example:

from scipy.ndimage.filters import gaussian_filter
import numpy as np
gaussian_filter(np.array([1],dtype=np.float16), 1)

Error message:

Segmentation fault (core dumped)

Scipy/Numpy/Python version information:

('1.0.0', '1.13.3', sys.version_info(major=2, minor=7, micro=14, releaselevel='final', serial=0))
1.0.0 1.13.3 sys.version_info(major=3, minor=6, micro=3, releaselevel='final', serial=0)

@WarrenWeckesser WarrenWeckesser added defect A clear bug or issue that prevents SciPy from being installed or used as expected prio-high scipy.ndimage labels Dec 12, 2017
@WarrenWeckesser WarrenWeckesser added this to the 1.0.1 milestone Dec 12, 2017
@WarrenWeckesser
Copy link
Member

Confirmed with master (version '1.1.0.dev0+4019b40').

I have optimistically added this issue to the 1.0.1 milestone. Seg. faults are nasty, so I hope someone can work on this for the next point release.

@oleksandr-pavlyk
Copy link
Contributor

@WarrenWeckesser Who is an appropriate person to ping for a review please? Thanks.

@WarrenWeckesser
Copy link
Member

It looks like @jaimefrio was the last person to do significant work in ndimage, so he might be able to comment; Jaime, consider yourself pinged. :) Got a few spare cycles for a review?

oleksandr-pavlyk added a commit to oleksandr-pavlyk/scipy that referenced this issue Jan 23, 2018
oleksandr-pavlyk added a commit to oleksandr-pavlyk/scipy that referenced this issue Jan 24, 2018
@pv pv closed this as completed in #8215 Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.ndimage
Projects
None yet
Development

No branches or pull requests

3 participants