From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Using the ImageMagick backend seems to leak memory Date: Tue, 11 Jan 2011 10:54:40 +0100 Message-ID: References: <87sjx6zczl.fsf@member.fsf.org> <877heca0s8.fsf@member.fsf.org> <87lj2rq12b.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294741861 25622 80.91.229.12 (11 Jan 2011 10:31:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Jan 2011 10:31:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 11 11:30:53 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcbV6-0008N9-TF for ged-emacs-devel@m.gmane.org; Tue, 11 Jan 2011 11:30:53 +0100 Original-Received: from localhost ([127.0.0.1]:36694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcbV5-0002Gp-Vg for ged-emacs-devel@m.gmane.org; Tue, 11 Jan 2011 05:30:52 -0500 Original-Received: from [140.186.70.92] (port=42580 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pcb2J-0007Kt-0g for emacs-devel@gnu.org; Tue, 11 Jan 2011 05:01:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pcaw7-0006Zt-Js for emacs-devel@gnu.org; Tue, 11 Jan 2011 04:54:44 -0500 Original-Received: from batman.blixtvik.net ([87.96.254.3]:33628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pcaw7-0006Zf-Dj for emacs-devel@gnu.org; Tue, 11 Jan 2011 04:54:43 -0500 Original-Received: from www.verona.se (4-208-96-87.cust.blixtvik.se [87.96.208.4]) by batman.blixtvik.net (Postfix) with ESMTP id 513677F90FD; Tue, 11 Jan 2011 10:54:41 +0100 (CET) Original-Received: from localhost.localdomain (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id C6B3296ABAF; Tue, 11 Jan 2011 10:54:40 +0100 (CET) In-Reply-To: (joakim@verona.se's message of "Tue, 11 Jan 2011 10:35:47 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134442 Archived-At: joakim@verona.se writes: > Tassilo Horn writes: > >> Hi all, >> >> this is driving me nuts. I've already tried modifying >> imagemagick_load_image() with some messages, and so that it always does >> MagickWandGenesis() first and MagickWandTerminus() after destroying the >> last MagickWand. It does so, but that didn't help... >> >> One strangeness I found is the line >> >> image_error ("im read failed", Qnil, Qnil); >> >> which is called unconditionally in imagemagick_load_image(). Why? > > Thats supposed to be an error condition exit only. > Isnt there a return statement before? > > I havent yet tried to recreate your problem, but my experience when I > worked on the patch was that I got memory issues when working with image > bundle files. I was able to recreate the problem now. Ill try a newer IM and if it persists contact the IM team. > > Also the imagemagick team was very helpful in providing fixes in their > code. > > Have you tried to install a development version of imagemagick? > >> >> Anyway, that cannot be the culprit. >> >> Bye, >> Tassilo -- Joakim Verona