Skip to content
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

Resolve swig memory leak warning on OSR object #23

Closed
bpurinton opened this issue Jul 3, 2024 · 2 comments · Fixed by #26
Closed

Resolve swig memory leak warning on OSR object #23

bpurinton opened this issue Jul 3, 2024 · 2 comments · Fixed by #26

Comments

@bpurinton
Copy link
Contributor

When tests run, this error occurs:

swig/python detected a memory leak of type 'OSRSpatialReferenceShadow *', no destructor found.

Get to the bottom of it and resolve the problem.

@ShashankBice
Copy link
Member

Yeah this is a recurring issue which is associated with pygeotools handling of gdal and circular imports. David has some pointers on it.
It is most problematic for python files which print output to screen, the output which is passed to other command line scripts during stereo processing. I wrote some downstream bash parsing which clears the output of this swig error and passes the correct variable to the cli script. But we should fix upstream.

Cheers,
Shashank

@bpurinton
Copy link
Contributor Author

Okay, this should be resolved on its own then when I finish the refactoring around Issue #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants