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

memleak fix: gst_tensor_meta_info_parse_memory usage @open saseme 12/06 19:00 #4238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

myungjoo
Copy link
Member

@myungjoo myungjoo commented Sep 6, 2023

The input GstMemory given to gst_tensor_meta_info_parse_memory should be deallocated (unref) by the caller.

There are a few elements that do not call unref it, which often create a huge memory leak with converter/filter.

Leave a Doxygen note that the caller should unref it, too.

Another issue is that we have situation like

  1. collect_pad->buf is set
  2. someone gets the buf and replace it with buf2
  3. collect_pad->buf is unchanged and becomes dangling.
    Thus, let 2. not replace it, but update it.

@taos-ci
Copy link
Collaborator

taos-ci commented Sep 6, 2023

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #4238. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

@taos-ci
Copy link
Collaborator

taos-ci commented Sep 6, 2023

:octocat: cibot: @myungjoo, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer/ci/repo-workers/pr-checker/4238-202309061711010.86985611915588-ef35386a42d6d42d15d2cda9f7707426fd68d464/.

@taos-ci
Copy link
Collaborator

taos-ci commented Sep 6, 2023

:octocat: cibot: @myungjoo, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer/ci/repo-workers/pr-checker/4238-202309061736500.80518698692322-ea87f67240f6803b1192ebfd9cfd0ba791195883/.

@myungjoo myungjoo changed the title memleak fix: gst_tensor_meta_info_parse_memory usage memleak fix: gst_tensor_meta_info_parse_memory usage @open saseme 10/11 08:07 Oct 10, 2023
@myungjoo myungjoo force-pushed the fix/gst_mem_leak branch 2 times, most recently from 726df0f to 75949ed Compare October 11, 2023 11:55
@myungjoo myungjoo removed the bug Something isn't working label Oct 11, 2023
@taos-ci
Copy link
Collaborator

taos-ci commented Oct 11, 2023

:octocat: cibot: @myungjoo, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer/ci/repo-workers/pr-checker/4238-202310112055590.52832698822021-75949edbf4305c66e02643616b165c05108f18c3/.

@taos-ci
Copy link
Collaborator

taos-ci commented Oct 11, 2023

:octocat: cibot: @myungjoo, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer/ci/repo-workers/pr-checker/4238-202310112123050.62749004364014-3ad9acda4823c30e051ad30e306be2df704f30aa/.

The input GstMemory given to gst_tensor_meta_info_parse_memory
should be deallocated (unref) by the caller.

There are a few elements that do not call unref it, which
often create a huge memory leak with converter/filter.

Leave a Doxygen note that the caller should unref it, too.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
@myungjoo myungjoo changed the title memleak fix: gst_tensor_meta_info_parse_memory usage @open saseme 10/11 08:07 memleak fix: gst_tensor_meta_info_parse_memory usage @open saseme 12/06 19:00 Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants