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

fix memory leak on calls to capture.transformed_ir #125

Merged

Conversation

lpasselin
Copy link
Collaborator

@lpasselin lpasselin commented May 19, 2021

fix for #123

We were returning with "O" instead of "N", which incremented the reference count to the transformed arrays once too much.

@lpasselin lpasselin changed the title cleanup and fix fix memory bug with calls to capture.transformed_ir May 19, 2021
@lpasselin lpasselin changed the title fix memory bug with calls to capture.transformed_ir fix memory leak on calls to capture.transformed_ir May 19, 2021
@codecov
Copy link

codecov bot commented May 19, 2021

Codecov Report

❗ No coverage uploaded for pull request base (develop@6865de7). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #125   +/-   ##
==========================================
  Coverage           ?   86.47%           
==========================================
  Files              ?       10           
  Lines              ?      710           
  Branches           ?        0           
==========================================
  Hits               ?      614           
  Misses             ?       96           
  Partials           ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6865de7...b9024b2. Read the comment docs.

@lpasselin lpasselin merged commit 4214011 into etiennedub:develop May 19, 2021
@lpasselin lpasselin deleted the bugfix/transformed-ir-memory branch May 19, 2021 21:27
lpasselin added a commit that referenced this pull request May 19, 2021
* fix install fail on recent python with python_version requirement

* Add functions to access system timestamps for each image (#122)

* fix memory usage problem for calls to capture.transformed_ir (#125)

* version 1.2.4

Co-authored-by: Johan von Forstner <[email protected]>
@lpasselin lpasselin mentioned this pull request Aug 7, 2021
lpasselin added a commit that referenced this pull request Aug 7, 2021
* fix install fail on recent python with python_version requirement

* Add functions to access system timestamps for each image (#122)

* fix memory usage problem for calls to capture.transformed_ir (#125)

* version 1.2.4

* Adding a context manager for playback objects (#130)


* Added support for with statements

Co-authored-by: David Dunn <[email protected]>

* Windows sdk autodetection (#132)

* Autodetecting Kinect SDK for windows

* Fixes

* Fixes

* DLL Autodetection

* Latest fixes

* update version

* rephrase readme

* refactor and add K4A_DLL_DIR

* minor readme change

* rename loader to module

* fix multiline string

* Update module.py

fix lint

* Minor fix

Co-authored-by: Louis-Philippe Asselin <[email protected]>

* Add develop branch for ci target (#139)

Co-authored-by: Johan von Forstner <[email protected]>
Co-authored-by: Louis-Philippe Asselin <[email protected]>
Co-authored-by: David Dunn <[email protected]>
Co-authored-by: David Dunn <[email protected]>
Co-authored-by: Ilya Gruzinov <[email protected]>
lpasselin added a commit that referenced this pull request Aug 7, 2021
* fix install fail on recent python with python_version requirement

* Add functions to access system timestamps for each image (#122)

* fix memory usage problem for calls to capture.transformed_ir (#125)

* version 1.2.4

* Adding a context manager for playback objects (#130)


* Added support for with statements

Co-authored-by: David Dunn <[email protected]>

* Windows sdk autodetection (#132)

* Autodetecting Kinect SDK for windows

* Fixes

* Fixes

* DLL Autodetection

* Latest fixes

* update version

* rephrase readme

* refactor and add K4A_DLL_DIR

* minor readme change

* rename loader to module

* fix multiline string

* Update module.py

fix lint

* Minor fix

Co-authored-by: Louis-Philippe Asselin <[email protected]>

* Add develop branch for ci target (#139)

* rename 1.2.5 to 1.3.0

Co-authored-by: Johan von Forstner <[email protected]>
Co-authored-by: Louis-Philippe Asselin <[email protected]>
Co-authored-by: David Dunn <[email protected]>
Co-authored-by: David Dunn <[email protected]>
Co-authored-by: Ilya Gruzinov <[email protected]>
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 this pull request may close these issues.

1 participant