Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Reference count error detected: an attempt was made to deallocate #61

Closed
EFalco opened this issue Jun 9, 2015 · 4 comments
Closed

Reference count error detected: an attempt was made to deallocate #61

EFalco opened this issue Jun 9, 2015 · 4 comments
Labels

Comments

@EFalco
Copy link

EFalco commented Jun 9, 2015

A new warning, not sure how bad it is:

tero 867> lemon diffphot SDSS1004-phot1.LEMONdB SDSS1004-diff1.LEMONdB

Making a copy of the input database... done.
There are 4299 stars in the database

Loading photometric information... done.
44%[===============================> ]**
Light curves for the R filter will now be generated.
Loading photometric information... done.
44%[===============================> ]*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
*** Reference count error detected: 
44%[===============================> ]*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
44%[===============================> ]*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
*** Reference count error detected: 
an attempt was made to deallocate 13 (g) ***
....

This keeps repeating over and over.

@vterron vterron changed the title Reference count error??? Reference count error detected: an attempt was made to deallocate Jun 10, 2015
@vterron
Copy link
Owner

vterron commented Jun 10, 2015

I had never seen a warning like this one — in fact, it seems to be so rare that there is not even much information about it online. From what Travis Oliphant explained on the [Numpy-discussion] mailing list in 2007, this seems to be a bug ("It's not really a Python error but a logging. The code won't let you deallocate the built-ins, but it will tell you that something tried to").

What NumPy version are you running?

$ python -c "import numpy; print numpy.__version__"

@EFalco
Copy link
Author

EFalco commented Jun 10, 2015

numpy 1.9.1

@vterron
Copy link
Owner

vterron commented Jun 11, 2015

That's a very recent release of NumPy, so I think that if it were merely a problem with that version we would already have seen this — a lot of people, including myself, are running version 1.9.1. We should figure this out, but in the meantime do not worry much about it: this seems to be just a logging error, or at least that is what I understood reading the thread on the NumPy mailing list.

May you please run diffphot again, this time with the -vvv flag, and paste the output to GitHub Gist or a similar service? It is probably going to be a lot of text, so you may want to run something like the following command — note the redirection from stderr to stdout:

lemon diffphot -vvv SDSS1004-phot1.LEMONdB SDSS1004-diff1.LEMONdB 2>&1 | tee diffphot_output

@stale
Copy link

stale bot commented Oct 16, 2020

Thanks for contributing to this issue. As it has been 180 days since the last activity, we'll be automatically closing the issue soon. This is often because the request was already solved in some way and it just wasn't updated or it's just no longer relevant. If that's not the case, please respond here within the next 30 days to keep it open. You can read more here: https://github.com/probot/stale#is-closing-stale-issues-really-a-good-idea.

@stale stale bot added the stale label Oct 16, 2020
@stale stale bot closed this as completed Nov 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants