Menu

#209 pix_image magick leaks memory

0.94
closed-fixed
linux
5
2014-08-28
2013-04-02
No

I have a patch that loads two new images every frame with two pix_image]--[pix_texture]. Only the latest two images are needed for each frame. I'm also using pix_image "thread 0" so that the images are loaded before the current frame is displayed, and pix_texture "rectangle 0, quality 2".

After some time Pd is using all my memory (I have 8GB ram and no swap) and the system becomes unresponsive.

Using valgrind I see there is a severe leak, probably in Magick loader (log attached). Same problem whether I use png or tif.

Versions:

Pd version 0.42-6
compiled 08:43:13 Mar 19 2012

GEM: ver: 0.93.git 867c5a7
GEM: compiled: Mar 26 2013

libmagickcore5:
Installed: 8:6.7.7.10-5
Candidate: 8:6.7.7.10-5
Version table:
*** 8:6.7.7.10-5 0
500 http://ftp.uk.debian.org/debian/ wheezy/main amd64 Packages
100 /var/lib/dpkg/status

1 Attachments

Discussion

  • IOhannes m zmölnig

    • Owner: Anonymous --> IOhannes m zmölnig
    • OS: --> any
     
  • IOhannes m zmölnig

    • Release: any_operating_system --> unknown
     
  • IOhannes m zmölnig

    • Release: unknown --> 0.93-git
     
  • IOhannes m zmölnig

    indeed, there is a memleak in the MagickCore backend (using the C-api).

    there is no memleak in the Magick++ backend (using the C++-api).

    both backends can be used to provide the gem_imageMAGICK.so plugin (Magick++ is preferred automatically)

    i'll have a look into it

     
  • IOhannes m zmölnig

    • labels: --> crash, pix_image, plugins, imageMagick, MagickCore
    • OS: any --> linux
     
  • IOhannes m zmölnig

    fixed with [13fa51]

     
  • IOhannes m zmölnig

    • status: open --> closed-fixed
     
  • IOhannes m zmölnig

    • Release: 0.93-git --> 0.94
     

Anonymous
Anonymous

Add attachments
Cancel