Nested display leaks its EGLContext
Bug #1418910 reported by
Alexandros Frantzis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
Low
|
Alexandros Frantzis | ||
mir (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Because the EGLContext is current when we call eglTerminate() the context isn't really freed at that point and we end up leaking the EGLContext (a "still reachable" leak). Since we don't destroy and recreate the NestedDisplay (at least not currently) it's just memory leaked at process exit. Still, it would be good to fix, if only to clean up the valgrind output a bit and ease detection of other leaks.
A side note: The way the EGL resources are managed in NestedDisplay leaves a lot to be desired (and could lead to other leaks in case the display is reconfigured), but that's a problem for another bug/MP.
Related branches
lp://staging/~afrantzis/mir/fix-1418910-nested-egl-context-leak
- Alan Griffiths: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
- Robert Carr (community): Approve
-
Diff: 201 lines (+76/-19)6 files modifiedsrc/server/graphics/nested/nested_display.cpp (+2/-0)
tests/include/mir_test_doubles/mock_egl.h (+4/-0)
tests/mir_test_doubles/mock_egl.cpp (+10/-1)
tests/unit-tests/graphics/mesa/test_display_multi_monitor.cpp (+4/-0)
tests/unit-tests/graphics/nested/test_nested_display.cpp (+38/-18)
tests/unit-tests/graphics/offscreen/test_offscreen_display.cpp (+18/-0)
Changed in mir: | |
milestone: | none → 0.12.0 |
Changed in mir: | |
milestone: | 0.12.0 → 0.13.0 |
Changed in mir (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in mir: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.12.0