GNU bug report logs -
#22289
24.3; ImageMagick-related crash with .art file
Previous Next
Reported by: Alex Burr <ajb44.geo <at> yahoo.com>
Date: Sat, 2 Jan 2016 02:52:02 UTC
Severity: normal
Merged with 34346
Found in versions 24.3, 26.1
Fixed in version 26.2
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Wed, 20 Feb 2019 01:07:35 -0500
with message-id <vbbm376li0.fsf <at> fencepost.gnu.org>
and subject line Re: bug#22289: 24.3; Emacs crashes on loading file
has caused the debbugs.gnu.org bug report #22289,
regarding ImageMagick: hang when opening text (racket) files with .art extension
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
22289: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22289
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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/
[Message part 3 (message/rfc822, inline)]
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)
This bug report was last modified 6 years and 94 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.