← Back to team overview

desktop-packages team mailing list archive

[Bug 1227449] Re: possible memory leaks in the OpenGL plugin

 

The attachment "compiz-fix-opengl-leak.patch" seems to be a patch.  If
it isn't, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are a member of the ~ubuntu-reviewers,
unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/1227449

Title:
  possible memory leaks in the OpenGL plugin

Status in Compiz:
  In Progress
Status in Compiz 0.9.11 series:
  Triaged
Status in Compiz trusty series:
  New
Status in “compiz” package in Ubuntu:
  Triaged

Bug description:
  It looks like that objects allocated inside GLWindow::addShaders and
  GLVertexBuffer::addUniform methods are never deleted.

  I'm using a plugin (compiz-cms) that uses both those methods and it
  leaks memory very fast:

  ==21530== 24,821,632 (10,638,048 direct, 14,183,584 indirect) bytes in 443,252 blocks are definitely lost in loss record 1,143 of 1,145
  ==21530==    at 0x4A068F3: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
  ==21530==    by 0x6536B2C: GLVertexBuffer::addUniform(char const*, int) (in /usr/lib64/compiz/libopengl.so)
  ==21530==    by 0xC351FFB: CmsWindow::glDrawTexture(GLTexture*, GLMatrix const&, GLWindowPaintAttrib const&, unsigned int) (cms.cpp:530)
  ==21530==    by 0x652F030: GLWindow::glDrawTexture(GLTexture*, GLMatrix const&, GLWindowPaintAttrib const&, unsigned int) (in /usr/lib64/compiz/libopengl.so)

  ==21530== 128,089,075 (10,638,072 direct, 117,451,003 indirect) bytes in 443,253 blocks are definitely lost in loss record 1,145 of 1,145
  ==21530==    at 0x4A068F3: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
  ==21530==    by 0x653872D: GLWindow::addShaders(std::string, std::string, std::string) (in /usr/lib64/compiz/libopengl.so)
  ==21530==    by 0xC351F8E: CmsWindow::glDrawTexture(GLTexture*, GLMatrix const&, GLWindowPaintAttrib const&, unsigned int) (cms.cpp:529)
  ==21530==    by 0x652F030: GLWindow::glDrawTexture(GLTexture*, GLMatrix const&, GLWindowPaintAttrib const&, unsigned int) (in /usr/lib64/compiz/libopengl.so)

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/1227449/+subscriptions