GNU bug report logs - #34346
ImageMagick: hang when opening text (racket) files with .art extension

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Pierre Neidhardt <mail@HIDDEN>; merged with #22289; dated Wed, 6 Feb 2019 12:32:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 20:55:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 15:55:45 2019
Received: from localhost ([127.0.0.1]:36199 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grUES-0005vh-Nt
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 15:55:44 -0500
Received: from relay8-d.mail.gandi.net ([217.70.183.201]:39907)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1grUER-0005vY-0b
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 15:55:43 -0500
X-Originating-IP: 90.92.41.33
Received: from bababa (lfbn-1-12225-33.w90-92.abo.wanadoo.fr [90.92.41.33])
 (Authenticated sender: mail@HIDDEN)
 by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 9A4D71BF208;
 Wed,  6 Feb 2019 20:55:40 +0000 (UTC)
References: <87ftt1m73g.fsf@HIDDEN> <83womcsyub.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Pierre Neidhardt <mail@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
In-reply-to: <83womcsyub.fsf@HIDDEN>
Date: Wed, 06 Feb 2019 21:55:40 +0100
Message-ID: <874l9geiwj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


> This is a duplicate of https://debbugs.gnu.org/22289 .

It is indeed, thanks for looking it up!

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxbScwACgkQm9z0l6S7
zH+feggAniPdTaTy5v9QdXyqxVNG2OlIofm2x7yvVYge83+ouF0kdlTEzBksGoaV
rHSg9nhJvkWy/F/n37ZG4GrrFBH+HhqN/pdGTJQhtWntmLl1LQeDeMFTJFeK/t2U
5HNWhEEdK7MdZAshaQyfx1cqrjwB3UJ2fghkEW+OdmDz63TozXRIBybD57OuzSZq
f5G2vcLPFH63Yv3dG2KGpPQLsgLP4vPcgAZXOYtlPF9325xl4plQot9M3ot8TMR7
mhmKpevhGHke/Vu06ZTBx68XpdahdT4h+XDiQMKTZcuPGAe090ZQ1MaeEHsG35B8
1ban+mLTMCKj1OmGlJPDJhxvlnKMrw==
=jUKR
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 20:53:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 15:53:38 2019
Received: from localhost ([127.0.0.1]:36195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grUCQ-0005sT-58
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 15:53:38 -0500
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43139)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1grUCL-0005sB-5V
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 15:53:34 -0500
X-Originating-IP: 90.92.41.33
Received: from bababa (lfbn-1-12225-33.w90-92.abo.wanadoo.fr [90.92.41.33])
 (Authenticated sender: mail@HIDDEN)
 by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 5DEBB240007;
 Wed,  6 Feb 2019 20:53:27 +0000 (UTC)
References: <87ftt1m73g.fsf@HIDDEN> <83womcsyub.fsf@HIDDEN>
 <g5sgx0oht2.fsf@HIDDEN> <l4o97oohpe.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Pierre Neidhardt <mail@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
In-reply-to: <l4o97oohpe.fsf@HIDDEN>
Date: Wed, 06 Feb 2019 21:53:26 +0100
Message-ID: <875ztwej09.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> Not sure I understand: are you saying that hello.art uses an extension
> of some image files, but is not an image?  If so, why is that a bug --
> these things can happen with any file, and removing an extension just
> because there's one example to the contrary isn't necessarily a good
> idea.
>=20
> Or did I miss something?

Sorry if this was unclear.

Extensions and actual content don't necessary match the auto-mode-alist map=
ping.

If the extension does not match Emacs' expectations, it should not freeze i=
t for
a minute and almost halt the computer to a grind.

In other words, Emacs should fail gracefully when image-mode does not make =
sense
with the actual content of the file.

Does that make sense?

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxbSUYACgkQm9z0l6S7
zH8neAf/YoXrg4CXZZROBDpnVrMzLsY0bekw0SY41fN+arkupESNPpJ6mFuByP9q
LKaRW3b5PAp01hJiDsx/bLs0S9lR//NaiUwodW28QDSU/7fn/BDhZavGoyKm/7GK
/pTLsydCk2P6m85nSp1/OUO5x9L5cGG3S9bN45SgkoD3ikvnyrYiQGg+x16CE5D+
HJcxRHkg5NEJiEoA2akSwWdKaQKJiN0ppRmKxytYT5q7C1PbHoG9mYCP+RSL/rtn
hb6RB37PD1W8DLO6fj1O4VdJTdJLPbTrOtEGCrdkzZZ5kj3kxzohHFsBsN5SBtXz
2aL4lV2EVpgDub7ptMTLvRg8I6OBTQ==
=qxvx
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 19:11:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 14:11:38 2019
Received: from localhost ([127.0.0.1]:36165 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grSbi-0003Qz-0R
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 14:11:38 -0500
Received: from eggs.gnu.org ([209.51.188.92]:43027)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1grSbe-0003Qi-6c
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 14:11:36 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:46428)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1grSbY-00008S-Ij; Wed, 06 Feb 2019 14:11:28 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1grSbW-0007JW-LV; Wed, 06 Feb 2019 14:11:26 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
References: <87ftt1m73g.fsf@HIDDEN> <83womcsyub.fsf@HIDDEN>
 <g5sgx0oht2.fsf@HIDDEN>
X-Spook: Closure Kennedy Recall AMW Conficker assassinate U.S.
X-Ran: S.p}2xS+VQ^IzofCmbz!ISe9BzBl,s!o<k_Lv6Zg?"6vcx$o+j*L`-B(sXKvRYXS1!j=Q9
X-Hue: white
X-Attribution: GM
Date: Wed, 06 Feb 2019 14:11:25 -0500
In-Reply-To: <g5sgx0oht2.fsf@HIDDEN> (Glenn Morris's message of
 "Wed, 06 Feb 2019 14:09:13 -0500")
