-
Notifications
You must be signed in to change notification settings - Fork 21
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
h5py reference counting bug with release 1.3.7 #216
Comments
Yes, it was for performance. Otherwise we have to reload the hashtable from the file every time we write to a given dataset. However, for me, I still get the error even if I remove the caching. It looks like this is the same sort of bug as #162. The issue doesn't occur for me in h5py version 3.4.0. IIRC, the conclusion from that issue is that the bug is harmless because it only happens when the file is being closed, so you can work around it by catching it when closing the file, similar to #178. |
Let me try again. The bug is not happening every time, maybe I just got a false negative.
I think this might be our best option here, we should upgrade to a newer version of |
With your reproducer script and h5py 2.10, I also see this in 1.3.6 and 1.3.5. I suspect the spuriousness of issue led to an invalid git bisection. If it's the same issue as before, small changes can make the problem appear to go away, but only because they happen to change the state of the garbage collector in a way that avoids the problem (it's more or less a race condition). |
If anything, we may want to bisect the change in h5py that fixes this. Let me know if you want me to do this. I don't know if it is exactly the same thing that fixed the other problem that fixed this or if it is some other change. IIRC you were backporting the relevant h5py fix from the other issue, but I could be wrong about that. |
With the changes in 1.3.7 we are sporadically getting the following error:
I have tracked this down to this change
e2509ae
which changes the way
Hashtable
is cached.lru_cache
in the first place? I assume this addresses some performance problem?h5py.File
f
invalid anyway?Below is a reproducer which seems to cause this to happen with high probability:
The text was updated successfully, but these errors were encountered: