emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-element-cache getting invalid search bound [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]
@ 2025-01-07  2:02 WANG Yizhen
  2025-01-07 17:45 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: WANG Yizhen @ 2025-01-07  2:02 UTC (permalink / raw)
  To: emacs-orgmode

Dear Org-mode mail list,

I am running emacs-pgtk on a wsl2 debian distro. I have been 
encountering errors and warnings when trying to convert latex fragments 
into images via C-c C-x C-l, which gives Arithmetic overflow error.

There has been a similar report here: 
https://www.reddit.com/r/emacs/comments/193f37f/orgmode_orglatexpreview_results_in_arithmetic/

It might be a problem with wsl, but forgive me for not being able to go 
deeper.

Best regards,

Yizhen

------------------------------------------------------------------------



Emacs  : GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 
3.24.43, cairo version 1.18.2)
  of 2024-12-08, modified by Debian
Package: Org mode version 9.6.15 (release_9.6.15 @ 
/usr/share/emacs/29.4/lisp/org/)

current state:
==============
(setq
  org-link-elisp-confirm-function 'yes-or-no-p
  org-roam-db-gc-threshold 134217728
  org-bibtex-headline-format-function #[257 "\300\x01\236A\207" [:title] 3 
"\n\n(fn ENTRY)"]
  org-export-with-sub-superscripts '{}
  org-log-done 'time
  org-roam-node-display-template #("${title:*} ${tags:10}" 11 21 (face 
org-tag))
  org-persist-after-read-hook '(org-element--cache-persist-after-read)
  org-latex-toc-command 
"\\pagestyle{empty}\n\\tableofcontents\n\\clearpage\n\n\\setcounter{page}{1}\n\\pagestyle{plain}\n\n"
  org-export-before-parsing-hook '(org-attach-expand-links)
  org-latex-compiler "xelatex"
  org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe
                             org-babel-header-arg-expand)
  org-roam-find-file-hook '(org-roam-buffer--setup-redisplay-h
org-roam--register-completion-functions-h 
org-roam--replace-roam-links-on-save-h 
org-roam-db-autosync--setup-update-on-save-h)
  org-latex-title-command "\\maketitle\n\\thispagestyle{empty}"
  org-archive-hook '(org-attach-archive-delete-maybe)
  org-odt-format-inlinetask-function 
'org-odt-format-inlinetask-default-function
  org-ascii-format-drawer-function #[771 "\x01\207" [] 4 "\n\n(fn NAME 
CONTENTS WIDTH)"]
  org-cycle-hook '(org-cycle-hide-archived-subtrees
                   org-cycle-show-empty-lines
org-cycle-optimize-window-after-visibility-change 
org-cycle-display-inline-images)
  org-startup-numerated t
  org-persist-before-read-hook '(org-element--cache-persist-before-read)
  org-mode-hook '(beginend-org-mode toc-org-mode
                  (closure (t) nil (org-superstar-mode))
                  #[0 "\300\301\302\303\304$\207"
                    [add-hook change-major-mode-hook
                     org-fold-show-all append local]
                    5]
                  #[0 "\300\301\302\303\304$\207"
                    [add-hook change-major-mode-hook
                     org-babel-show-result-all append local]
                    5]
                  org-babel-result-hide-spec
                  org-babel-hide-all-hashes
                  #[0 "\301\211\x10\207"
                    [imenu-create-index-function
                     org-imenu-get-tree]
                    2]
                  solarion/org-mode-setup smartparens-mode
                  iscroll-mode
                  (closure (t) nil
                   (setq show-trailing-whitespace t))
                  )
  org-babel-load-languages '((emacs-lisp . t) (shell . t)
                             (latex . t) (python . t)
                             (matlab . t) (gnuplot . t))
  org-id-locations-file "/home/wang1zhen/org-roam/.orgids"
  org-roam-ref-annotation-function 'org-roam-ref-read--annotation
  outline-mode-hook '(beginend-outline-mode)
  org-agenda-time-grid '((daily today require-timed)
                         (800 1000 1200 1400 1600 1800 2000)
                         "......" "----------------")
  org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
  org-ellipsis "    [+]"
  org-roam-db-node-include-function #[0 "\300\207" [t] 1]
  org-latex-format-headline-function 
'org-latex-format-headline-default-function
  org-confirm-shell-link-function 'yes-or-no-p
  org-adapt-indentation t
  org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME 
CONTENTS)"]
  outline-isearch-open-invisible-function 'outline-isearch-open-invisible
  org-export-before-processing-hook 
'(org-blackfriday--reset-org-blackfriday--code-block-num-backticks)
  org-roam-ui-open-on-start nil
  org-highlight-latex-and-related '(native script entities)
  org-odt-format-headline-function 'org-odt-format-headline-default-function
  org-agenda-mode-hook '(beginend-org-agenda-mode)
  org-roam-capture-preface-hook 
'(org-roam-dailies--override-capture-time-h 
org-roam-capture--try-capture-to-ref-h)
  org-link-translation-function 'toc-org-unhrefify
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-capture-prepare-finalize-hook '(org-roam-capture--install-finalize-h)
  org-superstar-prettify-item-bullets nil
  org-latex-packages-alist '(("" "siunitx") ("" "mathrsfs")
                             ("scheme=plain" "ctex")
                             ("" "lmodern") ("T1" "fontenc"))
  org-roam-preview-function 'org-roam-preview-default-function
  org-babel-tangle-lang-exts '(("python" . "py")
                               ("latex" . "tex")
                               ("emacs-lisp" . "el")
                               ("elisp" . "el"))
  org-src-mode-hook '(org-src-babel-configure-edit-buffer
                      org-src-mode-configure-edit-buffer)
  org-roam-db-autosync-mode t
  org-confirm-elisp-link-function 'yes-or-no-p
  org-superstar-headline-bullets-list '("■" "◆" "▲" "▶")
  org-latex-hyperref-template "\\hypersetup{\n pdfauthor={%a},\n 
pdftitle={%t},\n pdfkeywords={%k},\n pdfsubject={%d},\n 
colorlinks=true,\n linkcolor=black\n}\n"
  org-log-buffer-setup-hook '(org-roam-log--setup)
  org-hide-leading-stars t
  org-roam-capture-new-node-hook '(org-roam-capture--insert-captured-ref-h)
  org-preview-latex-image-directory "~/.emacs.d/.local/ltximg/"
  org-speed-command-hook '(org-speed-command-activate
                           org-babel-speed-command-activate)
  org-html-format-inlinetask-function 
'org-html-format-inlinetask-default-function
  org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
  org-export-with-tags nil
  org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
  org-export-backends '(md ascii html icalendar latex odt)
  org-fold-core-isearch-open-function 'org-fold--isearch-reveal
  org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
  org-superstar-cycle-headline-bullets nil
  org-persist-before-write-hook '(org-element--cache-persist-before-write)
  org-tab-first-hook '(org-babel-hide-result-toggle-maybe
                       org-babel-header-arg-expand)
  org-export-with-toc 3
  org-link-shell-confirm-function 'yes-or-no-p
  org-babel-pre-tangle-hook '(save-buffer)
  org-agenda-loop-over-headlines-in-active-region nil
  org-occur-hook '(org-first-headline-recenter)
  org-roam-log-setup-hook '(org-roam--register-completion-functions-h)
  org-metadown-hook '(org-babel-pop-to-session-maybe)
  org-roam-node-annotation-function 'org-roam-node-read--annotation
  org-link-parameters '(("eww" :follow org-eww-open :store
                         org-eww-store-link)
                        ("rmail" :follow org-rmail-open :store
                         org-rmail-store-link)
                        ("mhe" :follow org-mhe-open :store
                         org-mhe-store-link)
                        ("irc" :follow org-irc-visit :store
                         org-irc-store-link :export
                         org-irc-export)
                        ("gnus" :follow org-gnus-open :store
                         org-gnus-store-link)
                        ("docview" :follow org-docview-open
                         :export org-docview-export :store
                         org-docview-store-link)
                        ("bibtex" :follow org-bibtex-open
                         :store org-bibtex-store-link)
                        ("bbdb" :follow org-bbdb-open :export
                         org-bbdb-export :complete
                         org-bbdb-complete-link :store
                         org-bbdb-store-link)
                        ("w3m" :store org-w3m-store-link)
                        ("doi" :follow org-link-doi-open
                         :export org-link-doi-export)
                        ("info" :follow org-info-open :export
                         org-info-export :store
                         org-info-store-link
                         :insert-description
                         org-info-description-as-command)
                        ("roam" :follow
                         org-roam-link-follow-link)
                        ("attachment" :follow org-attach-follow
                         :complete org-attach-complete-link)
                        ("id" :follow org-id-open) ("file+sys")
                        ("file+emacs")
                        ("shell" :follow org-link--open-shell)
                        ("news" :follow
                         #[514 "\301\300\302\x04Q\x02\"\207"
                           ["news" browse-url ":"] 6
                           "\n\n(fn URL ARG)"]
                         )
                        ("mailto" :follow
                         #[514 "\301\300\302\x04Q\x02\"\207"
                           ["mailto" browse-url ":"] 6
                           "\n\n(fn URL ARG)"]
                         )
                        ("https" :follow
                         #[514 "\301\300\302\x04Q\x02\"\207"
                           ["https" browse-url ":"] 6
                           "\n\n(fn URL ARG)"]
                         )
                        ("http" :follow
                         #[514 "\301\300\302\x04Q\x02\"\207"
                           ["http" browse-url ":"] 6
                           "\n\n(fn URL ARG)"]
                         )
                        ("ftp" :follow
                         #[514 "\301\300\302\x04Q\x02\"\207"
                           ["ftp" browse-url ":"] 6
                           "\n\n(fn URL ARG)"]
                         )
                        ("help" :follow org-link--open-help
                         :store org-link--store-help)
                        ("file" :complete
                         org-link-complete-file)
                        ("elisp" :follow org-link--open-elisp))
  org-roam-ui-browser-function 'browse-url
  org-html-format-headline-function 
'org-html-format-headline-default-function
  org-roam-capture-templates '(("d" "Default" plain "%?"
                                :target
                                (file+head
"%<%Y%m%d%H%M%S>-${slug}.org"
                                 "#+title: ${title}\n#+date: %u\n")
                                :unnarrowed t)
                               ("r" "Research Note" plain
                                (file
"~/org-roam/Templates/ResearchNoteTemplate.org")
                                :target
                                (file+head
"%<%Y%m%d%H%M%S>-${slug}.org"
                                 "#+title: ${title}\n#+date: %u\n")
                                :unnarrowed t)
                               )
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-num-format-function 'org-num-default-format
  org-tags-column -80
  org-src-lang-modes '(("beamer" . LaTeX) ("latex" . LaTeX)
                       ("C" . c) ("C++" . c++)
                       ("asymptote" . asy) ("bash" . sh)
                       ("beamer" . latex)
                       ("calc" . fundamental) ("cpp" . c++)
                       ("ditaa" . artist)
                       ("desktop" . conf-desktop)
                       ("dot" . fundamental)
                       ("elisp" . emacs-lisp)
                       ("ocaml" . tuareg)
                       ("screen" . shell-script) ("shell" . sh)
                       ("sqlite" . sql) ("toml" . conf-toml))
  org-agenda-current-time-string "now - - - - - - - - - - - - - - - - - 
- - - - - - - -"
  org-agenda-block-separator 61
  org-roam-indirect-buffer-hook '(org-roam--register-completion-functions-h)
  )



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

* Re: [BUG] org-element-cache getting invalid search bound [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]
  2025-01-07  2:02 [BUG] org-element-cache getting invalid search bound [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)] WANG Yizhen
@ 2025-01-07 17:45 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2025-01-07 17:45 UTC (permalink / raw)
  To: WANG Yizhen; +Cc: emacs-orgmode

WANG Yizhen <wang1zhendire@hotmail.com> writes:

> I am running emacs-pgtk on a wsl2 debian distro. I have been 
> encountering errors and warnings when trying to convert latex fragments 
> into images via C-c C-x C-l, which gives Arithmetic overflow error.
> ...
> Package: Org mode version 9.6.15 (release_9.6.15 @ 
> /usr/share/emacs/29.4/lisp/org/)

Thanks for reporting!
May you update your Org to the latest stable release (Org 9.7) and let
me know if the problem persists?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2025-01-07 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07  2:02 [BUG] org-element-cache getting invalid search bound [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)] WANG Yizhen
2025-01-07 17:45 ` Ihor Radchenko

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

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