← Back to team overview

desktop-packages team mailing list archive

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

 

This bug was fixed in the package compiz -
1:0.9.12+15.04.20141031-0ubuntu1

---------------
compiz (1:0.9.12+15.04.20141031-0ubuntu1) vivid; urgency=low

  [ Stephen M. Webb ]
  * filter debian/ from upstream dist tarball (LP: #1075995)
  * removed distro-patch for #873384 because it's now upstream (LP:
    #873384)
  * removed inappropriate executable permissions from some source and
    data files (LP: #1086165)
  * window_decorator: renamed a local to unhide a parameter (LP:
    #957600)
  * opengl plugin: free shaders and uniforms (LP: #1227449)
  * debian/compizconfig: renamed from debian/config to avoid debconf
    clashes (LP: #1156294)
  * animation plugin: initialize mPrevAnimSelectionRow (LP: #1101630)

  [ Klaus Knopper ]
  * Forces non-opaque pointer in the ezoom plugin. (LP: #1362005)

  [ Henry Hu ]
  * place plugin: correct min and default placement modes in
    configuration

  [ Matija Skala ]
  * remove 'extern "C"' hack (LP: #1286562)

  [ Dariusz Gadomski ]
  * CompScreen: Save focused window id before changing viewport.
 -- Ubuntu daily release <ps-jenkins@xxxxxxxxxxxxxxxxxxx>   Fri, 31 Oct 2014 17:03:50 +0000

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

-- 
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:
  Fix Released

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