Message-ID: <l4o97oohpe.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org, Pierre Neidhardt <mail@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Glenn Morris wrote:

> it seems like a good idea to add it to the default value of
> imagemagick-types-inhibit.

Or rather, remove ART from the default imagemagick-enabled-types.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 19:09:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 14:09:52 2019
Received: from localhost ([127.0.0.1]:36161 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grSa0-0003O2-Hq
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 14:09:52 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42790)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1grSZy-0003No-2r
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 14:09:51 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:46420)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1grSZo-00085U-4Q; Wed, 06 Feb 2019 14:09:41 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1grSZQ-0003dc-KH; Wed, 06 Feb 2019 14:09:18 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
References: <87ftt1m73g.fsf@HIDDEN> <83womcsyub.fsf@HIDDEN>
X-Spook: Uzbekistan Narco banners Hugo Chavez Car bomb SAFE Bush
X-Ran: I2|YO&I5tW(%qEJl1;WWN~dn1D<)ovFTV6e`t>Mfw#th/-Pu@,rPJt>GNp9S^$`%GuIn-R
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 06 Feb 2019 14:09:13 -0500
In-Reply-To: <83womcsyub.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 06 Feb
 2019 17:47:40 +0200")
Message-ID: <g5sgx0oht2.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org, Pierre Neidhardt <mail@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


I've never heard of .art image files.

According to
https://en.wikipedia.org/wiki/ART_image_file_format

"ART is a proprietary image file format used mostly by the America
Online (AOL) service"

