← Back to team overview

desktop-packages team mailing list archive

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

 

** Also affects: compiz (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: compiz (Ubuntu)
       Status: New => Triaged

** Changed in: compiz/trusty
   Importance: Undecided => High

** Changed in: compiz (Ubuntu)
   Importance: Undecided => High

** Changed in: compiz
       Status: Triaged => In Progress

** Changed in: compiz
     Assignee: (unassigned) => Stephen M. Webb (bregma)

-- 
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