unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57267: 28.1; emacs crashes when loading too many images
@ 2022-08-18  0:38 james
  2022-08-18  6:30 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: james @ 2022-08-18  0:38 UTC (permalink / raw)
  To: 57267

I wrote a small library to add thumbnails to dired here:
https://github.com/jojojames/media-thumbnail

When scrolling through images at a fast rate. (I hold down the key to go to the next line for example.),
emacs eventually crashes.

The behavior can also be seen with image-dired though I didn't test an emacs -Q for it.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Image_002dDired.html

I can reproduce more reliably with my library due to its rapid fire calls to create-image (maybe?).

# Emacs -Q

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(package-refresh-contents)

;; $ git clone https://github.com/jojojames/media-thumbnail

;; (load "/Users/james/.emacs.d/packages/emacs_28/straight/repos/media-thumbnail/media-thumbnail.el")
(load "where-media-thumbnail-is-located/media-thumbnail.el")

(require 'media-thumbnail)
(add-hook 'dired-mode-hook 'media-thumbnail-dired-mode)

M-x dired # directory with a lot of images to scroll through
C-n until emacs crashes.


- # of images in directory can range in the hundreds.
- happens consistently when scrolling through hundreds of images, though not every time




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

end of thread, other threads:[~2022-08-23  5:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-18  0:38 bug#57267: 28.1; emacs crashes when loading too many images james
2022-08-18  6:30 ` Eli Zaretskii
2022-08-18 18:49   ` james
2022-08-18 19:03     ` Eli Zaretskii
2022-08-18 20:14       ` james
2022-08-19  5:55         ` Eli Zaretskii
2022-08-19  6:01           ` james
2022-08-19  7:18             ` Gerd Möllmann
2022-08-19  7:22               ` Gerd Möllmann
2022-08-19 14:18                 ` james
2022-08-20  6:34                   ` Gerd Möllmann
2022-08-20 16:23                     ` james
2022-08-20 16:29                       ` james
2022-08-21  5:42                         ` Gerd Möllmann
2022-08-21  5:30                       ` Gerd Möllmann
2022-08-21 21:21                         ` james
2022-08-23  5:09                           ` Gerd Möllmann

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

	https://git.savannah.gnu.org/cgit/emacs.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).