From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Adam Newsgroups: gmane.emacs.bugs Subject: bug#31771: 26.1; Writing image file with emacs hangs entire system Date: Sun, 10 Jun 2018 13:53:30 -0400 Message-ID: <2d37f921-5253-8dcc-9d30-738a1996451c@gmail.com> References: <87y3fnzqr4.fsf@gmail.com> <431102ab-bf88-7f34-915b-baa6be1661f1@gmail.com> <87tvqbz711.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1528653138 27887 195.159.176.226 (10 Jun 2018 17:52:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2018 17:52:18 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cc: 31771@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 10 19:52:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fS4Vh-00078X-Sw for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 19:52:14 +0200 Original-Received: from localhost ([::1]:44829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS4Xm-0001qQ-Tn for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 13:54:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fS4XV-0001p7-Jc for bug-gnu-emacs@gnu.org; Sun, 10 Jun 2018 13:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fS4XS-0004iy-Gv for bug-gnu-emacs@gnu.org; Sun, 10 Jun 2018 13:54:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fS4XS-0004ij-CV for bug-gnu-emacs@gnu.org; Sun, 10 Jun 2018 13:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fS4XS-00004z-1P for bug-gnu-emacs@gnu.org; Sun, 10 Jun 2018 13:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jun 2018 17:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 31771-submit@debbugs.gnu.org id=B31771.152865321732738 (code B ref 31771); Sun, 10 Jun 2018 17:54:01 +0000 Original-Received: (at 31771) by debbugs.gnu.org; 10 Jun 2018 17:53:37 +0000 Original-Received: from localhost ([127.0.0.1]:42534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fS4X3-0008Vy-JS for submit@debbugs.gnu.org; Sun, 10 Jun 2018 13:53:37 -0400 Original-Received: from mail-qk0-f182.google.com ([209.85.220.182]:43748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fS4X2-0008Vl-96 for 31771@debbugs.gnu.org; Sun, 10 Jun 2018 13:53:36 -0400 Original-Received: by mail-qk0-f182.google.com with SMTP id g126-v6so11720566qke.10 for <31771@debbugs.gnu.org>; Sun, 10 Jun 2018 10:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kkQDq7vvIxMNge53Kl3p7UsHayt9VPRxY/R6cLGAg6A=; b=p9gSvugYgrqan3uis2Puh/EjN9BtzWQnSqhFHe1lSKoxL0lFRMJrN3wqYuHSBEL8WE JgBp/fxUYCys4IO71sYUrp3QGAhlpw+aB9F/pyqY3z6EsjVLLwyLvf+KnBRCJ9lYN/ko oM/FLj50VA8/lW3sjeaZx+bROhdtMT9GVG4G0wMtiPisYBnpe3FJm88qXMnosW/aTK0g 5VaEXd/phiqMkvYA0g9Rgo/Plw4CcSvC4PrKTkHTOn+IWaSftperk7wXGqrI/mPKttyd BYL3/ahuvNZ7p5HapnnPImMwjJsPFBnIJnU1OTsY4gAgo1fovqeqE2QWznMlB+wJ99Pm MhXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=kkQDq7vvIxMNge53Kl3p7UsHayt9VPRxY/R6cLGAg6A=; b=NwQP6hS3iceEy8FmRoD25r2YnN9JgkXg8DsFc1l3y0QSZM04DSH7Ks7Y5L95UF3m8y usycYHx8F7XT4SOO+zrGdECSYxa8mTUh89iRMG/dkhNcFWZj9jyIOMHLnc1/zE4a5oWB C1veTIirgk2SgjpDdpNJ75sFcPE1w59/PB1g92WLKMn09OzmvK7H6p9mfn6osjEueSNN FAtGENLs2Z8y/ePlp1GtuMZFVHybm+dYew0eRA0/Do5549ZJP3haAGimmVUiONtkYbtD O/7Txdfux2OIDfy4QcZ16vyI5s6uuDJ4/mDjJDkfW4ARkN6Je7mopnr6rv+y1Xlcq9Jd muhg== X-Gm-Message-State: APt69E0VL1DPYFc3n9sTwoSgaVo+SskOCitYD33JLcs0qqiM7udRaYWP O2F83JfhfGnBe1WVhNFvkQ7sgI79 X-Google-Smtp-Source: ADUXVKJkNST5K11OZSoxdRn1VZrttbGq2wpGTEUCQ09QSTNaJSSyk85ctVDZ4eqehuZUoNLTk7cx5g== X-Received: by 2002:a37:a441:: with SMTP id n62-v6mr11901832qke.125.1528653209942; Sun, 10 Jun 2018 10:53:29 -0700 (PDT) Original-Received: from [192.168.1.162] (pool-71-175-1-195.phlapa.fios.verizon.net. [71.175.1.195]) by smtp.gmail.com with ESMTPSA id k30-v6sm20505551qtc.31.2018.06.10.10.53.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 10:53:28 -0700 (PDT) Openpgp: preference=signencrypt Autocrypt: addr=adam.niederer@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFd1xZsBEACxS6jC//cdlHBto17O9puLLU/deDxVmeZAmos70UxbfGEU4acJCohcKo5w mnBgNReUX8l+vydkkJeYMS9V4p2wInKnVxP/LPwlaZ7wcB26ZddF1KoHRambZFTluLbdP6Pp nYGPf19zzzkMVYpixfeZnH6CkF1cRYe2sryLacLEGce3j5DvoFgeseSbce0VieV0QWY2dcB+ lr5iWy/CukxgtU3SZXYwMB0v3xP8Ug3lMH0DDaZC/49hNJIHBLRxg9a7ZSiayeEdWRhn0hYP SQusycTPz82m3hPUVTBHuYf4cj2lA+gsUrAVlJSyGa14sp5S8b3tyVfTa9BUNJ1IFmGsaw2Q ATD+KIXJs+wUGzvd1BFP8TPuocLuLVplpBz3dv5C03Vlp+TSzH2d93t8nrWARuIEYpnAgjWQ z53jEu99oZ1TGTJNVhzt854yFGNr5opL71ODL+zFSwt+u/OLrOQF31DFZL2PC0yEd9eaP05W KgWp3H4XP3RXOP+fzWBUCABOi5XjbNq7mmvxj1efxFahloN5b/evH+Kejx0PnXLYve2VNd6T No09yfH3Z6kqk6c7PUK0MN5h/ZgDSVJ81vK5XyN2sIHtytvktMAbB57ORcniCPSyrRIv0S1K QKvTnzmNCvdpOjo5v8Tnsbwb31TWhmjj49X0BI1PCMTsJoTXqwARAQABzSdBZGFtIE5pZWRl cmVyIDxhZGFtLm5pZWRlcmVyQGdtYWlsLmNvbT7CwXcEEwEIACEFAld1xZsCGwMFCwkIBwIG FQgJCgsCBBYC In-Reply-To: <87tvqbz711.fsf@gmail.com> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147268 Archived-At: On 06/09/2018 10:53 PM, Noam Postavsky wrote: > So it definitely sounds like a graphics driver problem. Do you get > anything in the Xorg logs? Are there any graphics driver settings you > can fiddle with? I suppose it doesn't happen if you run imagemagick's > 'display' command on the image? `display` doesn't hang my system, and I see nothing out of the ordinary in my Xorg logs. I was able to figure out which line causes the hang, though: A call to MagickMergeImageLayers at image.c:8728 (on the emacs 26.1 tag) 8724 { 8725 MagickWand *new_wand; 8726 MagickSetImageBackgroundColor (image_wand, bg_wand); 8727 #ifdef HAVE_MAGICKMERGEIMAGELAYERS 8728 new_wand = MagickMergeImageLayers (image_wand, MergeLayer); 8729 #else 8730 new_wand = MagickFlattenImages (image_wand); 8731 #endif 8732 DestroyMagickWand (image_wand); 8733 image_wand = new_wand; 8734 } Using the deprecated MagickFlattenImages call also causes the hang. I'll compile a libmagick6 later and see if I can find the underlying problem, but this definitely isn't emacs' fault. Thanks for all the help!