From unknown Tue Jun 24 15:42:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45907: [PATCH] Shr memory singularity gif89a Resent-From: dick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2021 23:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 45907@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161075264112742 (code B ref -1); Fri, 15 Jan 2021 23:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jan 2021 23:17:21 +0000 Received: from localhost ([127.0.0.1]:41949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0YLI-0003JR-3V for submit@debbugs.gnu.org; Fri, 15 Jan 2021 18:17:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:52904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0YLF-0003JJ-QL for submit@debbugs.gnu.org; Fri, 15 Jan 2021 18:17:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0YLE-0005u6-8a for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2021 18:17:17 -0500 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:44785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0YLB-0006Jt-5U for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2021 18:17:15 -0500 Received: by mail-qk1-x734.google.com with SMTP id v126so13359505qkd.11 for ; Fri, 15 Jan 2021 15:17:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=E2LDEonGoh3PYJ6Rdre993f8VoWXL48+TCnCdCNmT4w=; b=GeN6kmcRS+oqiI1I0yFYwmQK0qrZZiu/Teqe1lmBiuxU3DyPE0Nr9d/Gyp5fW6Tg5A bBymzBfNGX9DdOW0SIHAe7MiFqOEVuUUPidvtxVn3RRQJN5JTP5PGnmzknVLPrrrpWdP vsJFiI9R/6WnI0AzDb9C3JvLfHCtpodDhqr4SSgQqE+snObGZ3rfE2InjhGcYICIZj9D O+SkS8fK2DIOBxke0gr1cxmGc0+pwvamkfFOFnNG8PGITcrAtw+GlSrO/WH31SKjwUMS eTaEYzc+pCX4VIFt7C7cXclr8Vni0T2Nybupghd+Y5IxyWOa6fqv5zRVKWaDlLWvxG8H kkTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=E2LDEonGoh3PYJ6Rdre993f8VoWXL48+TCnCdCNmT4w=; b=bltv52HPtF7XJVZ8GbYv9pYKmnctxFPmoeMU+WBGZDoNQ85uAYSEESb3ZXZpTgXyHx Zkv4Y1wSMGpCMK1U5MytPMXMHxtVVPw5IQppowiNQe5Kt/NnW2U1ei9vR2Fap7vBOsuZ zy1yHopw/iUw0frdvB8Y54aOEew4DxTUsaw8Tjor2xjtnNRcXLQpY+7+3NVvRi/OQRUr /+LlsbIjn4Wy4F5FGliGa+HVLpNigJMb32sL7xctx9ioVC/1U4ukEZlEW8bDUN0n5vpo TZQel/4bNncrafgkXQ07mGfQx9AQIpqkB5ICpZ5BDHlCUsuvs8EKXpqHrA8PmehALnPy fQvw== X-Gm-Message-State: AOAM530WxwSXG+tNO1nwf0MCLPYWf+pKGcUEOFeBC+msSxWKur5RMSEH UC71+TpTtsdgllr58FZ1w8U/ZqE/KZo= X-Google-Smtp-Source: ABdhPJylqse4vg8Cr3POJq29BMW7TkoPQ6kZRRorKhxW5cfwA+qDHcK2dGcqHoX+yNcaxJRkipAx2Q== X-Received: by 2002:a37:4394:: with SMTP id q142mr14725182qka.113.1610752631518; Fri, 15 Jan 2021 15:17:11 -0800 (PST) Received: from localhost (pool-71-190-212-171.nycmny.fios.verizon.net. [71.190.212.171]) by smtp.gmail.com with ESMTPSA id t184sm5893062qkd.100.2021.01.15.15.17.10 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jan 2021 15:17:10 -0800 (PST) From: dick Date: Fri, 15 Jan 2021 18:17:09 -0500 Message-ID: <871relaiyy.fsf@dick> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=dick.r.chiang@gmail.com; helo=mail-qk1-x734.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Disclaimer: Avoid running this if you need your machine to be up. emacs -Q --eval "(eww \"https://github.com/enphysoft/search-gmail-using-message-id\")" --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Avoid-gif89a-explosions.patch >From 7d43e6ed260c7e920b656a21a4876b87b277d81d Mon Sep 17 00:00:00 2001 From: dickmao Date: Fri, 15 Jan 2021 18:02:44 -0500 Subject: [PATCH] Avoid gif89a explosions With the increased use of gif89a, my gnus is achieving memory consumption singularity more frequently. * lisp/net/shr.el (shr-put-image): When content-type is application/octet-stream, do not attempt insert-image. * test/src/xdisp-tests.el (xdisp-tests--window-text-pixel-size, xdisp-tests--window-text-pixel-size-leading-space, xdisp-tests--window-text-pixel-size-trailing-space): `make check` currently fails without conditioning these tests for graphics display. --- lisp/net/shr.el | 53 ++++++++++++++++++++------------------ test/src/xdisp-tests.el | 57 ++++++++++++++++++++++------------------- 2 files changed, 58 insertions(+), 52 deletions(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 9c3740fccc..eb69668f32 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1109,46 +1109,49 @@ shr-put-image "Insert image SPEC with a string ALT. Return image. SPEC is either an image data blob, or a list where the first element is the data blob and the second element is the content-type." - (if (display-graphic-p) + (let (image) + (when (display-graphic-p) (let* ((size (cdr (assq 'size flags))) (data (if (consp spec) (car spec) spec)) (content-type (and (consp spec) (cadr spec))) - (start (point)) - (image (cond - ((eq size 'original) - (create-image data nil t :ascent 100 - :format content-type)) - ((eq content-type 'image/svg+xml) - (when (image-type-available-p 'svg) - (create-image data 'svg t :ascent 100))) - ((eq size 'full) - (ignore-errors - (shr-rescale-image data content-type - (plist-get flags :width) - (plist-get flags :height)))) - (t - (ignore-errors - (shr-rescale-image data content-type - (plist-get flags :width) - (plist-get flags :height))))))) + (start (point))) + (setq image + (cond + ((eq size 'original) + (create-image data nil t :ascent 100 + :format content-type)) + ((eq content-type 'image/svg+xml) + (when (image-type-available-p 'svg) + (create-image data 'svg t :ascent 100))) + ((eq content-type 'application/octet-stream) + nil) + ((eq size 'full) + (ignore-errors + (shr-rescale-image data content-type + (plist-get flags :width) + (plist-get flags :height)))) + (t + (ignore-errors + (shr-rescale-image data content-type + (plist-get flags :width) + (plist-get flags :height)))))) (when image ;; When inserting big-ish pictures, put them at the ;; beginning of the line. - (when (and (> (current-column) 0) + (when (and (> (current-column) 0) (> (car (image-size image t)) 400)) (insert "\n")) (if (eq size 'original) (insert-sliced-image image (or alt "*") nil 20 1) (insert-image image (or alt "*"))) - (put-text-property start (point) 'image-size size) - (when (and shr-image-animate + (put-text-property start (point) 'image-size size) + (when (and shr-image-animate (cdr (image-multi-frame-p image))) - (image-animate image nil 60))) - image) - (insert (or alt "")))) + (image-animate image nil 60))))) + (or image (insert (or alt ""))))) (defun shr--image-type () "Emacs image type to use when displaying images. diff --git a/test/src/xdisp-tests.el b/test/src/xdisp-tests.el index ec96d777ff..de92d26ef8 100644 --- a/test/src/xdisp-tests.el +++ b/test/src/xdisp-tests.el @@ -72,34 +72,37 @@ xdisp-tests--minibuffer-scroll (should (equal (nth 0 posns) (nth 1 posns))) (should (equal (nth 1 posns) (nth 2 posns))))) -(ert-deftest xdisp-tests--window-text-pixel-size () ;; bug#45748 - (with-temp-buffer - (insert "xxx") - (let* ((window - (display-buffer (current-buffer) '(display-buffer-in-child-frame . nil))) - (char-width (frame-char-width)) - (size (window-text-pixel-size nil t t))) - (delete-frame (window-frame window)) - (should (equal (/ (car size) char-width) 3))))) +(when (display-graphic-p) + (ert-deftest xdisp-tests--window-text-pixel-size () ;; bug#45748 + (with-temp-buffer + (insert "xxx") + (let* ((window + (display-buffer (current-buffer) '(display-buffer-in-child-frame . nil))) + (char-width (frame-char-width)) + (size (window-text-pixel-size nil t t))) + (delete-frame (window-frame window)) + (should (equal (/ (car size) char-width) 3)))))) -(ert-deftest xdisp-tests--window-text-pixel-size-leading-space () ;; bug#45748 - (with-temp-buffer - (insert " xx") - (let* ((window - (display-buffer (current-buffer) '(display-buffer-in-child-frame . nil))) - (char-width (frame-char-width)) - (size (window-text-pixel-size nil t t))) - (delete-frame (window-frame window)) - (should (equal (/ (car size) char-width) 3))))) +(when (display-graphic-p) + (ert-deftest xdisp-tests--window-text-pixel-size-leading-space () ;; bug#45748 + (with-temp-buffer + (insert " xx") + (let* ((window + (display-buffer (current-buffer) '(display-buffer-in-child-frame . nil))) + (char-width (frame-char-width)) + (size (window-text-pixel-size nil t t))) + (delete-frame (window-frame window)) + (should (equal (/ (car size) char-width) 3)))))) -(ert-deftest xdisp-tests--window-text-pixel-size-trailing-space () ;; bug#45748 - (with-temp-buffer - (insert "xx ") - (let* ((window - (display-buffer (current-buffer) '(display-buffer-in-child-frame . nil))) - (char-width (frame-char-width)) - (size (window-text-pixel-size nil t t))) - (delete-frame (window-frame window)) - (should (equal (/ (car size) char-width) 3))))) +(when (display-graphic-p) + (ert-deftest xdisp-tests--window-text-pixel-size-trailing-space () ;; bug#45748 + (with-temp-buffer + (insert "xx ") + (let* ((window + (display-buffer (current-buffer) '(display-buffer-in-child-frame . nil))) + (char-width (frame-char-width)) + (size (window-text-pixel-size nil t t))) + (delete-frame (window-frame window)) + (should (equal (/ (car size) char-width) 3)))))) ;;; xdisp-tests.el ends here -- 2.26.2 --=-=-= Content-Type: text/plain In GNU Emacs 27.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2020-12-08 built on dick Repository revision: 8e7325909363affe27c36d1181b60a625ea04d23 Repository branch: emacs-27 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.4 LTS Recent messages: Auto-saving...done Mark set Auto-saving...done Mark saved where search started [2 times] No ChangeLog data at point Auto-saving...done Mark set [2 times] Saving file /home/dick/emacs/.git/COMMIT_EDITMSG... Wrote /home/dick/emacs/.git/COMMIT_EDITMSG Git finished Configured using: 'configure --prefix=/home/dick/.local --with-rsvg=yes --with-xml2=yes' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Diff Minor modes in effect: whitespace-mode: t jupyter-repl-persistent-mode: t show-paren-mode: t global-magit-file-mode: t magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t flx-ido-mode: t projectile-mode: t override-global-mode: t pyvenv-mode: t shell-dirtrack-mode: t ido-everywhere: t beacon-mode: t global-hl-line-mode: t winner-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t mouse-wheel-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 Load-path shadows: /home/dick/ESS/lisp/obsolete/ess-swv hides /home/dick/ESS/lisp/ess-swv /home/dick/ESS/lisp/obsolete/ess-rutils hides /home/dick/ESS/lisp/ess-rutils /home/dick/ESS/lisp/obsolete/ess-noweb hides /home/dick/ESS/lisp/ess-noweb /home/dick/ESS/lisp/obsolete/mouseme hides /home/dick/ESS/lisp/mouseme /home/dick/ESS/lisp/obsolete/ess-mouse hides /home/dick/ESS/lisp/ess-mouse /home/dick/ESS/lisp/obsolete/ess-noweb-mode hides /home/dick/ESS/lisp/ess-noweb-mode /home/dick/ESS/lisp/obsolete/make-regexp hides /home/dick/ESS/lisp/make-regexp /home/dick/ESS/lisp/obsolete/ess-r-a hides /home/dick/ESS/lisp/ess-r-a /home/dick/ESS/lisp/obsolete/ess-noweb-font-lock-mode hides /home/dick/ESS/lisp/ess-noweb-font-lock-mode /home/dick/gomacro-mode/gomacro-mode hides /home/dick/.emacs.d/elpa/gomacro-mode-20200326.1103/gomacro-mode /home/dick/ESS/lisp/julia-mode-latexsubs hides /home/dick/.emacs.d/elpa/julia-mode-20200717.1915/julia-mode-latexsubs /home/dick/ESS/lisp/julia-mode hides /home/dick/.emacs.d/elpa/julia-mode-20200717.1915/julia-mode /home/dick/.emacs.d/elpa/hydra-20170924.2259/lv hides /home/dick/.emacs.d/elpa/lv-20191106.1238/lv /home/dick/melpa-stats/melpa-stats hides /home/dick/.emacs.d/elpa/melpa-stats-20190720.1833/melpa-stats /home/dick/.emacs.d/elpa/async-20200113.1745/async-autoloads hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async-autoloads /home/dick/.emacs.d/elpa/async-20200113.1745/async-bytecomp hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async-bytecomp /home/dick/.emacs.d/elpa/async-20200113.1745/smtpmail-async hides /home/dick/.local/share/emacs/site-lisp/emacs-async/smtpmail-async /home/dick/.emacs.d/elpa/async-20200113.1745/dired-async hides /home/dick/.local/share/emacs/site-lisp/emacs-async/dired-async /home/dick/.emacs.d/elpa/async-20200113.1745/async hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async /home/dick/.emacs.d/elpa/async-20200113.1745/async-pkg hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async-pkg /home/dick/.emacs.d/lisp/json hides /home/dick/.local/share/emacs/27.1.50/lisp/json /home/dick/.emacs.d/elpa/map-2.1/map hides /home/dick/.local/share/emacs/27.1.50/lisp/emacs-lisp/map Features: (shadow sort flyspell ispell footnote mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig emacsbug sendmail whitespace git-rebase loadhist emms-source-file locate flycheck let-alist go-eldoc gomacro-mode go-mode find-file magit-extras ert rect completion timezone ob-python mule-util image-file cursor-sensor vc-bzr vc-src vc-sccs vc-cvs vc-rcs sgml-mode sh-script executable markdown-mode edit-indirect jupyter-python jupyter-zmq-channel-ioloop jupyter-channel-ioloop-comm jupyter-channel-ioloop jupyter-ioloop-comm jupyter-ioloop jupyter-zmq-channel zmq zmq-core jupyter-kernel-process-manager edebug dired-aux ein-ipynb-mode js ein-process ein-jupyter exec-path-from-shell ein-dev ein-notebook ein-gat ein-python-send ein-traceback ein-shared-output ein-pytools ein-pager view ein-completer ein-notification ein-scratchsheet ein-worksheet poly-ein display-line-numbers ein-kill-ring ein-kernelinfo ein-file ein-notebooklist ein-contents-api goto-addr ag vc-svn find-dired poly-rst rst polymode poly-lock polymode-base polymode-weave polymode-export polymode-compat polymode-methods polymode-core polymode-classes eieio-custom vc vc-dispatcher face-remap ivy delsel colir ivy-overlay ffap eieio-opt speedbar sb-image ezimage dframe make-mode tramp-archive tramp-gvfs zeroconf dbus pulse dumb-jump f help-fns radix-tree cl-print debug backtrace org-element avl-tree ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m org-tempo tempo org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-R ob-jupyter jupyter-org-extensions jupyter-org-client jupyter-repl jupyter-kernel-manager jupyter-channel jupyter-widget-client simple-httpd jupyter-client jupyter-comm-layer jupyter-messages hmac-def jupyter-mime jupyter-kernelspec jupyter-env jupyter-base eieio-base ob-emacs-lisp ob-ein ein-cell ein-output-area shr svg dom ein-kernel ein-ipdb ein-query ein-events ein-websocket websocket bindat ein-node ewoc ein-log ein-classes ein-core request ein-utils deferred ob ob-tangle org-src ob-ref ob-lob ob-table ob-exp ob-comint ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs network-stream url-http url-gw nsm url-cache url-auth misearch multi-isearch vc-git bug-reference google-c-style cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs paredit-ext paredit ein dired-x inf-ruby ruby-mode smie melpa-stats ht dash-functional anaphora a pp sx key-combo company haskell-interactive-mode haskell-presentation-mode haskell-process haskell-session haskell-compile haskell-mode haskell-cabal haskell-utils haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme rx haskell-align-imports haskell-complete-module haskell-ghc-support dabbrev haskell-customize hydra lv use-package-ensure paren magit-patch-changelog magit-patch magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc dired dired-loaddefs rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async pcase server dash flx-ido flx solarized-theme solarized-definitions projectile ibuf-ext ibuffer ibuffer-loaddefs gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr google-translate-default-ui google-translate-core-ui color google-translate-core google-translate-tk google-translate-backend use-package-bind-key bind-key auto-complete popup ess-r-mode ess-r-flymake flymake-proc flymake warnings thingatpt ess-r-xref ess-trns ess-r-package ess-r-completion ess-roxy ess-r-syntax ess-rd noutline outline hideshow ess-s-lang ess-help ess-mode ess-inf ess-tracebug ess ess-utils ess-custom emms-player-mplayer emms-player-simple emms emms-compat twittering-mode epa derived epg epg-config tls gnutls puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap xml cl fzf elpy advice elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django s elpy-refactor diff-mode easy-mmode python tramp-sh tramp tramp-loaddefs trampver tramp-integration tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp format-spec ido grep compile comint ansi-color files-x etags fileloop generator xref project cus-edit cus-start cus-load wid-edit cl-extra help-mode use-package-core beacon hl-line winner ring finder-inf howdoyou-autoloads json-reformat-autoloads json-snatcher-autoloads edmacro kmacro sml-mode-autoloads tornado-template-mode-autoloads info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1386698 198163) (symbols 48 64718 34) (strings 32 252337 33235) (string-bytes 1 8883059) (vectors 16 133645) (vector-slots 8 3381503 289432) (floats 8 770 3242) (intervals 56 71497 1958) (buffers 1000 129)) --=-=-=-- From unknown Tue Jun 24 15:42:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45907: [PATCH] Shr memory singularity gif89a Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2021 10:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: dick Cc: 45907@debbugs.gnu.org Received: via spool by 45907-submit@debbugs.gnu.org id=B45907.161096672523016 (code B ref 45907); Mon, 18 Jan 2021 10:46:01 +0000 Received: (at 45907) by debbugs.gnu.org; 18 Jan 2021 10:45:25 +0000 Received: from localhost ([127.0.0.1]:46444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1S2H-0005zA-EQ for submit@debbugs.gnu.org; Mon, 18 Jan 2021 05:45:25 -0500 Received: from mail-wr1-f41.google.com ([209.85.221.41]:43684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1S2F-0005yu-VV for 45907@debbugs.gnu.org; Mon, 18 Jan 2021 05:45:24 -0500 Received: by mail-wr1-f41.google.com with SMTP id y17so15949434wrr.10 for <45907@debbugs.gnu.org>; Mon, 18 Jan 2021 02:45:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=FQUIb6LyrfC/kjXYoDTYZoYx6un72mP9oszvDbrsbCY=; b=XQtXwMheBmYmixhf5kc06tM95sXBFJwQ2OGnT4BoyXlqkyYeZzDyeCf83ewt5ni1kk VmfVFu0jztC8o1l4OH0Oq6n3AxwXTe9IVMz58jK3aq7fPnex5V4X4JLOCY7BlE1+XqyP 9V5qPdhSHnuiWyk0g1AoLvWHu7h0VxNUdUwvnQr6GYbeiNo/xj4qKJc52IipJYyAheEe 8PkLdg+bCvHbIumccIUFKA7jh8+g3QxS/a5Gic837mY0Tk0JVuYmhRjOSCvYpUTFoSFC 29EmwOlJ0rbzEO+zHR5MAoWE5HVMHARJ2As8PU6yDOgLgtkyQ4JX8WsWVV2N1Nq5qEy3 ICRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=FQUIb6LyrfC/kjXYoDTYZoYx6un72mP9oszvDbrsbCY=; b=frzKa3CrnHQ2ZSarYxAgNW1YBWuOpASFXz5JsFjo1akal44W0zdSz/0NJulHt5Dq73 o+VIqDh6tLBsZSUZu0aXokT/DIJ9NZ+5tBeWFUXke8n6LRvodz5oDWoQlKskqnYDGmUI vccXRsY+UKeVCHbe/GM2aOydgmC0saKuzDehQkNBQslTczk7UCkCfA8fPbSn4rT/KRbl 3vCXrW0VCA7X600K/v/9889EcI03f3usNwpWBeTqmpGyj86hUSzkFGWWH/91qLUYW/cL WCn80zMq7Z9zd++Wf6FGcfukSSQLLE9SSODvZyYK7zH+K/QzNujVtLNq4+kH0Nda1AmP eMDw== X-Gm-Message-State: AOAM532Mcc9AEoRjrDK4k6Z2Fs1DwfE+1gr0/25nWBb5SWDauAnVrYKP yVuvweMwRAMzFa/IV3Bt7S0FjqmAwlo= X-Google-Smtp-Source: ABdhPJzc5xZPwZ8FjjCcZyxR2wGvyirSXYcOfNY1bqOCz/wZCNhJr+zDTzihwheHmVRSe3b+0pQj8A== X-Received: by 2002:adf:e348:: with SMTP id n8mr25634923wrj.148.1610966717600; Mon, 18 Jan 2021 02:45:17 -0800 (PST) Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id n6sm6658062wmi.23.2021.01.18.02.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 02:45:16 -0800 (PST) From: Robert Pluim References: <871relaiyy.fsf@dick> Date: Mon, 18 Jan 2021 11:45:14 +0100 In-Reply-To: <871relaiyy.fsf@dick> (dick's message of "Fri, 15 Jan 2021 18:17:09 -0500") Message-ID: <87ft2ywmkl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Fri, 15 Jan 2021 18:17:09 -0500, dick said: Your patch has spurious whitespace changes. Also, your checks for display-graphic-p are not the right thing to do: the tests need to be fixed to work, rather than skipped (I think Eli may already have done this). Robert From unknown Tue Jun 24 15:42:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45907: [PATCH] Shr memory singularity gif89a Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 05:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: dick Cc: 45907@debbugs.gnu.org Received: via spool by 45907-submit@debbugs.gnu.org id=B45907.161103588727330 (code B ref 45907); Tue, 19 Jan 2021 05:59:02 +0000 Received: (at 45907) by debbugs.gnu.org; 19 Jan 2021 05:58:07 +0000 Received: from localhost ([127.0.0.1]:49124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1k1m-00076k-Ne for submit@debbugs.gnu.org; Tue, 19 Jan 2021 00:58:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1k1k-00076D-SA for 45907@debbugs.gnu.org; Tue, 19 Jan 2021 00:58:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6cDpj/6LugI2YbpunLPt6yCPdCuYGTlDwpWm6FH7czI=; b=XYLNcgncEdCSYrDRSy/KDVsAIL M1dIg5M6xgiKJ8G4Nd1Uj0HJGF62tvsmMSMoTQElatGlbb/vmkllQyvhejCln3OpRYNNaUnMAhOdc rVreRBkwpxsplDAYGX+Z702l6HC0jWkc+mlHIGC7mkOvvR9ksDaP1IAtw9L9P678uBZw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1k1Y-00049D-JJ; Tue, 19 Jan 2021 06:57:58 +0100 From: Lars Ingebrigtsen References: <871relaiyy.fsf@dick> X-Now-Playing: Spiders Webb's _For Discos Only (2)_: "I don't know what's on your Mind (Special 12inch Disco Mix)" Date: Tue, 19 Jan 2021 06:57:47 +0100 In-Reply-To: <871relaiyy.fsf@dick> (dick's message of "Fri, 15 Jan 2021 18:17:09 -0500") Message-ID: <87v9bto4dg.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: dick writes: > With the increased use of gif89a, my gnus is achieving memory > consumption singularity more frequently. > > * lisp/net/shr.el (shr-put-image): When content-type is > application/octet-stream, do no [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) dick writes: > With the increased use of gif89a, my gnus is achieving memory > consumption singularity more frequently. > > * lisp/net/shr.el (shr-put-image): When content-type is > application/octet-stream, do not attempt insert-image. This was a slightly confusing bug report and patch, but I think this was the proposed functional change: diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 9c3740fccc..c05ac17521 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1124,6 +1124,8 @@ shr-put-image ((eq content-type 'image/svg+xml) (when (image-type-available-p 'svg) (create-image data 'svg t :ascent 100))) + ((eq content-type 'application/octet-stream) + nil) ((eq size 'full) (ignore-errors (shr-rescale-image data content-type But I don't think that makes much sense: It doesn't really matter what the content type is. The problem is that Emacs chokes on a particular GIF file. To reproduce: curl "https://raw.githubusercontent.com/enphysoft/search-gmail-using-message-id/main/images/lgmid.gif" > /tmp/lgmid.gif emacs -Q /tmp/lgmid.gif This initially hangs Emacs, but then it finally is able to display the file... but Emacs uses 2GB worth of memory and 100% CPU. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 00:58:27 2021 Received: (at control) by debbugs.gnu.org; 19 Jan 2021 05:58:27 +0000 Received: from localhost ([127.0.0.1]:49127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1k27-00077J-0L for submit@debbugs.gnu.org; Tue, 19 Jan 2021 00:58:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1k25-000774-5d for control@debbugs.gnu.org; Tue, 19 Jan 2021 00:58:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Iz4X3xSUjd/QMiZNOfuWxTAaYbwJhYGnkg3oCn1jdf4=; b=pxkaaZRzEyFfzTrq5aj0q5t0UV GtttuKefaEiiNdsxRKX/E7gl61kOEUFRbSwsAYZ+X61Oio029HqWYQkt/yCHGYs4yW6cFWKNQ54of 9OUf43D9s6nmttEN7fewx7dsBDZDtoVmFkv9Us/8nf6mzhBwWO1C1Zkmexdsp/95OzFg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1k1x-00049l-ID for control@debbugs.gnu.org; Tue, 19 Jan 2021 06:58:19 +0100 Date: Tue, 19 Jan 2021 06:58:16 +0100 Message-Id: <87turdo4cn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45907 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: retitle 45907 Emacs has problems with some GIF files quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) retitle 45907 Emacs has problems with some GIF files quit From unknown Tue Jun 24 15:42:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45907: [PATCH] Shr memory singularity gif89a Resent-From: dick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 16:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: 45907@debbugs.gnu.org Received: via spool by 45907-submit@debbugs.gnu.org id=B45907.16110752062666 (code B ref 45907); Tue, 19 Jan 2021 16:54:02 +0000 Received: (at 45907) by debbugs.gnu.org; 19 Jan 2021 16:53:26 +0000 Received: from localhost ([127.0.0.1]:51436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1uFy-0000gw-Dd for submit@debbugs.gnu.org; Tue, 19 Jan 2021 11:53:26 -0500 Received: from mail-qv1-f45.google.com ([209.85.219.45]:35350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1uFv-0000gh-Ju for 45907@debbugs.gnu.org; Tue, 19 Jan 2021 11:53:25 -0500 Received: by mail-qv1-f45.google.com with SMTP id l14so9442878qvh.2 for <45907@debbugs.gnu.org>; Tue, 19 Jan 2021 08:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=GFe8ua5WV7DwNpHtHJuiPSoOHpi0/2OT2gCgAcDQk5g=; b=FCWLvb4xoIIdDtIMLwTsTd3066enhxRHc9pJqG7EIa4sy1WnnYUbzRnGC3ekiuNBx/ x6heOU5mbk5oyC4EtZSUYaqJwNo5SwHPmg+bOCWmzDuP8jiHdAGm3E1WrESjqRA7m5Vp w+esJ0gZhC9317n7DSDRXpbEdS0rJqsoHj0XI8VS2fSs8qa4kdNNvj8mMhmIcTn/7fih P5MRT5he6tDJ9k2+OFQTlGgB8QTSr8b90CUh7clJLcFeAaVh9T06ugGlnHF7cdR3rCd7 yXzJkeP4ql7RC69r9tIlSwb456SFxRFWg4X7jZhk0zLm77beq8/z0oooJTV3P/tgRS/1 sDHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=GFe8ua5WV7DwNpHtHJuiPSoOHpi0/2OT2gCgAcDQk5g=; b=MDLyCrdlYUpY9AKLX4+x5+y/J8Rc/5E0P75thNVwUPpkgz0IpDq7lE8Jrlyo75PtY7 Ksqq3sDCrMR5dot55TQgiRawQq+yJITPaaQRd+SiZxHx9sm/Ps1EcJXkHwDX4pVNmGCJ OYqhTy3ByVTc9jEMSAuZ8Gna5UpFZ7YhphWAxfAaA5hcoOlNvMgLe8AjuMJ5b2sff0Ec 3pyag/t+/4LKTo7VqL1H7l/BkwrGI+YE26CvyjcfR37bx1EI8dZ9VNyKBmJHOiuSXjpA ixl3+KqUCeTvxvOawaLzpUMdJll+4juzl4kMbRbJ/6DJ57eSpk1qZphlUUClX4B9cKt2 Eg1g== X-Gm-Message-State: AOAM53359SjgeOQBrMbks+QcxIW4+4IdwsrRLiIE0HxmyGIn2DC3lazi YVQkFzc/6AyLs1Vq0erJrCQ= X-Google-Smtp-Source: ABdhPJzB0ukH0NVyvtlEvJ3GA8e27XJofUcrZClhXh/hcHe3beK+Ax6afIN4aCYSE0kxa/qIJmcLoQ== X-Received: by 2002:a0c:edab:: with SMTP id h11mr5006711qvr.23.1611075198066; Tue, 19 Jan 2021 08:53:18 -0800 (PST) Received: from localhost (pool-71-190-212-171.nycmny.fios.verizon.net. [71.190.212.171]) by smtp.gmail.com with ESMTPSA id i18sm13271787qkg.66.2021.01.19.08.53.17 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jan 2021 08:53:17 -0800 (PST) From: dick References: <871relaiyy.fsf@dick> <87v9bto4dg.fsf@gnus.org> Date: Tue, 19 Jan 2021 11:53:16 -0500 In-Reply-To: <87v9bto4dg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 19 Jan 2021 06:57:47 +0100") Message-ID: <87eeig50n7.fsf@dick> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) LI> curl LI> "https://raw.githubusercontent.com/enphysoft/search-gmail-using-message-id/main/images/lgmid.gif" LI> > /tmp/lgmid.gif emacs -Q /tmp/lgmid.gif This does not reproduce the error because it doesn't hit `shr-put-image` nor `insert-image`. The error that I saw was memory being consumed *without limit*. From unknown Tue Jun 24 15:42:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45907: [PATCH] Shr memory singularity gif89a Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: dick Cc: 45907@debbugs.gnu.org Received: via spool by 45907-submit@debbugs.gnu.org id=B45907.16110784728295 (code B ref 45907); Tue, 19 Jan 2021 17:48:02 +0000 Received: (at 45907) by debbugs.gnu.org; 19 Jan 2021 17:47:52 +0000 Received: from localhost ([127.0.0.1]:51507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1v6e-00029i-IX for submit@debbugs.gnu.org; Tue, 19 Jan 2021 12:47:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]:33930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1v6c-00029W-Pj for 45907@debbugs.gnu.org; Tue, 19 Jan 2021 12:47:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vTdDZoLKkWIlJGgrL+g949u+kYP90jjoHo/hzYiY3EM=; b=GzUr2Dgm4pCUA9HhLVYv3BDFMz XjGULPj574wN8jHx16jjt0Yqo34Ru3DvUSTjB1dsevreL9FEpNs0+Zryl/e0pveOC8L8+vy44iFzF OFjgM5ZkUJT41koNKiJzqT6wbinBc7Qy0lRMM6H23T3/TCZc8RPXnsPlbfJ5mdEZ5Cis=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1v6L-0002jH-RN; Tue, 19 Jan 2021 18:47:44 +0100 From: Lars Ingebrigtsen References: <871relaiyy.fsf@dick> <87v9bto4dg.fsf@gnus.org> <87eeig50n7.fsf@dick> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUqKpIyLFpKI3Uf FiUGBAjOcZ8uVbz////Z7JBtAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UBEwMKFvnsEtIAAAGKSURB VDjLtdTBcoJADABQROUMAp7rIp4Li57V3XIuaHrGMpP//4QGNsBipzOd6TTAJY+Q7II6zl9i4X9L BV0qkTJ7urPQWvkLqZX0HVeIlwEoTyG1BpmJLliWmuECN9mDMLAyQHWQqI1VEg2g4kDlFhQDvMXA IOZwzH6ASwDcYwY0bl7xVDNQ1F0WVwt4qm5epbU1lVlHxn6dYClloTQAF07wGVDIuOJe+bglTt+a ehtRE/CtQ2xGWM3hwi1cWIp0H1rCsAYXIAELcmeC3IaLgbReA6QgqioGnssCjrsp8Sc4VnEdhgOc e4D3FOrjPb0rgL3dpIeU4HgD3kjTBGqg8wZ7mnnYAwM0ExlEdOnAwLbp11GndIgiP3wopGzZGui+ ViF2XQYjhpMzgkhkUWKLyo+2j8IsRIh+cWJfYoMnutChswdTQo9CfM3Qa7yFDSIqH4jKw1PrzSrE rmwRtziBO8ihPSFmHSyeoetC/blifJbXBM22ac4YMLjT9xrar9CU2L/gX/8N/Fd8Acc3qpqC/Xro AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAxLTE5VDAzOjEwOjIyKzAwOjAwP3XirQAAACV0RVh0 ZGF0ZTptb2RpZnkAMjAyMS0wMS0xOVQwMzoxMDoyMiswMDowME4oWhEAAAAASUVORK5CYII= X-Now-Playing: Ultra =?UTF-8?Q?Nat=C3=A9's?= _Blue Notes in the Basement_: "Is It Love?" Date: Tue, 19 Jan 2021 18:47:32 +0100 In-Reply-To: <87eeig50n7.fsf@dick> (dick's message of "Tue, 19 Jan 2021 11:53:16 -0500") Message-ID: <87r1mghl8r.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: dick writes: > LI> curl > LI> "https://raw.githubusercontent.com/enphysoft/search-gmail-using-message-id/main/images/lgmid.gif" > LI> > /tmp/lgmid.gif emacs -Q /tmp/lgmid.gif > > This does not reproduce the error [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) dick writes: > LI> curl > LI> "https://raw.githubusercontent.com/enphysoft/search-gmail-using-message-id/main/images/lgmid.gif" > LI> > /tmp/lgmid.gif emacs -Q /tmp/lgmid.gif > > This does not reproduce the error because it doesn't hit `shr-put-image` nor > `insert-image`. The error that I saw was memory being consumed *without limit*. You didn't really say what you were seeing. When doing the test case, I see Emacs grow to 2.6GB, and there it stops, which is the same I see when doing ./src/emacs -Q -f eww-browse file:///tmp/lgmid.gif In both cases, my Emacs says that it's stopping the animation because it's too big (in both Emacs 27 and on the trunk). In any case, whether the Content-Type is image/* or application/* makes no difference, of course. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 12:50:24 2021 Received: (at control) by debbugs.gnu.org; 19 Jan 2021 17:50:24 +0000 Received: from localhost ([127.0.0.1]:51511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1v95-0002Df-Vd for submit@debbugs.gnu.org; Tue, 19 Jan 2021 12:50:24 -0500 Received: from quimby.gnus.org ([95.216.78.240]:33960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1v93-0002DS-Uv for control@debbugs.gnu.org; Tue, 19 Jan 2021 12:50:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QrO5X1g8OD6rAB/dAUy9pPmlp9kSo/kG+9vEWocVijY=; b=VXbwYhQRLXtIyAQZNIN4AgV/T/ liYICABhErKAvPB5AroS1wOF7RVoRmsPafLBvCJW5Ud0AXJmW1Z2FFKJeQKikgQHptnTbEXwpnM5h jiEUiAgEwYGypi6GjCgUwUC/i8BlwEYoLgd9WovimKcXA51GSOkPsZuj7xQkCil25BK0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1v8w-0002jo-9z for control@debbugs.gnu.org; Tue, 19 Jan 2021 18:50:16 +0100 Date: Tue, 19 Jan 2021 18:50:13 +0100 Message-Id: <87pn20hl4a.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45907 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 45907 - patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 45907 - patch quit From unknown Tue Jun 24 15:42:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45907: [PATCH] Shr memory singularity gif89a Resent-From: dick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 23:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 45907@debbugs.gnu.org Received: via spool by 45907-submit@debbugs.gnu.org id=B45907.161109884510178 (code B ref 45907); Tue, 19 Jan 2021 23:28:02 +0000 Received: (at 45907) by debbugs.gnu.org; 19 Jan 2021 23:27:25 +0000 Received: from localhost ([127.0.0.1]:52101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l20PF-0002e4-4Q for submit@debbugs.gnu.org; Tue, 19 Jan 2021 18:27:25 -0500 Received: from mail-qv1-f42.google.com ([209.85.219.42]:39107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l20PC-0002dq-KG for 45907@debbugs.gnu.org; Tue, 19 Jan 2021 18:27:24 -0500 Received: by mail-qv1-f42.google.com with SMTP id s6so10053937qvn.6 for <45907@debbugs.gnu.org>; Tue, 19 Jan 2021 15:27:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=mcfbAd07/v7fDdADyO2NZgGrwLmIKwSHtOIIgQ9SZSI=; b=MUCAwHN7ki7Hqj7p4QKJ7bg7i7Xyr6kEvEwhNI1wx1w5zw9QbvIClKQ75nklYndXZ2 lxyyea4R5TpUQVKbkqV1y/+WXOQjyyMxL3OuRD2LH36dL1L0l+stGlAkezh7ors7nDEe vJCZGiaMdSfM+u+yIz7Qdcp6KmmQqHeiD+DJsWPEUpiLlVGwc/rFyXvptvckHb2Akwxv oWTXXS6XnXMuGLlYPT/xdvoU6zNQjjjTUwl6IC3yVQ84I8BndtCNjupekF70Q56JOZ0j +y3VRI1XoWHC1tfgHhXkGhBOJ57r7POtrCpZ3Y6ZXND1I1x6M0nj24L0Sar/Mpp4Cv9A PPRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=mcfbAd07/v7fDdADyO2NZgGrwLmIKwSHtOIIgQ9SZSI=; b=dsu0fAPC6cWYVAV1pP5PRQWc+BLM6zrtPaFm5RcPbtl/qZGBthDbGgVd32Vn5CDznJ av12zLflWtmkgG6qn6zlNeYYjV0Fcxn8+ltz+pBEaoaYUIrg7LdrmAnTbFnW8aExUjlx 35VfYuonF+oTqP3e+8Shgy3IRi2EtG2/ByZfEzo7hGvVWO5S+Iy6Z8i6z1d7MR4wZhwT PlOoVFFREIFgYhX68q8MzXiRKGlo4c4uSsRHmjV71eocupi6GMns0p+wCkrViY8jbhnn +Kf//+AG6fU4LMoWXhswnm6rUicYcmEIOhtd4av+5+5Ok5Q2fRxI80v0F75jIq1mLZUV G5kw== X-Gm-Message-State: AOAM531aqijzvzaZ78peBe/o2vRXxM0dQf6easpOHLP6ikihskSmwxGs cRo+Pk725fMSubvImJ4omhZs6uCU5Fg= X-Google-Smtp-Source: ABdhPJxgbGjRcg9Yvw65N+YobiByHjm3DolpQob6lu18PZH+tBeinOSbV3hCYWQOUArfTLksaquN6A== X-Received: by 2002:a0c:ac43:: with SMTP id m3mr6640782qvb.37.1611098837018; Tue, 19 Jan 2021 15:27:17 -0800 (PST) Received: from localhost (pool-71-190-212-171.nycmny.fios.verizon.net. [71.190.212.171]) by smtp.gmail.com with ESMTPSA id d140sm159967qkc.111.2021.01.19.15.27.16 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jan 2021 15:27:16 -0800 (PST) From: dick References: <871relaiyy.fsf@dick> <87v9bto4dg.fsf@gnus.org> <87eeig50n7.fsf@dick> <87r1mghl8r.fsf@gnus.org> Date: Tue, 19 Jan 2021 18:27:15 -0500 In-Reply-To: <87r1mghl8r.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 19 Jan 2021 18:47:32 +0100") Message-ID: <874kjc4iek.fsf@dick> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ah, my emacs was with-imagemagick, and therein lay the singularity. I confirm the behavior you see without with-imagemagick. Closing. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 18:28:28 2021 Received: (at control) by debbugs.gnu.org; 19 Jan 2021 23:28:28 +0000 Received: from localhost ([127.0.0.1]:52105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l20QG-0002fr-Kj for submit@debbugs.gnu.org; Tue, 19 Jan 2021 18:28:28 -0500 Received: from mail-qk1-f182.google.com ([209.85.222.182]:46907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l20QD-0002fa-Oq for control@debbugs.gnu.org; Tue, 19 Jan 2021 18:28:27 -0500 Received: by mail-qk1-f182.google.com with SMTP id d14so23674955qkc.13 for ; Tue, 19 Jan 2021 15:28:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:to:from:subject; bh=HHwiBPyEQwfHHyI4FsdM/S+gCsosd4EJB1nbcQG4yUc=; b=m3aUi9eyhJ6cIOdQZG0phwiU7hZlwIURWBOASrPc8m8GVvOxzLOfhQ3I+mPft7/NfE 2BdbePqJ7UZX9BzdNPn5repQ1yS8ziwRwiMKyRDIRWhatFrDX3wNrddRWRWig2tiHoNd DYZbVNllTJ+irGg0ishjqrPNUKik/kkzweOevmgL0rK34XDwGrSowKar3pLWvbnQYubT L8NgNLo8i6+mGPYdUKr+c0yPD4uoheF5iNrTi6LZ/N6ID9IBq8YGXfcNsK7qyck4rbLn Ac0vz5BtnnVY0ucO070oANk5/bMO7lMkNgbWam0G25tDQ85hy+ah7jAzhyybjy7BJd9+ Lo0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:to:from:subject; bh=HHwiBPyEQwfHHyI4FsdM/S+gCsosd4EJB1nbcQG4yUc=; b=uCZ9szoKPheHKL3aFx2j164qzKGNvZaO2eheS8ADx7brz0B0fuLn73nuyB7GvrPy7t Ymc6TIE2uLH8yefmY28MxQFGF0cCo+7FYEQddUKGRFvvnHjB/izPRO73DK9xPVANXFOl Qt6wZ0nIZOCMZZWmwVKTcTPvZNUNVdWDgr1DMX8gU/vXQgKJpfomUpZaF18evTGjYuAz WYnqz+aTXvdWCAd34YdkZ3Fr8KL0ikw6xeba4/LqVbHNV5Nox1/map6hSwEYj7RPgNxa MwWciKlgDiQ09s19dyesRgSCSIXM+wXq5diRHTZRzt8EDIx167IT8Elsm+UdMQcczZYl jM3g== X-Gm-Message-State: AOAM531zU1VGMCZ4CxZziVR5SIK8XPFgnp3hkwslg8BXbToIPEtsTT9O xsVX6fRq+O7JLB5JIPUspv1qoV77lus= X-Google-Smtp-Source: ABdhPJwxejTYntXtFXBnTGufnuTMTl2J4S6qk5Kw4D4L+XN4aKYPx79DhCamm2fnc/XJiYw2CSaZFQ== X-Received: by 2002:a37:bd84:: with SMTP id n126mr6876684qkf.54.1611098900112; Tue, 19 Jan 2021 15:28:20 -0800 (PST) Received: from localhost (pool-71-190-212-171.nycmny.fios.verizon.net. [71.190.212.171]) by smtp.gmail.com with ESMTPSA id g128sm180758qkd.91.2021.01.19.15.28.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jan 2021 15:28:19 -0800 (PST) Message-ID: <60076b13.1c69fb81.edad4.151b@mx.google.com> Date: Tue, 19 Jan 2021 18:28:19 -0500 To: control@debbugs.gnu.org From: dick Subject: control message for bug #45907 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 45907 27.2 quit