GNU bug report logs - #59090
29.0.50; unhelpful error message when unable to create PDF thumbnail

Previous Next

Package: emacs;

Reported by: Mike Kupfer <mkupfer <at> alum.berkeley.edu>

Date: Mon, 7 Nov 2022 02:44:02 UTC

Severity: normal

Found in version 29.0.50

To reply to this bug, email your comments to 59090 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59090; Package emacs. (Mon, 07 Nov 2022 02:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mike Kupfer <mkupfer <at> alum.berkeley.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 07 Nov 2022 02:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Kupfer <mkupfer <at> alum.berkeley.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; unhelpful error message when unable to create PDF thumbnail
Date: Sun, 06 Nov 2022 18:43:27 -0800
I have a directory that has a few PDFs--they are magazine downloads
(e.g., IEEE Computer) and apparently have some password protections on
them.

When I try to view the directory using image-dired, I get an image-dired
buffer with some tofu in lieu of the cover thumbnails, plus an error
message in the echo area.  Perhaps that's to be expected, though I'll
note that I do get thumbnails when I browse the directory with a GUI
file browser (e.g., Thunar).

The point of this bug report is that the error message isn't all that
helpful.  I get

  Thumb could not be created for ~/ToRead/a/2022-01/mco202201.issue.pdf:
  exited abnormally with code 1

Looking in *Messages*, I see a bunch of "Cannot find image file"
messages, referring to .jpg files that image-dired apparently expects to
find in ~/.emacs.d/image-dired, but nothing else that appears to be
related to the failure to create the thumbnail.

If I turn on image-dired debugging, I see this line in *Messages*:

  Running convert -size 128x128 /home/kupfer/ToRead/a/2022-01/mco202201.issue.pdf[0] -resize 128x128> -strip jpeg:/home/kupfer/.emacs.d/image-dired/22c69e148696b90d8934e227f0bdedcba4d5314c.jpg

If I run that command by hand, I do get some additional diagnostic
output.  I think image-dired should capture that and report it to the
user.

alto$ convert -size 128x128 /home/kupfer/ToRead/a/2022-01/mco202201.issue.pdf -resize "128x128>" -strip jpeg:/home/kupfer/.emacs.d/image-dired/22c69e148696b90d8934e227f0bdedcba4d5314c.jpg
convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.
convert-im6.q16: no images defined `jpeg:/home/kupfer/.emacs.d/image-dired/22c69e148696b90d8934e227f0bdedcba4d5314c.jpg' @ error/convert.c/ConvertImageCommand/3229.

I've reproduced this with "emacs -Q".

The revision hash below includes some changes to MH-E and to the
function move-file-to-trash.  It is based on 8721e87a6ec.

regards,
mike

In GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.16.0, Xaw scroll bars) of 2022-11-06 built on alto
Repository revision: f749a1dd7875a83e6415d8c512c5659f0f23c834
Repository branch: master-mdk
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)

Configured using:
 'configure --prefix=/usr/new'

Configured features:
CAIRO FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX
LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB

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

Major mode: Org

Minor modes in effect:
  shell-dirtrack-mode: t
  delete-selection-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  column-number-mode: t
  auto-fill-function: org-auto-fill-function
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow mh-mime mh-identity mh-letter mh-show goto-addr gnus-cite
emacsbug tabify man display-line-numbers misearch multi-isearch shortdoc
cl-print help-fns radix-tree mule-util apropos image-file
image-converter image-dired image-dired-tags image-dired-external
image-dired-util dired-aux dired-x add-log org-element avl-tree
generator cl-extra ol-eww eww xdg url-queue thingatpt mm-url ol-rmail
ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view filenotify
jka-compr image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi
org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote
org-src ob-comint org-pcomplete org-list org-faces org-entities
org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol
rx org-keys oc org-compat org-macs org-loaddefs format-spec cal-menu
calendar cal-loaddefs mh-thread mh-inc hl-line mh-tool-bar mh-acros
mh-seq mh-xface mh-utils mh-folder which-func imenu edebug debug
backtrace help-mode find-func files-x mdk-mail gnus-mh gnus-msg mh-comp
mh-scan mh-gnus gnus-dup nnmh gnus-score score-mode gnus-art mm-uu
mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill
kinsoku url-file svg dom browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie generate-lisp-file url-domsuf
url-util url-parse auth-source cl-seq eieio eieio-core cl-macs json map
gv url-vars gnus-group gnus-undo gnus-start gnus-dbus dbus xml
gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601
gnus-spec gnus-int gnus-range gnus-win gnus nnheader range wid-edit mh-e
mh-buffers mh-loaddefs message sendmail mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr mailabbrev mail-utils gmm-utils mailheader server noutline
outline icons cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs byte-opt bytecomp byte-compile shell
subr-x pcomplete comint ansi-osc ansi-color ring xcscope advice delsel
vc vc-dispatcher timeclock cl-loaddefs cl-lib mdk-hacks rmc iso-transl
tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads inotify
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
x multi-tty make-network-process emacs)

Memory information:
((conses 16 415201 40289)
 (symbols 48 26301 0)
 (strings 32 100897 2705)
 (string-bytes 1 3090212)
 (vectors 16 49372)
 (vector-slots 8 551461 39415)
 (floats 8 353 454)
 (intervals 56 43290 81)
 (buffers 984 27))




This bug report was last modified 2 years and 17 days ago.

Previous Next


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