<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <div name="messageBodySection"> <div dir="auto">I use run-with-idle-timer to make a auto GC timer in my init file. However,<br /> on macOS 10.15.2, my emacs randomly panic for no reason. I guess it make<br /> be some problem happens in auto GC configuration. Then I comment those<br /> block of code, my emacs doesn't panic after I comment those block of<br /> code.<br /> <br /> Here is my init configuration of GC:<br /> <br /> ```lisp <div dir="auto"><br /> (defmacro k-time (&rest body)</div> <div dir="auto">  "Measure and return the time it takes evaluating BODY.”</div> <div dir="auto">  `(let ((time (current-time)))</div> <div dir="auto">     ,@body</div> <div dir="auto">     (float-time (time-since time))))</div> <div dir="auto"><br /></div> <div dir="auto">;; Set garbage collection threshold to 1GB.</div> <div dir="auto">(setq gc-cons-threshold 1000000000)</div> <div dir="auto"><br /></div> <div dir="auto">;; When idle for 15sec run the GC no matter what.</div> <div dir="auto">(defvar k-gc-timer</div> <div dir="auto"> (run-with-idle-timer 60 t</div> <div dir="auto"> (lambda ()</div> <div dir="auto"> (message "Garbage Collector has run for %.06fsec”</div> <div dir="auto"> (k-time (garbage-collect))))))</div> <div dir="auto">```<br /> <br /> <br /> In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.2.0, NS appkit-1894.20 Version 10.15.2 (Build 19C57))<br /> of 2020-01-04 built on ccQ-rMBP.local<br /> Repository revision: cd7b1e3eeb48f7a0123968d3f33e8d96973ab2b6<br /> Repository branch: master<br /> Windowing system distributor 'Apple', version 10.3.1894<br /> System Description: Mac OS X 10.15.2<br /> <br /> Recent messages:<br /> [yas] Prepared just-in-time loading of snippets (but no snippets found).<br /> ad-handle-definition: ‘er/expand-region’ got redefined<br /> [yas] Prepared just-in-time loading of snippets successfully.<br /> Turning on magit-auto-revert-mode...done<br /> Starting Emacs daemon.<br /> When done with this frame, type C-x 5 0<br /> <br /> Configured features:<br /> RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS<br /> MODULES THREADS PDUMPER LCMS2 GMP<br /> <br /> Important settings:<br /> value of $LANG: en_US.UTF-8<br /> locale-coding-system: utf-8-unix<br /> <br /> Major mode: Lisp Interaction<br /> <br /> Minor modes in effect:<br /> paredit-mode: t<br /> helm-gtags-mode: t<br /> pyvenv-mode: t<br /> TeX-PDF-mode: t<br /> helm-mode: t<br /> helm-autoresize-mode: t<br /> helm--remap-mouse-mode: t<br /> global-magit-file-mode: t<br /> magit-auto-revert-mode: t<br /> global-git-commit-mode: t<br /> async-bytecomp-package-mode: t<br /> shell-dirtrack-mode: t<br /> google-this-mode: t<br /> delete-selection-mode: t<br /> yas-global-mode: t<br /> yas-minor-mode: t<br /> global-flycheck-mode: t<br /> flycheck-mode: t<br /> global-auto-complete-mode: t<br /> auto-complete-mode: t<br /> override-global-mode: t<br /> show-paren-mode: t<br /> global-display-line-numbers-mode: t<br /> display-line-numbers-mode: t<br /> global-hl-line-mode: t<br /> tooltip-mode: t<br /> global-eldoc-mode: t<br /> eldoc-mode: t<br /> electric-indent-mode: t<br /> mouse-wheel-mode: t<br /> menu-bar-mode: t<br /> file-name-shadow-mode: t<br /> global-font-lock-mode: t<br /> font-lock-mode: t<br /> blink-cursor-mode: t<br /> auto-composition-mode: t<br /> auto-encryption-mode: t<br /> auto-compression-mode: t<br /> line-number-mode: t<br /> transient-mark-mode: t<br /> <br /> Load-path shadows:<br /> None found.<br /> <br /> Features:<br /> (shadow sort mail-extr emacsbug sendmail winner helm-command helm-elisp<br /> helm-eval edebug backtrace helm-info paredit helm-gtags pulse init-lsp<br /> init-groovy groovy-mode init-elm init-gc init-coq init-ocaml ocamlformat<br /> init-yaml yaml-mode init-rust racer rust-mode init-js init-web-n-php<br /> ac-php ac-php-core xcscope f php-mode mode-local speedbar sb-image<br /> ezimage dframe cc-langs cc-mode-expansions cc-mode cc-fonts cc-guess<br /> cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs php-face<br /> php php-project web-mode-expansions web-mode disp-table init-typescript<br /> init-haskell init-swift init-golang init-python py-autopep8<br /> highlight-indentation company-capf company pcase help-fns radix-tree<br /> elpy elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io<br /> esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile<br /> elpy-django s elpy-refactor python-el-fgallina-expansions python<br /> tramp-sh tramp tramp-loaddefs trampver tramp-integration tramp-compat<br /> parse-time iso8601 ls-lisp ido grep files-x init-markdown markdown-mode<br /> color init-org init-dash init-tex tex-mik tex init-helm helm-swoop<br /> helm-mode helm-files helm-buffers helm-occur helm-tags helm-locate<br /> helm-grep helm-regexp helm-utils helm-help helm-types helm-config<br /> helm-easymenu helm helm-source eieio-compat helm-multi-match helm-lib<br /> init-shell init-lisp slime etags fileloop generator xref project<br /> arc-mode archive-mode noutline outline pp hyperspec init-treemacs<br /> cus-edit cus-start cus-load wid-edit ace-window avy magit-submodule<br /> magit-obsolete magit-blame magit-stash magit-reflog magit-bisect<br /> magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit<br /> magit-sequence magit-notes magit-worktree magit-tag magit-merge<br /> magit-branch magit-reset magit-files magit-refs magit-status magit<br /> magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff<br /> smerge-mode diff diff-mode magit-core magit-autorevert autorevert<br /> filenotify magit-margin magit-transient magit-process magit-mode<br /> git-commit transient magit-git magit-section magit-utils crm log-edit<br /> message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa<br /> derived epg epg-config gnus-util rmail rmail-loaddefs<br /> text-property-search time-date mm-decode mm-bodies mm-encode mail-parse<br /> rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev<br /> mail-utils gmm-utils mailheader pcvs-util add-log with-editor<br /> async-bytecomp async shell pcomplete server google-this url url-proxy<br /> url-privacy url-expand url-methods url-history url-cookie url-domsuf<br /> url-util mailcap delsel expand-region text-mode-expansions<br /> er-basic-expansions expand-region-core expand-region-custom<br /> highlight-symbol multiple-cursors mc-hide-unmatched-lines-mode<br /> mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more<br /> mc-cycle-cursors mc-edit-lines multiple-cursors-core rect cl-extra<br /> yasnippet advice flymake-proc flymake compile comint ring warnings<br /> thingatpt flycheck ansi-color find-func help-mode rx dash<br /> auto-complete-config auto-complete edmacro kmacro popup use-package<br /> use-package-ensure use-package-delight use-package-diminish<br /> use-package-bind-key bind-key easy-mmode use-package-core monokai-theme<br /> paren display-line-numbers hl-line finder-inf tex-site proof-site<br /> proof-autoloads slime-autoloads info package easymenu browse-url<br /> url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs<br /> eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv<br /> bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric<br /> uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win<br /> ucs-normalize mule-util term/common-win tool-bar dnd fontset image<br /> regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode<br /> lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch<br /> timer select scroll-bar mouse jit-lock font-lock syntax facemenu<br /> font-core term/tty-colors frame minibuffer cl-generic cham georgian<br /> utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean<br /> japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european<br /> ethiopic indian cyrillic chinese composite charscript charprop<br /> case-table epa-hook jka-cmpr-hook help simple abbrev obarray<br /> cl-preloaded nadvice loaddefs button faces cus-face macroexp files<br /> text-properties overlay sha1 md5 base64 format env code-pages mule<br /> custom widget hashtable-print-readable backquote threads kqueue cocoa ns<br /> lcms2 multi-tty make-network-process emacs)<br /> <br /> Memory information:<br /> ((conses 16 545075 84351)<br /> (symbols 48 42032 48)<br /> (strings 32 181833 11452)<br /> (string-bytes 1 5531802)<br /> (vectors 16 66217)<br /> (vector-slots 8 790875 81310)<br /> (floats 8 296 87)<br /> (intervals 56 412 423)<br /> (buffers 1000 13))<br /></div> </div> </div> </body> </html>