I doubt many people want to look at such images with Emacs.
Given that .art more often seems to be used for something else that
isn't an image but causes big problems for ImageMagick, it seems like a
good idea to add it to the default value of imagemagick-types-inhibit.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.
Merged 22289 34346. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 18:28:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 13:28:07 2019
Received: from localhost ([127.0.0.1]:36138 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grRvb-0006oK-Je
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 13:28:07 -0500
Received: from eggs.gnu.org ([209.51.188.92]:34561)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1grRva-0006ni-Aj
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 13:28:06 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:46095)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1grRvT-0007Js-U8; Wed, 06 Feb 2019 13:27:59 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1grRvS-000314-Pv; Wed, 06 Feb 2019 13:27:58 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Pierre Neidhardt <mail@HIDDEN>
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
References: <87ftt1m73g.fsf@HIDDEN>
X-Spook: arrangements Home grown Sick Bush Wired AQIM Listeria
X-Ran: StKxa~M(|[1y~/V<#GlK&ahWySx|wf+(u4H9C9)PB8Zag!-dj2us5}Wg(3S(]-{n3n*V*S
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 06 Feb 2019 13:27:58 -0500
In-Reply-To: <87ftt1m73g.fsf@HIDDEN> (Pierre Neidhardt's message of
 "Wed, 06 Feb 2019 13:31:15 +0100")
Message-ID: <23womcojpt.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


This is a duplicate of https://debbugs.gnu.org/22289 .




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.
Changed bug title to 'ImageMagick: hang when opening text (racket) files with .art extension' from '26.1; Big hang when opening text (racket) files with .art extension (image-mode)' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 15:47:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 10:47:58 2019
Received: from localhost ([127.0.0.1]:36089 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grPQa-0002e2-Ui
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 10:47:58 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47348)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1grPQZ-0002dq-3e
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 10:47:55 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42955)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1grPQT-00057V-4P; Wed, 06 Feb 2019 10:47:49 -0500
Received: from [176.228.60.248] (port=1521 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1grPQS-00039H-OS; Wed, 06 Feb 2019 10:47:49 -0500
Date: Wed, 06 Feb 2019 17:47:40 +0200
Message-Id: <83womcsyub.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Pierre Neidhardt <mail@HIDDEN>
In-reply-to: <87ftt1m73g.fsf@HIDDEN> (message from Pierre Neidhardt on
 Wed, 06 Feb 2019 13:31:15 +0100)
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
References: <87ftt1m73g.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> From: Pierre Neidhardt <mail@HIDDEN>
> Date: Wed, 06 Feb 2019 13:31:15 +0100
> 
> Tested with emacs -Q: opening a .art file
> (e.g. https://raw.githubusercontent.com/euhmeuh/rilouw.eu/master/articles/hello.art)
> will hang Emacs for about a minute (on a rather powerful computer).  CPU
> is about 0% but disk I/O oscillates between 80MB/s-400MB/s (your mileage
> may vary).
> 
> It seems to be because Emacs tries to open the .art file in image-mode.
> The regexp seems to be added by imagemagick-register-types.
> 
> Removing .art from auto-mode-alist works.

Not sure I understand: are you saying that hello.art uses an extension
of some image files, but is not an image?  If so, why is that a bug --
these things can happen with any file, and removing an extension just
because there's one example to the contrary isn't necessarily a good
idea.

Or did I miss something?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 14:15:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 09:15:34 2019
Received: from localhost ([127.0.0.1]:34180 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grNzC-0006E6-5c
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 09:15:34 -0500
Received: from relay11.mail.gandi.net ([217.70.178.231]:34671)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1grNz8-0006Ds-BX
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 09:15:32 -0500
Received: from bababa (lfbn-1-12225-33.w90-92.abo.wanadoo.fr [90.92.41.33])
 (Authenticated sender: mail@HIDDEN)
 by relay11.mail.gandi.net (Postfix) with ESMTPSA id 9B36F100003;
 Wed,  6 Feb 2019 14:15:27 +0000 (UTC)
References: <87ftt1m73g.fsf@HIDDEN> <87ef8l3tip.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Pierre Neidhardt <mail@HIDDEN>
To: "Basil L. Contovounesios" <contovob@HIDDEN>
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
In-reply-to: <87ef8l3tip.fsf@HIDDEN>
Date: Wed, 06 Feb 2019 15:15:27 +0100
Message-ID: <8736p1gg00.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


> Another way of achieving this would be through customising
> imagemagick-types-inhibit or imagemagick-enabled-types, right?

Thanks for sharing, I didn't know about these.  Yes, that would be a better
workaround.

That said, there is an issue and image-mode should not try to do what ever =
it is
doing when loading plain text...  Not sure how we could prevent that.

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxa6/8ACgkQm9z0l6S7
zH/spwf9GcMyqsNA1VUsKIyu9xPurc3aPKzluUtAVd7TBGEiRxLscZZlwzOMx8Eb
Ir+SePpBF+VLN1mDY09pN6K5yQ02s3kNL52ZbHruRNQhg/VSeaAIK22Ynx3I01hE
L3q3ONL+QD19FRyS7cEwghML+/aelTn4HSlX89G/wXQZ0Ep4ZTw/H0tosm/3g83j
Ifaey1hqK5PGegiG3WVqgsIHJJ+P+BI5KKKgeNaYgjYY0TXLX8HxxMOtf49ryt8S
wL/Xg17VJLGoCbmnXqlXGOxIKhOhB59bWuz5Qq9tERv8SXTxwRWcxPtjprazk6js
2Uwokjh4wtZ2Bxx4ZMshc4oSwJ/7Zw==
=DG6R
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.

Message received at 34346 <at> debbugs.gnu.org:


Received: (at 34346) by debbugs.gnu.org; 6 Feb 2019 14:02:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 09:02:00 2019
Received: from localhost ([127.0.0.1]:34170 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grNm4-0005so-K3
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 09:02:00 -0500
Received: from mail-ed1-f44.google.com ([209.85.208.44]:37448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1grNm2-0005sc-TX
 for 34346 <at> debbugs.gnu.org; Wed, 06 Feb 2019 09:01:59 -0500
Received: by mail-ed1-f44.google.com with SMTP id h15so5956104edb.4
 for <34346 <at> debbugs.gnu.org>; Wed, 06 Feb 2019 06:01:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tcd-ie.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=jgeelCdMfb62FqcwcKvyDbQJS4znFs4iffm4+Ox3i6Q=;
 b=RwVoCOSHshdQ6+xuN6Z4WOoTm/5gw0GQx4M1ub+JeJwcnB7a2iWz2bmOgW5/70j7LA
 /YcoL/WYQAk4T5T5dCdxRjJiYX2mvwNr10N92YlYnNlVtBBSIbXwDypZyjItYpaYa2jf
 vEEyLN0AL6Y7EcPHQY7dCvgS2ax357CXctVCxyC9koe+JiXK018wWEImXUQxA1q8kxL/
 IFh/S7KedeFgBzyLe+5brZP4TSLSAYxifWns06Tmfwa8Q+5cm/TCmk5HZdwZeNeJwKv8
 oQF59hUqD26e86wf08H/oSjwKVBHZ12JDZSsZ7viYaUmNsLlhkEmNFNLSlZ25d/ogpzq
 qejQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=jgeelCdMfb62FqcwcKvyDbQJS4znFs4iffm4+Ox3i6Q=;
 b=Y3vMoCBKnyUXTdgQov3N+/k60GhBAdSi1r3zJLjDDkidwtgaquTZaQl4OX55F7Zg7V
 Es2IhrzPzBwy17GFIKhDuwN9qQWqiS397nknS1aqTKhzSLZeiSIwOJUYaDangfnNjG5R
 YuIA74MiUhKcNi1WFlU/g8CiZr5MnFPOr5yZYK1m6wyKoYfsM6hoBGmFvsKPaLv49ueT
 uXFTgDE2um1t7SSXM9Z72r/K7rLqmk/vDcCY0Z71NnyGWZo10ZV0VVNjIPK1uzINgle0
 Ag4pHphAxtCV55//moSMx0huD5rZcY8GZFXQhVW/Jy05hrR9FbidRXERSjhpj0lPitUT
 KwQA==
X-Gm-Message-State: AHQUAuZmid5eJQWOEguk9sikDahKQp/KQPC+R2hn0lGTIAHOXA7gmK3/
 M//MRdFrIvcl+8jYHkHQrSL5gcirmwcTiA==
X-Google-Smtp-Source: AHgI3IaaPM03Rk4QmQbJ1/PcV6uNEAqzOP2r86UEFwgOM9S2I5aYFWUo2BU9TQMQpr5fQyRHlxdG8A==
X-Received: by 2002:a50:a347:: with SMTP id 65mr8535592edn.40.1549461712897;
 Wed, 06 Feb 2019 06:01:52 -0800 (PST)
Received: from localhost ([2a02:8084:20e2:c380:f786:805d:f4ab:1006])
 by smtp.gmail.com with ESMTPSA id b11sm888989eje.27.2019.02.06.06.01.51
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Wed, 06 Feb 2019 06:01:52 -0800 (PST)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Pierre Neidhardt <mail@HIDDEN>
Subject: Re: bug#34346: 26.1;
 Big hang when opening text (racket) files with .art extension
 (image-mode)
References: <87ftt1m73g.fsf@HIDDEN>
Date: Wed, 06 Feb 2019 14:01:50 +0000
In-Reply-To: <87ftt1m73g.fsf@HIDDEN> (Pierre Neidhardt's message of
 "Wed, 6 Feb 2019 13:31:15 +0100")
Message-ID: <87ef8l3tip.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34346
Cc: 34346 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Pierre Neidhardt <mail@HIDDEN> writes:

> Removing .art from auto-mode-alist works.  The following workaround will
> remove the complete regexp, that is, all extensions added by
> imagemagick-register-types.
>
>   (dolist (pair auto-mode-alist)
>     (when (string-match (car pair) ".art")
>       (delete pair auto-mode-alist)))

Another way of achieving this would be through customising
imagemagick-types-inhibit or imagemagick-enabled-types, right?

-- 
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Feb 2019 12:31:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 07:31:33 2019
Received: from localhost ([127.0.0.1]:34102 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grMMW-0000wn-RR
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 07:31:33 -0500
Received: from eggs.gnu.org ([209.51.188.92]:55863)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1grMMV-0000r8-Ch
 for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 07:31:31 -0500
Received: from lists.gnu.org ([209.51.188.17]:46222)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1grMMQ-00022T-9I
 for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 07:31:26 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42002)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1grMMO-0003MA-3M
 for bug-gnu-emacs@HIDDEN; Wed, 06 Feb 2019 07:31:26 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1grMMM-00020Z-0G
 for bug-gnu-emacs@HIDDEN; Wed, 06 Feb 2019 07:31:22 -0500
Received: from relay4-d.mail.gandi.net ([217.70.183.196]:33855)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1grMML-0001vp-Jx
 for bug-gnu-emacs@HIDDEN; Wed, 06 Feb 2019 07:31:21 -0500
X-Originating-IP: 90.92.41.33
Received: from bababa (lfbn-1-12225-33.w90-92.abo.wanadoo.fr [90.92.41.33])
 (Authenticated sender: mail@HIDDEN)
 by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9E8C8E0007
 for <bug-gnu-emacs@HIDDEN>; Wed,  6 Feb 2019 12:31:15 +0000 (UTC)
User-agent: mu4e 1.0; emacs 26.1
From: Pierre Neidhardt <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.1; Big hang when opening text (racket) files with .art extension
 (image-mode)
Date: Wed, 06 Feb 2019 13:31:15 +0100
Message-ID: <87ftt1m73g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 217.70.183.196
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Tested with emacs -Q: opening a .art file
(e.g. https://raw.githubusercontent.com/euhmeuh/rilouw.eu/master/articles/hello.art)
will hang Emacs for about a minute (on a rather powerful computer).  CPU
is about 0% but disk I/O oscillates between 80MB/s-400MB/s (your mileage
may vary).

It seems to be because Emacs tries to open the .art file in image-mode.
The regexp seems to be added by imagemagick-register-types.

Removing .art from auto-mode-alist works.  The following workaround will
remove the complete regexp, that is, all extensions added by
imagemagick-register-types.

  (dolist (pair auto-mode-alist)
    (when (string-match (car pair) ".art")
      (delete pair auto-mode-alist)))





In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.0)
 of 2018-11-14 built on localhost
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash
 SHELL=/gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash
 --prefix=/gnu/store/vsiqlxhj7lnydhhi85jc1pg0xzhcfdny-emacs-26.1
 --enable-fast-install'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL
GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 THREADS

Important settings:
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: mu4e:view
<#secure method=pgpmime mode=sign>

--
Pierre Neidhardt
https://ambrevar.xyz/




Acknowledgement sent to Pierre Neidhardt <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34346; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 6 Feb 2019 21:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.