Skip to content

[Simulation.Core] WorkerThread: fix memory leak/resource retention#6125

Open
fredroy wants to merge 2 commits into
sofa-framework:masterfrom
fredroy:update_scheduler_dtor_leak
Open

[Simulation.Core] WorkerThread: fix memory leak/resource retention#6125
fredroy wants to merge 2 commits into
sofa-framework:masterfrom
fredroy:update_scheduler_dtor_leak

Conversation

@fredroy
Copy link
Copy Markdown
Contributor

@fredroy fredroy commented May 27, 2026

In WorkerThread, the task destructor was commented. (???)
As of now, the task is only deallocated in memory but the dtor is not called thus its resources are not freed -> memory leak

For now, I am just adding a test illustrating/proving the bug and then will push the fix later


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request pr: test PR adding test(s) in SOFA pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI labels May 27, 2026
@fredroy fredroy force-pushed the update_scheduler_dtor_leak branch from bd2ff79 to ef20bb1 Compare May 27, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request pr: test PR adding test(s) in SOFA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant