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.

CI job is choking on new NumPy memory allocator warnings

See original GitHub issue

Example: https://github.com/scipy/scipy/runs/4005856905?check_suite_focus=true

There’s lots of this:

scipy/interpolate/tests/test_rbf.py ..........                           [ 17%]
Exception ignored in: 'array_dealloc'
Traceback (most recent call last):
  File "/home/runner/.local/lib/python3.10/site-packages/_pytest/unraisableexception.py", line 59, in __exit__
    del self.unraisable
RuntimeWarning: Trying to dealloc data, but a memory policy is not set. If you take ownership of the data, you must also set a memory policy.

This looks like it’s in Pythran code, but nothing changed there - it seems to be due to the new memory allocator in NumPy main. @mattip can you have a look at this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
charriscommented, Nov 2, 2021

I believe the cron jobs don’t run if a build was run in the previous 24 hours, which can be the result of a merge or a deliberate trigger.

1reaction
rgommerscommented, Nov 2, 2021

Hmm odd. Yes you are right, thanks @seberg. It looks like the NumPy nightlies arrive inconsistently, the last 3 uploads were 2, 4 and 9 days ago: https://anaconda.org/scipy-wheels-nightly/numpy/files

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory leak with Numpy arrays and the threaded scheduler
This doesn't happen when I run it with the single-threaded scheduler. Calling gc.collect() doesn't help. Allocating a new large numpy array ...
Read more >
numpy.memmap: bogus memory allocation - Stack Overflow
When you create a memory map, the kernel allocates a new block of addresses within the virtual address space of the calling process...
Read more >
Using Python on Hopper, Carver and Edison - NERSC
Python base package is installed in /usr/common/ usg/python/x.y.z (x.y.z is a version number). • Other individual packages are installed in ...
Read more >
12.010 Computational Methods of Scientific Programming
Modules; File IO; Time; Exceptions; Parsing command line options/arguments; CGI programming; Database access; Math Modules numpy and scipy ...
Read more >
Python for Scientists and Engineers - eScholarship
SciPy provides additional functionality for NumPy arrays including toolboxes for IO, linear algebra, statistics, optimization, integration, ...
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