Opened 14 years ago

Closed 14 years ago

#7329 closed defect (fixed)

Mythfrontend memory leak using OpenGL painter

Reported by: tralph11@… Owned by: stuartm
Priority: minor Milestone: unknown
Component: MythTV - User Interface Library Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I've noticed a fairly noticeable memory leak when using the OpenGL painter. Each leak occurs when I watch recordings. It doesn't leak during the recording but when I enter and leave playback of the recording. The leak seems to eat about 1% (~20MB) of my memory each time I watch a recording. When using the Qt painter no leak is observed. I tried different themes and OSD themes but they all experience the leak. In addition I also tried switching between software and vdpau video decoding/rendering without any difference.

I've compiled a debug build and ran under Valgrind.

Below is my current set-up

  • Theme: Mythcenter-wide
  • OSD: Metallurgy
  • Compile Options:

MythTV Version : 22464M MythTV Branch : branches/release-0-22-fixes Network Protocol : 50 Library API : 0.22.20091008-1 QT Version : 4.4.3 Options compiled in:

linux release using_oss using_alsa using_pulse using_backend using_directfb using_dvb using_firewire using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_libfftw3 using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg

Attachments (2)

valgrind_opengl_memleak.log (348.5 KB) - added by tralph11@… 14 years ago.
valgrind log using --leak-check=full --show-reachable=yes while loading mythfrontend, briefly watching one recording and then exiting all the way out
mfe_opengl_memleak.log (6.9 KB) - added by tralph11@… 14 years ago.
mythfrontend log during valgrind session

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by tralph11@…

Attachment: valgrind_opengl_memleak.log added

valgrind log using --leak-check=full --show-reachable=yes while loading mythfrontend, briefly watching one recording and then exiting all the way out

Changed 14 years ago by tralph11@…

Attachment: mfe_opengl_memleak.log added

mythfrontend log during valgrind session

comment:1 Changed 14 years ago by danielk

Status: newinfoneeded_new

I can not reproduce this with either the OpenGL painter or the Qt painter with XVideo video renderer. But I can produce a ~15MB memory growth per playback using the VDPAU video renderer when using either painter.

Are you using the VDPAU video renderer?

comment:2 Changed 14 years ago by danielk

Resolution: fixed
Status: infoneeded_newclosed

(In [22499]) Fixes #7329. Backport of [22496], confirmed working by elmojo.

Note: See TracTickets for help on using tickets.