maliput / maliput/delphyne_gui

Track down memory leaks on RenderWidget exit

Open
#182 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If you run the visualizer under valgrind, you see that the RenderWidget currently leaks a lot of memory. Most of that is cleanup down in the ign-rendering layer. There was an earlier attempt to cleanup some of that memory here: https://github.com/ToyotaResearchInstitute/delphyne/blob/master/visualizer/RenderWidget.cc#L169 , but that seems to cause a hang somewhere down in the ogre library. To really get rid of the memory leaks, we should do the following:

  1. Re-enable the cleanup call pointed out above, and track down the source of the hang.
  2. Find out where the other leaking memory is going to. From my brief look at it, a bunch of it was because there were a lot of references to shared_ptr's within ign-rendering that were never released, so we probably need to figure out those references and when to release them.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the visualizer under Valgrind and inspect the cleanup call at visualizer/RenderWidget.cc line 169. Re-enable that call, investigate the resulting hang in the Ogre library, then trace remaining ign-rendering shared_ptr references. Done means the hang is resolved and the reported memory leaks are cleaned up.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.