-
Notifications
You must be signed in to change notification settings - Fork 142
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
EXCEPTION_ACCESS_VIOLATION on Windows #627
Comments
I've been trying to read the libhdf5 docs, but it doesn't seem to make totally clear how this memory should be freed. Are we expected to call |
I think that this memory is meant to be freed by calling H5D_VLEN_RECLAIM so it looks to me like |
In the code for handling compound types I used
so that the julia array is completely separate from the hdf5 allocated memory and then I call the reclaim function. I guess it should be done like this for all vlen types. |
Apparently it isn't safe to call |
Is there anything we can do in that case to fix this ? |
The options are either to get HDF5 to use the Julia |
@kleinhenz any chance you would like to open a PR with that change ? Seems sensible to make that change here |
I've run into an
EXCEPTION_ACCESS_VIOLATION
that I can reproduce on Windows 10, but not my Mac. I'm unfortunately unable to share the file/code to reproduce it.The problem is connected to
unsafe_wrap
(discovered through the assistance of @JeffBezanson) and I was able to get past the error by changing the keyword arg toown=false
in the two functions below:HDF5.jl/src/HDF5.jl
Lines 1541 to 1546 in 1d74013
Does
own=false
likely cause a memory leak here?The text was updated successfully, but these errors were encountered: