From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#71929: 30.0.60; crash in mark_image_cache Date: Thu, 04 Jul 2024 17:56:04 +0800 Message-ID: <87h6d5xyyz.fsf@melete.silentflame.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6210"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71929@debbugs.gnu.org, Eli Zaretskii To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 04 11:57:19 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 1sPJDK-0001Of-Th for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jul 2024 11:57:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPJD2-0005mc-VZ; Thu, 04 Jul 2024 05:57:01 -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 1sPJD2-0005mQ-A8 for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 05:57:00 -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 1sPJD2-0007ky-1S for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 05:57:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPJD3-0000cP-UQ for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 05:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2024 09:57: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.17200870042355 (code B ref 71929); Thu, 04 Jul 2024 09:57:01 +0000 Original-Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 09:56:44 +0000 Original-Received: from localhost ([127.0.0.1]:41523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPJCk-0000bt-UA for submit@debbugs.gnu.org; Thu, 04 Jul 2024 05:56:44 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:57690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPJCT-0000bL-V9 for 71929@debbugs.gnu.org; Thu, 04 Jul 2024 05:56:41 -0400 DKIM-Signature: a=rsa-sha256; b=PPOD7EH7jTtMd2vwDO9c0gyU8BC0ntXYbIIEaRLV6+PV+mTahmdNn9//LUMLsIiSVp7MvxsYdkhLaDjC1B7fGY04NdbXXpJNfbq8+c+dJCc0esKRkheOjObS2wMKXygskHsI4XQvQLI+FmZq/a0gjebzWQa7/n4kgy0EqRVeVDtGkNNkVM8Ase6m/VfVFMH90auym9ZaKxCXusDeIoe7h3ITS94XK6P9uSO66nJ1MIRhamyaUwum+7IiRVxGd+04egtKXye7xdpgsw/d0FlmYXOyEyUiFWREKd1XB5raQiIHSDuV6dFK3YLqYaSh/PZf4LudXG+AXHVkAbAYY9DuKw==; s=purelymail1; d=spwhitton.name; v=1; bh=F+9tHG1zSqT53nD0TfPWh/o3e5SkcKKFBlNsVNR7myA=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=e56VdFjZ0c9Setlm0rpHWBiSjZ3NTtpLFwyXSMhhTLT3Ln1IX2kBZop1/N228Stc16TUyS+Aps6qXorF9ITxF7zHHPmreonBJGvQ37G8x1rYCC/NCOv9B14RVYKj84Dq81UzPLgwU2mYzckZWD471D/96w7PPHj/xKr1XgxbfEwuZ6YGpg+MAnA0qe4UeRyLlfEjfVg3UTTvcZHo+XDVHuRf/jX1EjoYZjnl6eZwDdI8xJCzURQSpYr39uBKwJuNPx2Gw6eppTfAUoeQduTWlE11e0Etb31VzvsHwCyRvM0SwGZasSN07uYjOThxEmC+TUe5eciyG0Ph+7jIYK6Ddg==; s=purelymail1; d=purelymail.com; v=1; bh=F+9tHG1zSqT53nD0TfPWh/o3e5SkcKKFBlNsVNR7myA=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 71929@debbugs.gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 766074110; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 04 Jul 2024 09:56:07 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 25D837F3BCB; Thu, 4 Jul 2024 17:56:04 +0800 (CST) In-Reply-To: <87h6d54p7r.fsf@yahoo.com> (Po Lu's message of "Thu, 04 Jul 2024 14:59:36 +0800") 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:288362 Archived-At: 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: --8<---------------cut here---------------start------------->8--- (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)))))))) --8<---------------cut here---------------end--------------->8--- and --8<---------------cut here---------------start------------->8--- (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)))))))) --8<---------------cut here---------------end--------------->8--- 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 -- Sean Whitton