question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation fault with Numpy 1.17.0

See original GitHub issue

Same problem as https://github.com/ejeschke/ginga/pull/764#issuecomment-523639951 but it appears to be a problem with master and not the pull request itself.

A run with gdb wasn’t too helpful either.

(gdb) where
Python Exception <class 'gdb.MemoryError'> Cannot access memory at address ...: 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ejeschkecommented, Aug 22, 2019

p.s. If it is indeed a bug of Numpy, does that mean we have to revert c30ef77 when Numpy 1.17.1 is out, or just apply the int casting for 1.17.0?

I think it will be fine to keep the casting. It won’t hurt in case that changes in the future sometime (again).

0reactions
pllimcommented, Aug 22, 2019

No failures for the existing tests with Numpy 1.17.0.

============================= test session starts ==============================
platform linux -- Python 3.7.3, pytest-5.0.1, py-1.8.0, pluggy-0.12.0

Running tests with ginga version 3.0.dev2221.
Running tests in ginga doc.

Date: 2019-08-22T16:40:05

Platform: Linux-3.10.0-1062.el7.x86_64-x86_64-with-redhat-7.7-Maipo

Executable: .../miniconda/envs/py37/bin/python

Full Python Version: 
3.7.3 | packaged by conda-forge | (default, Jul  1 2019, 21:52:21) 
[GCC 7.3.0]

encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15

Numpy: 1.17.0
Scipy: 1.3.0
Matplotlib: 3.1.1
Pandas: 0.24.2
Astropy: 4.0.dev25566
scikit-image: not available
astropy_helpers: 3.2rc1
Using Astropy options: remote_data: none.

rootdir: ..., inifile: setup.cfg
plugins: doctestplus-0.3.0, remotedata-0.3.1, openfiles-0.3.2, arraydiff-0.3, ci-watson-0.0.0.dev76+g4b73d3b5
collected 148 items                                                            

ginga/misc/tests/test_Callback.py .........................              [ 16%]
ginga/misc/tests/test_Future.py ......................                   [ 31%]
ginga/misc/tests/test_Task.py ........                                   [ 37%]
ginga/tests/test_ImageView.py ..                                         [ 38%]
ginga/tests/test_aimg.py ....                                            [ 41%]
ginga/tests/test_cmap.py ........                                        [ 46%]
ginga/tests/test_colordist.py ........                                   [ 52%]
ginga/tests/test_colors.py ..................                            [ 64%]
ginga/tests/test_imap.py ........                                        [ 69%]
ginga/tests/test_iohelper.py ..                                          [ 70%]
ginga/tests/test_iqcalc.py ....                                          [ 73%]
ginga/tests/test_wcs.py sss..sss..sss..sss.....................          [100%]

=================== 136 passed, 12 skipped in 14.67 seconds ====================
Read more comments on GitHub >

github_iconTop Results From Across the Web

Incompatibility with numpy 1.17 · Issue #70 · lmcinnes ... - GitHub
which now results in a segfault. zsh: segmentation fault (core dumped) python -c 'import pynndescent'. The full environment ends up being.
Read more >
NumPy 1.8.1 Release Notes — NumPy v1.25.dev0 Manual
gh-4093: Loading compressed .npz file fails under Python 2.6.6. gh-4138: segfault with non-native endian memoryview in python 3.4.
Read more >
Why numpy gave "segmentation fault" upon import and pydoc?
I suggest you try setting up a python virtual environment using virtualenv and the install numpy in the environment and see if the...
Read more >
Error Message "Please upgrade numpy to >= xxx to use this ...
Dependency conflicts occur when other packages are installed. There are special requirements on the NumPy library. However, NumPy cannot be uninstalled.
Read more >
Segmentation fault - PyTorch Forums
Every time at 95-99% of first epoch, the system crashed with little information (Segmentation fault). I am sure the GPU and CPU memory...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found