Subject: bug#34346: closed (Re: bug#22289: 24.3; Emacs crashes on loading file)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 20 Feb 2019 06:08:02 +0000

Your bug report

#22289: ImageMagick: hang when opening text (racket) files with .art extension

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
22289: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22289
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Wed, 20 Feb 2019 01:07:35 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 26.2

commit a19bfb7 (HEAD, origin/emacs-26, emacs-26)
Date:   Tue Feb 19 22:04:19 2019 -0800

    Remove .art from the default list of ImageMagick extensions
    
    It seems that .art files can be non-image files that
    ImageMagick mistakenly treats as extremely large images.
    Real .art images seem rare.
    * lisp/image.el (imagemagick-enabled-types): Remove ART.  (Bug#22289)

diff --git a/lisp/image.el b/lisp/image.el
index 3019da5..9d2045d 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -923,7 +923,7 @@ imagemagick-types-inhibit
   :version "24.3")
 
 (defcustom imagemagick-enabled-types
-  '(3FR ART ARW AVS BMP BMP2 BMP3 CAL CALS CMYK CMYKA CR2 CRW
+  '(3FR ARW AVS BMP BMP2 BMP3 CAL CALS CMYK CMYKA CR2 CRW
     CUR CUT DCM DCR DCX DDS DJVU DNG DPX EXR FAX FITS GBR GIF
     GIF87 GRB HRZ ICB ICO ICON J2C JNG JP2 JPC JPEG JPG JPX K25
     KDC MIFF MNG MRW MSL MSVG MTV NEF ORF OTB PBM PCD PCDS PCL
@@ -957,7 +957,7 @@ imagemagick-enabled-types
   :set (lambda (symbol value)
 	 (set-default symbol value)
 	 (imagemagick-register-types))
-  :version "24.3")
+  :version "26.2")                      ; remove ART (bug#22289)
 
 (imagemagick-register-types)

Subject: 26.1; Big hang when opening text (racket) files with .art extension (image-mode)
From: Pierre Neidhardt <[email-masked]>
To: [email-masked]
Date: Wed, 06 Feb 2019 13:31:15 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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/