From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.bugs Subject: bug#33990: 27.0.50; image-transform-fit-to-height/-width violates assert Date: Sat, 05 Jan 2019 18:26:06 +0100 Message-ID: <875zv3m2xd.fsf@turtle-trading.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546709109 21968 195.159.176.226 (5 Jan 2019 17:25:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2019 17:25:09 +0000 (UTC) To: 33990@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 05 18:25:05 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from listsout.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfph2-0005ZX-B1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jan 2019 18:25:04 +0100 Original-Received: from localhost ([127.0.0.1]:51304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfpj8-0007F0-RY for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jan 2019 12:27:14 -0500 Original-Received: from eggsout.gnu.org ([209.51.188.92]:48878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfpj2-0007Ev-FJ for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 12:27:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfpix-0003nF-EX for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 12:27:08 -0500 Original-Received: from debbugsout.gnu.org ([209.51.188.43]:43807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfpiw-0003ms-DO for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 12:27:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfpiw-0003H7-1h for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 12:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Benjamin Riefenstahl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Jan 2019 17:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33990 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154670918212536 (code B ref -1); Sat, 05 Jan 2019 17:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jan 2019 17:26:22 +0000 Original-Received: from localhost ([127.0.0.1]:48037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfpiG-0003G7-To for submit@debbugs.gnu.org; Sat, 05 Jan 2019 12:26:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfpiE-0003Fy-JZ for submit@debbugs.gnu.org; Sat, 05 Jan 2019 12:26:19 -0500 Original-Received: from [209.51.188.17] (port=54730 helo=lists.gnu.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gfpiD-0003Wg-J4 for submit@debbugs.gnu.org; Sat, 05 Jan 2019 12:26:18 -0500 Original-Received: from eggsout.gnu.org ([209.51.188.92]:48698 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfpiC-0007Ck-BM for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 12:26:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfpi7-0003UF-CZ for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 12:26:16 -0500 Original-Received: from odoacer.turtle-trading.net ([93.241.193.16]:41527) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfpi6-0003T4-Lp for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 12:26:11 -0500 Original-Received: from justinian.turtle-trading.net ([192.168.2.118]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1gfpi3-0003Cq-GP; Sat, 05 Jan 2019 18:26:07 +0100 Original-Received: from benny by justinian.turtle-trading.net with local (Exim 4.89) (envelope-from ) id 1gfpi3-0001o1-6I; Sat, 05 Jan 2019 18:26:07 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154167 Archived-At: When I resize images, using image-transform-fit-to-height or image-transform-fit-to-width, the scaling is performed but than image-transform-check-size is called and signals an error. This uses ImageMagick 6.9.7.4 as installed by Debian GNUS/Linux 9.6 (stretch). Also, because the scale factor is kept globally after that operation (is that intentional BTW?), loading other images afterwards also runs into that error, thus image-mode fails to execute and instead in new image buffers the raw bytes are shown. I can reproduce this on emacs-26 as well as master with "emacs -Q" with PBM and with JPEG images. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2019-01-03 built on arrian Repository revision: f7ccac9f9d82019d4d5ba3182200422fbc9c7e67 Repository branch: harfbuzz Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9 (stretch) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: global-magit-file-mode: t magit-file-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t desktop-save-mode: t display-time-mode: t diff-auto-refine-mode: t delete-selection-mode: t cua-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow sort mail-extr emacsbug sendmail pcmpl-unix dirtrack dired-aux whitespace compile ert pp ewoc man noutline outline tramp-archive tramp-gvfs zeroconf dbus xml tramp trampver tramp-compat tramp-loaddefs ucs-normalize parse-time magit-find-file edebug pulse xref project debug backtrace tabify misearch multi-isearch rect cl-print thingatpt eieio-opt speedbar sb-image ezimage dframe find-func help-fns bug-reference magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql treepy graphql ghub url-http url-gw nsm url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils crm magit-popup log-edit message rmc puny format-spec rfc822 mml mml-sec epa gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async shell pcomplete dash rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode dom nxml-util nxml-enc xmltok make-mode jka-compr image-mode tcl elec-pair imenu sh-script smie executable desktop frameset highline benny-calendar-cfg ange-ftp comint ansi-color ring benny-unicode generic-x cl autoinsert cc-mode cc-fonts cc-guess cc-menus cc-styles cc-align cc-cmds cc-engine cc-vars cc-defs ps-print ps-print-loaddefs ps-def lpr advice dired dired-loaddefs benny-x-clipboard disp-table mm-util mail-prsvr time server protbuf cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs vc-git diff-mode easy-mmode diary-lib diary-loaddefs cal-menu calendar cal-loaddefs delsel cua-base .loaddefs benny-tools browse-url autoload radix-tree lisp-mnt mule-util cus-edit cus-start cus-load wid-edit info finder-inf package let-alist derived pcase cl-extra help-mode easymenu url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq byte-opt gv bytecomp byte-compile cconv epg epg-config subr-x cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)