From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71929: 30.0.60; crash in mark_image_cache Date: Thu, 04 Jul 2024 20:28:08 +0800 Message-ID: <87a5ix4a07.fsf@yahoo.com> References: <87jzi17uot.fsf@melete.silentflame.com> <87y16h6fm3.fsf@melete.silentflame.com> <86jzi1aeje.fsf@gnu.org> <86ikxlae3p.fsf@gnu.org> <87le2h4r64.fsf@yahoo.com> <87y16hy7ye.fsf@melete.silentflame.com> <87h6d54p7r.fsf@yahoo.com> <87h6d5xyyz.fsf@melete.silentflame.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8970"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71929@debbugs.gnu.org, Eli Zaretskii To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 04 14:29:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sPLaT-000268-4V for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jul 2024 14:29:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPLaF-0007Tw-AF; Thu, 04 Jul 2024 08:29:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPLaA-0007TJ-Ek for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 08:29:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPLa8-0000Xl-OL for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 08:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPLa9-0007vB-SF for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 08:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2024 12:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71929 X-GNU-PR-Package: emacs Original-Received: via spool by 71929-submit@debbugs.gnu.org id=B71929.172009612430416 (code B ref 71929); Thu, 04 Jul 2024 12:29:01 +0000 Original-Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 12:28:44 +0000 Original-Received: from localhost ([127.0.0.1]:41735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPLZn-0007uQ-US for submit@debbugs.gnu.org; Thu, 04 Jul 2024 08:28:43 -0400 Original-Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:33943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPLZi-0007u5-Ry for 71929@debbugs.gnu.org; Thu, 04 Jul 2024 08:28:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720096105; bh=0bFxcL6Lm0K0qTos5yN52CqWMF9+n/1WVwl1YbKhTXA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=ujdewHBy1Fm7IBiZwsFYssu/Ie80zrAQ1SrZeUT8UcopDgTLjuH3LiwVs2Ah9k5gaGhn63XffzwGsvMBoknxtNalJoMN5CSeefAnWbAqjxSZ1f7tfakPiJKkzj+T+SBT4EIa+f0j25Fp6Jqcmalwti0reZ4xhOwad04lo/bc7L5E11FPbn9Be8bqkmnPcMLydVBJrta4XM4pt78mbejspyZJ5xhkyvzkELN5zvYSufZ6+bzE690qGFUzJnxRseQHKVf6gXolxerIzykj7SSWWA+kZQ9UM6jhiEMyB5kZMOm28Ae/hM57SiovsptQgpKbug4YN5McxrIdl1KeG1by+Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720096105; bh=8XtcnnNzlWhg6McxCkvrokWUsM7ORVqWTo7Lpgn/v5Q=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Qtxj9jiOxSnoLatzjAoVPfaVIJGI+rH+IECjo6nNaoLxLyjrQK0/grjh49ohyvhaMfoF5vbBVE5ql6V4PlJFip3XguVIuO35Y8MO/4pK4p2zbWRopMQLsXgRxBSEhXP3b/OconyGbBb76MtguyAnZgFm8iPB1oRl7VDmxRejs9BIdw0y2v5hshYKdWkK6591GWSCFRbkMdxVeiPqSDtbzF92SXIbQYVyndCWtS8FqkVM1glWrRU8f7SYNFNcJOiRZLnCtgljUJI2b2+klc0VvAbpMoLoQN6Gz+9qrHJtMQpPfQ9zXRsi9vauphaubNaoFDSC9D7TT1JiR/btxC2ObA== X-YMail-OSG: RCAZYCEVM1kuxZpbsixUJ9UNO1Spad1i1fRRYYOGf1Lfcw3S1q5cLgH_0878sro R7y6TaVuZS0giX5GxpH9ZqKIE_YDBK99ySuqwe2zJaGiQthoc87Q7GwBQL8ThwgsuOZ2JWsKcJfb W2xf1h_i4wMmB5SAEOkuuPxIje6OGP8QWUg3Lx5mGz3UjoCVA1vDXgB9t.i.Sokqx5NMqPGeVYq_ Y6aAOvTVlPqG1KxpyLJAG4dNe.RGmphaNoUO6EKTxJ3wAG9GrhlLM8y0EzaOZT1kRWVjphVoYhJC a8aqQN5ds756Xm8S2ycsjGPVdHB7Lc4DBseKyFCmWgUUDHB0f2ADhBDW3s79HlpDCgsBKauIMPIX bumOrEfSbUR2DkjiLQsk19CHOCaCy7ZmoHN_C8EVsaW726OTjz7B_bHDvZH1DBQ68pY3_tWvb1v. BZZreiP5vslGLk42cH.FjvK2povcssupiBlOEJGNAEe1OU90ZZql8DjvXQO4iWaO7zKmUiXkGvIA EZzwZWstQudmi.xFMHSYFXfzv5FsSEKIqr7_GJJ5UV6VceVBUAHCY3K7E7OM.M_k.suW0XIa4H6G aS1w2l5BlUSJSroxnMQLYaW8tE6lLVlMzId9FiRrsLgYYJsL.h.YX_FNkB6VAg9uA6K3AcuvKaBa hNtPLDB90tNUROpilGNzOupkmOfGG9BXfv4dliWTW5TU4cL7Dh_htqKVA0AW4XKl1C9wLw86ujkG MDokWoJGLJiODnDNngdhwSZOafJjdwDbaaZHadmbA7IdFGBh0hdPW2qBv3aYMd2ZrNq1XLwIOORS 4h5LnseGEc4znzOVKtIU5NSsgvcu.q3cV9pG9Rcq0Q X-Sonic-MF: X-Sonic-ID: 88cf541f-261d-450b-8d18-b37944ff21f4 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Thu, 4 Jul 2024 12:28:25 +0000 Original-Received: by hermes--production-sg3-7b469d9f6-w9xm6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ec58ba1f5408e63f4aa73b96c045548f; Thu, 04 Jul 2024 12:28:18 +0000 (UTC) In-Reply-To: <87h6d5xyyz.fsf@melete.silentflame.com> (Sean Whitton's message of "Thu, 04 Jul 2024 17:56:04 +0800") X-Mailer: WebService/1.1.22464 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288366 Archived-At: Sean Whitton writes: > Hello, > > On Thu 04 Jul 2024 at 02:59pm +08, Po Lu wrote: > >> Sean Whitton writes: >> >>> I don't know, but I will see if I can get information about these next >>> time I observe the crash. >>> >>> I struggle to keep the Emacs instance running gdb around very long >>> because it keeps crashing too :) >> >> What packages have you installed, and do they frequently create new >> frames or adjust the font size of existing frames? > > The packages I have installed don't do that, but I have tonnes of custom > code in my init.el to create new frames and adjust font sizes. > I normally have >=three frames open for each of two instances of Emacs. > > I have two entries in window-size-change-functions: > > (defun spw/maybe-scale-basic-faces (frame) > "Entry for `window-size-change-functions' to increase font sizes, > relative to those set by the call to `custom-theme-set-faces' above, for > frames on wide monitors, except where doing so would itself prevent fitting > two 80-column windows side-by-side in the frame." > (when (display-graphic-p frame) > (let ((wide-monitor-p (> (cadddr (assoc 'geometry > (frame-monitor-attributes frame))) > 1635))) > (when (or wide-monitor-p > ;; Check whether a previous call made any changes we might need > ;; to undo if FRAME has moved to a smaller display. > (not (eq scroll-bar-mode > (frame-parameter frame 'vertical-scroll-bars))) > (= (face-attribute 'default :height frame) 120) > (= (face-attribute 'variable-pitch :height frame) 151)) > (let* (;; Above 1635 you can scale up and still fit two 80-col windows. > ;; Below 1315 you can't fit the two windows even w/o scaling up. > (medium-p (> 1635 (frame-pixel-width frame) 1315)) > (scale-up-p (and wide-monitor-p (not medium-p)))) > (modify-frame-parameters > frame > `(;; Can fit two 80-col windows only if we disable scroll bars. > (vertical-scroll-bars . ,(and (not (and wide-monitor-p medium-p)) > scroll-bar-mode)))) > ;; Check Emacs found the relevant font on this window system, else > ;; our height values might be invalid. > (when (find-font (font-spec :foundry "SRC" :family "Hack") frame) > (set-face-attribute 'default frame > :height (if scale-up-p 120 105))) > (when (find-font (font-spec :foundry "bitstream" > :family "Bitstream Charter") > frame) > (set-face-attribute 'variable-pitch frame > :height (if scale-up-p 151 120)))))))) > > > and > > (defun spw/maybe-toggle-split-after-resize (frame) > (when (and (framep frame) > (frame-size-changed-p frame) > (= (count-windows nil frame) 2)) > (with-selected-frame frame > (cl-labels ((toggleable-window-p (window) > (with-current-buffer (window-buffer window) > (not (derived-mode-p 'gnus-summary-mode)))) > (window-info (window) > (and (toggleable-window-p window) > (cons (window-buffer window) > (cons (window-prev-buffers window) > (window-next-buffers window))))) > (set-window-info (window info) > (set-window-buffer window (car info)) > (set-window-prev-buffers window (cadr info)) > (set-window-next-buffers window (cddr info)))) > (when-let* ((this-info (window-info (selected-window))) > (next-info (window-info (next-window))) > (width (frame-width)) > (this-edges (window-edges (selected-window))) > (next-edges (window-edges (next-window)))) > (when (or (and (< width split-width-threshold) > (/= (car this-edges) (car next-edges))) > (and (>= width split-width-threshold) > (/= (cadr this-edges) (cadr next-edges)))) > ;; Ensure we start with a fresh window. > (split-window) > (other-window 1) > (delete-other-windows) > > (if (and (<= (car this-edges) (car next-edges)) > (<= (cadr this-edges) (cadr next-edges))) > ;; Want to use `pop-to-buffer' for the second window s.t. my > ;; rule for REPLs in `display-buffer-alist' takes effect. > (progn (set-window-info (selected-window) this-info) > (save-selected-window > (pop-to-buffer (car next-info)) > (set-window-info (selected-window) next-info))) > (set-window-info (selected-window) next-info) > (pop-to-buffer (car this-info)) > (set-window-info (selected-window) this-info)))))))) > > For completeness, though I doubt it is relevant, packages (installed > from Debian) are: > > elpa-bongo > elpa-dash > elpa-debian-el > elpa-dpkg-dev-el > elpa-esxml > elpa-ggtags > elpa-git-annex > elpa-git-commit > elpa-git-modes > elpa-gitattributes-mode > elpa-gitconfig-mode > elpa-gitignore-mode > elpa-haskell-tab-indent > elpa-htmlize > elpa-ledger > elpa-magit > elpa-magit-section > elpa-mailscripts > elpa-markdown-mode > elpa-message-templ > elpa-notmuch > elpa-nov > elpa-org > elpa-org-contrib > elpa-org-d20 > elpa-orgalist > elpa-paredit > elpa-pod-mode > elpa-rainbow-mode > elpa-s > elpa-seq > elpa-taxy > elpa-volume > elpa-with-editor > elpa-ws-butler > elpa-yasnippet > elpa-yasnippet-snippets Thanks. It may be of assistance if you were to run an Emacs configured `--enable-checking=yes,all' for a while and report whether any assertions fail.