unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28692: Emacs fails to display images
@ 2017-10-03 19:44 Diego Nicola Barbato
  2017-10-05 15:13 ` Ludovic Courtès
  2017-10-05 15:45 ` Diego Nicola Barbato
  0 siblings, 2 replies; 7+ messages in thread
From: Diego Nicola Barbato @ 2017-10-03 19:44 UTC (permalink / raw)
  To: 28692

Hello!

Several of emacs image related features have stopped working properly:
* Eww does not render images showing empty squares instead.
* When visiting an image in a buffer and pressing n to visit the next
  image the next image is either not displayed at all (showing an empty
  square instead) or a thumbnail sized version is displayed.
* Transformations such as "Fit to Window Width" or "Rotate Image" do not
  work at all. The following error message is displayed instead:
  ImageMagick error: no decode delegate for this image format `PBM' @
  error/constitute.c/ReadImage/504
  (This happens with all image formats not just .pbm)

This is independent of any init file as it still happens if emacs is run
with the -Q flag.
Everything works as it should if I roll back to the version from
2017-09-22.

I am running GuixSD on an x86-64 machine with the following config:

;; This is an operating system configuration file
;; for a "desktop" setup with StumpWM and EXWM where
;; the root partition is encrypted with LUKS.

(use-modules (gnu) (gnu packages) (gnu system nss))
(use-service-modules avahi dbus desktop networking xorg)
(use-package-modules certs emacs gnome lisp xdisorg)

(operating-system
  (host-name <>)
  (timezone <>)
  (locale <>)

  ;; Assuming /dev/sda is the target hard disk, and "osiris"
  ;; is the label of the target root file system.
  (bootloader (grub-configuration (target "/dev/sda")
                                  (timeout 1)))

  ;; Specify a mapped device for the encrypted root partition.
  ;; The UUID is that returned by 'cryptsetup luksUUID'.
  (mapped-devices
   (list (mapped-device
          (source (uuid <>))
          (target <>)
          (type luks-device-mapping))))

  (file-systems (cons* (file-system
                        (device <>)
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      (file-system
                        (device <>)
                        (title 'label)
                        (mount-point "/home")
                        (type "ext4")
                        (dependencies mapped-devices))
                      %base-file-systems))

  (swap-devices '("/dev/sda2"))

  (users (cons (user-account
                (name <>)
                (comment <>)
                (group "users")
                (supplementary-groups '("lp"
                                        "wheel" "netdev"
                                        "audio" "video"))
                (home-directory <>))
               %base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   ;; gvfs              ;for user mounts
                   sbcl-stumpwm      ;StumpWM window manager
                   emacs emacs-exwm  ;emacs window manager
                   %base-packages))

  ;; Add desktop services to %base-services. This is a modified
  ;; version of %desktop-services with fewer services and wicd
  ;; instead of network-manager. Also adding tor, xscreensaver,
  ;; bluetooth and a <> console keymap.
  (services (cons* (tor-service)

                   ;; Login service
                   (slim-service)

                   ;; Screen lockers are a pretty useful thing
		   ;; and these are small.
                   (screen-locker-service xlockmore "xlock")
                   (screen-locker-service xscreensaver "xscreensaver")

                   ;; The D-Bus clique.
                   (bluetooth-service)
                   (avahi-service)
                   (wicd-service)
                   (udisks-service)
                   (upower-service)
                   (colord-service)
                   (geoclue-service)
                   (polkit-service)
                   (elogind-service)
                   (dbus-service)

                   (ntp-service)
                   
                   ;; Add swiss german keymap
                   (console-keymap-service <>)

                   %base-services))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#28692: Emacs fails to display images
  2017-10-03 19:44 bug#28692: Emacs fails to display images Diego Nicola Barbato
@ 2017-10-05 15:13 ` Ludovic Courtès
  2017-10-05 16:11   ` Diego Nicola Barbato
  2017-10-05 15:45 ` Diego Nicola Barbato
  1 sibling, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2017-10-05 15:13 UTC (permalink / raw)
  To: Diego Nicola Barbato; +Cc: 28692

Hello Diego,

Diego Nicola Barbato <dnbarbato@posteo.de> skribis:

> Several of emacs image related features have stopped working properly:
> * Eww does not render images showing empty squares instead.
> * When visiting an image in a buffer and pressing n to visit the next
>   image the next image is either not displayed at all (showing an empty
>   square instead) or a thumbnail sized version is displayed.
> * Transformations such as "Fit to Window Width" or "Rotate Image" do not
>   work at all. The following error message is displayed instead:
>   ImageMagick error: no decode delegate for this image format `PBM' @
>   error/constitute.c/ReadImage/504
>   (This happens with all image formats not just .pbm)

Indeed, I experience this with DocView as well (when resizing), which
leads to:

  ImageMagick error: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/504

Could it be a CLI change in ImageMagick?  The package was upgraded in
87a9c53b7ca08bd490c94fe5579c3f26c19be78c.

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#28692: Emacs fails to display images
  2017-10-03 19:44 bug#28692: Emacs fails to display images Diego Nicola Barbato
  2017-10-05 15:13 ` Ludovic Courtès
@ 2017-10-05 15:45 ` Diego Nicola Barbato
  2017-10-05 18:38   ` Marius Bakke
  1 sibling, 1 reply; 7+ messages in thread
