Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55838 - [emacs] Image[imagemagick] mode does not work properly since imagemagick 6.9.9.14

Attached to Project: Arch Linux
Opened by nammidd (nammidd) - Monday, 02 October 2017, 09:43 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 04 October 2017, 16:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Image in "Image[imagemagick]" mode is showing only in the first time.

Additional info:
GNU Emacs 25.3.1
Imagemagick since 6.9.9.14

Steps to reproduce:
Open an image, open another image.
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 04 October 2017, 16:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  imagemagick 6.9.9.18
Comment by Thomas Jost (Schnouki) - Monday, 02 October 2017, 13:09 GMT
Same issue.

Imagemagick reports that no image format is supported:

(fboundp 'imagemagick-types) --> t: Emacs is built with Imagemagick support
(imagemagick-types) --> nil: no image type. Should return a list of symbols.

Not sure when it started, but it's annoying for me...

Packages:
emacs 25.3-1
imagemagick 6.9.9.17-1
Comment by Thomas Jost (Schnouki) - Monday, 02 October 2017, 13:31 GMT
Simple repro:

1. Start Emacs with "emacs -Q"
2. Open an image file: C-x C-f ~/test.jpg RET: the image is displayed
3. Display it as text: C-c, then back as an image: C-c
4. No image, just a square.
5. Go to the *Messages* buffer: C-x b *Messages* RET. There are now several error messages: ImageMagick error: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/504

(And, just for fun, before loading the first image, (imagemagick-types) actually returns the expected list of symbols.)

This issue has been present for several days and has been reported several times in the Emacs mailing lists:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-09/msg00700.html
https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-09/msg01089.html
https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-09/msg01069.html

But no solution was found (only suggestion: https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-09/msg01071.html)
Comment by Thomas Jost (Schnouki) - Monday, 02 October 2017, 13:52 GMT
Rebuilt Emacs: no change, same issue.
Rebuilt ImageMagick 6.9.9.17: no change, same issue.
Rebuilt ImageMagick 6.9.9.10: no issue at all... So this is very likely a bug/regression in ImageMagick. I'm currently bisecting it and will either report it upstream or even submit a pull request if possible.
Comment by Thomas Jost (Schnouki) - Monday, 02 October 2017, 15:55 GMT
Found the bug in ImageMagick: https://github.com/ImageMagick/ImageMagick/issues/825
But I didn't manage to fix it :(
Comment by Thomas Jost (Schnouki) - Wednesday, 04 October 2017, 08:32 GMT
Fixed in ImageMagick git: https://github.com/ImageMagick/ImageMagick/pull/826. The next version of ImageMagick should include this fix :)

Loading...