-
Notifications
You must be signed in to change notification settings - Fork 26
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
CPLDestroyMutex: Error = 16 (Device or resource busy) #241
Comments
Not directly. Something is perhaps not closed in the right order or something like that. Do you have a small example that we can start testing this out? |
The error message appears with @visr have you already look into the possibility to make for Julia something equivalent of Python's |
I think we have that, and it's enabled by default. Evey time you get a If you can reliably trigger the issue, perhaps the quickest way to locate it is with some print statements in between the tests. Not sure why there is a difference between how you run the tests, unless the session and hence the handles are kept alive in one case but not the other. |
I have browsed the code of GDAL.jl/src/error.jl and GDAL.jl/gen/epilogue.jl, it is a really nice work you did there. By commenting all
|
Thanks! Ok so probably the issue is in test_gdalutilities.jl. The |
Narrowing a bit more, it happens in tests |
Looks like this is not in a do-block that automatically closes it, nor is it manually closed: ArchGDAL.jl/test/test_gdalutilities.jl Line 186 in 8f820c7
|
Well it also happens here with a dataset closed with a do block : ArchGDAL.jl/test/test_gdalutilities.jl Lines 5 to 33 in 8f820c7
|
This is the same file that is opened several times. Could it be that the handle is left open at line 186 causes issues at line 6 in a subsequent run? |
Ok I will move everything I can to a do block form, to see what happens. |
@visr I will make a PR to share code, because the issue seems to be trickier than expected. |
This is something that happens on the exit of many tests over at GeoArrays, but I see the same here in the tests:
https://github.com/yeesian/ArchGDAL.jl/runs/3502488899?check_suite_focus=true#step:6:67
I'd say this is something that shouldn't happen, but I'm not sure. @visr any thoughts?
The text was updated successfully, but these errors were encountered: