<div class="markdown_content"><p>indeed, there is a memleak in the MagickCore backend (using the C-api).</p>
<p>there is <em>no</em> memleak in the Magick++ backend (using the C++-api).</p>
<p>both backends can be used to provide the gem_imageMAGICK.so plugin (Magick++ is preferred automatically)</p>
<p>i'll have a look into it</p>
<hr />
<p><strong> <a href="http://sourceforge.net/p/pd-gem/bugs/209/" class="alink">[bugs:#209]</a> pix_image magick leaks memory</strong></p>
<p><strong>Status:</strong> open<br />
<strong>OS:</strong> any<br />
<strong>Release:</strong> 0.93-git<br />
<strong>Created:</strong> Tue Apr 02, 2013 03:55 PM UTC by Claude Heiland-Allen<br />
<strong>Last Updated:</strong> Wed Jul 09, 2014 07:42 AM UTC<br />
<strong>Owner:</strong> IOhannes m zmölnig</p>
<p>I have a patch that loads two new images every frame with two pix_image]--<span>[pix_texture]</span>.  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".</p>
<p>After some time Pd is using all my memory (I have 8GB ram and no swap) and the system becomes unresponsive.</p>
<p>Using valgrind I see there is a severe leak, probably in Magick loader (log attached).  Same problem whether I use png or tif.</p>
<p>Versions:</p>
<p>Pd version 0.42-6<br />
compiled 08:43:13 Mar 19 2012</p>
<p>GEM: ver: 0.93.git 867c5a7<br />
GEM: compiled: Mar 26 2013</p>
<p>libmagickcore5:<br />
  Installed: 8:6.7.7.10-5<br />
  Candidate: 8:6.7.7.10-5<br />
  Version table:<br />
 *** 8:6.7.7.10-5 0<br />
        500 <a href="http://ftp.uk.debian.org/debian" rel="nofollow">http://ftp.uk.debian.org/debian/</a> wheezy/main amd64 Packages<br />
        100 /var/lib/dpkg/status</p>
<hr />
<p>Sent from sourceforge.net because gem-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pd-gem/bugs">https://sourceforge.net/p/pd-gem/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pd-gem/admin/bugs/options.">https://sourceforge.net/p/pd-gem/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>