From: Diego Nicola Barbato @ 2017-10-05 15:45 UTC (permalink / raw)
  To: 28692

Apparently this was a known bug in ImageMagick 6.9.9-15 (and 6.9.9-17)
(https://github.com/ImageMagick/ImageMagick/issues/825). It has been
fixed in version 6.9.9-18.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#28692: Emacs fails to display images
  2017-10-05 15:13 ` Ludovic Courtès
@ 2017-10-05 16:11   ` Diego Nicola Barbato
  0 siblings, 0 replies; 7+ messages in thread
From: Diego Nicola Barbato @ 2017-10-05 16:11 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28692

Hello Ludo,

ludo@gnu.org (Ludovic Courtès) writes:

> Hello Diego,
>
> Diego Nicola Barbato <dnbarbato@posteo.de> skribis:
>
>> Several of emacs image related features have stopped working properly:
>> * Eww does not render images showing empty squares instead.
>> * When visiting an image in a buffer and pressing n to visit the next
>>   image the next image is either not displayed at all (showing an empty
>>   square instead) or a thumbnail sized version is displayed.
>> * Transformations such as "Fit to Window Width" or "Rotate Image" do not
>>   work at all. The following error message is displayed instead:
>>   ImageMagick error: no decode delegate for this image format `PBM' @
>>   error/constitute.c/ReadImage/504
>>   (This happens with all image formats not just .pbm)
>
> Indeed, I experience this with DocView as well (when resizing), which
> leads to:
>
>   ImageMagick error: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/504
>
> Could it be a CLI change in ImageMagick?  The package was upgraded in
> 87a9c53b7ca08bd490c94fe5579c3f26c19be78c.
>
> Ludo’.

I believe the bug was introduced in
030030f4416b54285dcdd58bddb863c0e6bda4c4. It appears to be a known bug
in ImageMagick (https://github.com/ImageMagick/ImageMagick/issues/825),
which was already present in version 6.9.9-15.
It has been fixed in version 6.9.9-18
(https://github.com/ImageMagick/ImageMagick/blob/ImageMagick-6/ChangeLog).

Diego

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#28692: Emacs fails to display images
  2017-10-05 15:45 ` Diego Nicola Barbato
@ 2017-10-05 18:38   ` Marius Bakke
  2017-10-06  9:55     ` Diego Nicola Barbato
  0 siblings, 1 reply; 7+ messages in thread
From: Marius Bakke @ 2017-10-05 18:38 UTC (permalink / raw)
  To: Diego Nicola Barbato, 28692

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

Diego Nicola Barbato <dnbarbato@posteo.de> writes:

> Apparently this was a known bug in ImageMagick 6.9.9-15 (and 6.9.9-17)
> (https://github.com/ImageMagick/ImageMagick/issues/825). It has been
> fixed in version 6.9.9-18.

Hello!  I just pushed an update to 6.9.9-18, can you verify that it
works?

Thanks for the report!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#28692: Emacs fails to display images
  2017-10-05 18:38   ` Marius Bakke
@ 2017-10-06  9:55     ` Diego Nicola Barbato
  2017-10-06 12:58       ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Diego Nicola Barbato @ 2017-10-06  9:55 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 28692

Marius Bakke <mbakke@fastmail.com> writes:

> Diego Nicola Barbato <dnbarbato@posteo.de> writes:
>
>> Apparently this was a known bug in ImageMagick 6.9.9-15 (and 6.9.9-17)
>> (https://github.com/ImageMagick/ImageMagick/issues/825). It has been
>> fixed in version 6.9.9-18.
>
> Hello!  I just pushed an update to 6.9.9-18, can you verify that it
> works?
>
> Thanks for the report!

Hello!

I upgraded Emacs and everything works as expected.

Thanks for fixing it!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#28692: Emacs fails to display images
  2017-10-06  9:55     ` Diego Nicola Barbato
@ 2017-10-06 12:58       ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2017-10-06 12:58 UTC (permalink / raw)
  To: Diego Nicola Barbato; +Cc: 28692-done

Diego Nicola Barbato <dnbarbato@posteo.de> skribis:

> Marius Bakke <mbakke@fastmail.com> writes:
>
>> Diego Nicola Barbato <dnbarbato@posteo.de> writes:
>>
>>> Apparently this was a known bug in ImageMagick 6.9.9-15 (and 6.9.9-17)
>>> (https://github.com/ImageMagick/ImageMagick/issues/825). It has been
>>> fixed in version 6.9.9-18.
>>
>> Hello!  I just pushed an update to 6.9.9-18, can you verify that it
>> works?
>>
>> Thanks for the report!
>
> Hello!
>
> I upgraded Emacs and everything works as expected.
>
> Thanks for fixing it!

Awesome, thank you gentlefolks!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-10-06 12:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03 19:44 bug#28692: Emacs fails to display images Diego Nicola Barbato
2017-10-05 15:13 ` Ludovic Courtès
2017-10-05 16:11   ` Diego Nicola Barbato
2017-10-05 15:45 ` Diego Nicola Barbato
2017-10-05 18:38   ` Marius Bakke
2017-10-06  9:55     ` Diego Nicola Barbato
2017-10-06 12:58       ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).