* [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
@ 2022-06-22 11:50 Cristi Constantin
2022-06-23 6:20 ` Ihor Radchenko
0 siblings, 1 reply; 6+ messages in thread
From: Cristi Constantin @ 2022-06-22 11:50 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I'm just editing my normal org log files and I started seeing the errors
above after I upgraded to latest org-mode.
I think I didn't upgrade for a month, so this bug is pretty new.
It doesn't seem to do anything weird, but I see this traceback a few
times a day.
This is the full error, so I'm reporting as requested:
Warning (org-element-cache): org-element--cache: Org parser error in
2022-log.org::178496. Resetting.
The error was: (error "Invalid search bound (wrong side of point)")
Backtrace:
" backtrace-to-string(nil)
org-element-at-point(178496)
org-element--cache-persist-before-write((elisp org-element--cache)
(:hash \"aea4231abf77bb223420b9b8168a7da5\" :file
\"/home/cro/org/log/2022-log.org\" :inode 23336608))
run-hook-with-args-until-success(org-element--cache-persist-before-write
(elisp org-element--cache) (:hash \"aea4231abf77bb223420b9b8168a7da5\"
:file \"/home/cro/org/log/2022-log.org\" :inode 23336608))
#f(compiled-function (v) #<bytecode -0x1488c17db95b1a5a>)((elisp
org-element--cache))
#f(compiled-function (elt) #<bytecode 0x439f77274717006>)((elisp
org-element--cache))
mapc(#f(compiled-function (elt) #<bytecode 0x439f77274717006>) ((elisp
org-element--headline-cache) (elisp org-element--cache)))
seq-do(#f(compiled-function (elt) #<bytecode 0x439f77274717006>) ((elisp
org-element--headline-cache) (elisp org-element--cache)))
seq-find(#f(compiled-function (v) #<bytecode -0x1488c17db95b1a5a>)
((elisp org-element--headline-cache) (elisp org-element--cache)))
org-persist-write(((elisp org-element--headline-cache) (elisp
org-element--cache)) (:hash \"aea4231abf77bb223420b9b8168a7da5\" :file
\"/home/cro/org/log/2022-log.org\" :inode 23336608) t)
org-persist-write-all(#<buffer 2022-log.org>)
org-persist-write-all-buffer()
kill-buffer(#<buffer 2022-log.org>)
kill-current-buffer()
funcall-interactively(kill-current-buffer)
call-interactively(kill-current-buffer nil nil)
command-execute(kill-current-buffer)
"
Please report this to Org mode mailing list (M-x org-submit-bug-report).
Disable showing Disable logging
Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.33, cairo version 1.17.6)
of 2022-04-27
Package: Org mode version 9.5.4 (9.5.4-g7c61a3 @
/home/cro/.emacs.default/straight/build/org/)
current state:
==============
(setq
org-link-elisp-confirm-function 'yes-or-no-p
org-directory "~/org/"
org-hide-emphasis-markers t
org-log-done 'time
org-persist-after-read-hook '(org-element--cache-persist-after-read)
org-export-before-parsing-hook '(org-attach-expand-links)
org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-archive-hook '(org-attach-archive-delete-maybe)
org-edit-src-content-indentation 0
org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines
org-cycle-optimize-window-after-visibility-change)
org-persist-before-read-hook '(org-element--cache-persist-before-read)
org-modules '(org-tempo)
org-mode-hook '(org-tempo-setup evil-org-mode er/add-org-mode-expansions
#[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\207" [imenu-create-index-function org-imenu-get-tree] 2])
org-babel-load-languages '((emacs-lisp . t) (shell . t) (python . t)
(ruby . t))
org-link-file-path-type 'relative
org-confirm-shell-link-function 'yes-or-no-p
outline-isearch-open-invisible-function 'outline-isearch-open-invisible
org-use-sub-superscripts '{}
org-startup-indented t
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-tangle-lang-exts '(("ruby" . "rb") ("python" . "py")
("emacs-lisp" . "el") ("elisp" . "el"))
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer
doom-modeline-set-org-src-modeline)
org-confirm-elisp-link-function 'yes-or-no-p
org-cycle-separator-lines 1
org-support-shift-select t
org-structure-template-alist '(("sh" . "src shell") ("py" . "src
python") ("js" . "src javascript")
("el" . "src emacs-lisp") ("a" . "export ascii") ("c" . "center") ("C" .
"comment")
("e" . "example") ("E" . "export") ("h" . "export html") ("l" . "export
latex")
("q" . "quote") ("s" . "src") ("v" . "verse"))
org-fontify-whole-heading-line t
org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
org-confirm-babel-evaluate nil
org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal
org-persist-before-write-hook '(org-element--cache-persist-before-write)
org-indent-indentation-per-level 1
org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
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-metadown-hook '(org-babel-pop-to-session-maybe)
org-link-parameters '(("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\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"])
("mailto" :follow
#[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL
ARG)"])
("https" :follow
#[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"])
("http" :follow
#[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"])
("ftp" :follow #[514 "\301\300\302Q\"\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-metaup-hook '(org-babel-load-in-session-maybe)
org-tags-column -66
org-tab-before-tab-emulation-hook '(org-tempo-complete-tag)
)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
2022-06-22 11:50 [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)] Cristi Constantin
@ 2022-06-23 6:20 ` Ihor Radchenko
2022-06-23 15:16 ` Cristi Constantin
0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2022-06-23 6:20 UTC (permalink / raw)
To: cristi.constantin; +Cc: emacs-orgmode
Cristi Constantin <cristi.constantin@posteo.net> writes:
> I'm just editing my normal org log files and I started seeing the errors
> above after I upgraded to latest org-mode.
> I think I didn't upgrade for a month, so this bug is pretty new.
> It doesn't seem to do anything weird, but I see this traceback a few
> times a day.
>
> This is the full error, so I'm reporting as requested:
>
>
> Warning (org-element-cache): org-element--cache: Org parser error in
> 2022-log.org::178496. Resetting.
> The error was: (error "Invalid search bound (wrong side of point)")
> Backtrace:
> " backtrace-to-string(nil)
> org-element-at-point(178496)
> org-element--cache-persist-before-write((elisp org-element--cache)
Thanks for reporting!
Will it help if you add the following to you config?
(defun org-persist-clear-caches (&rest _)
"Clear read/write caches for org-persist."
(clrhash org-persist--write-cache)
(clrhash org-persist--read-cache)
nil)
(add-hook 'org-persist-before-read-hook #'org-persist-clear-caches)
(add-hook 'org-persist-before-write-hook #'org-persist-clear-caches)
Best,
Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
2022-06-23 6:20 ` Ihor Radchenko
@ 2022-06-23 15:16 ` Cristi Constantin
2022-06-27 8:50 ` Ihor Radchenko
2022-06-29 2:10 ` Ihor Radchenko
0 siblings, 2 replies; 6+ messages in thread
From: Cristi Constantin @ 2022-06-23 15:16 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
Hi Ihor,
Than you for the response! I tried the fix you suggested, but I still
see this:
Warning (org-element-cache): org-element--cache: Org parser error in
2022-log.org::179869. Resetting.
The error was: (error "Invalid search bound (wrong side of point)")
Backtrace:
" backtrace-to-string(nil)
org-element-at-point(179869)
org-element--cache-persist-before-write((elisp org-element--cache)
(:hash \"63193836117540f39113c129b8de99c6\" :file
\"/home/cro/org/log/2022-log.org\" :inode 23336608))
run-hook-with-args-until-success(org-element--cache-persist-before-write
(elisp org-element--cache) (:hash \"63193836117540f39113c129b8de99c6\"
:file \"/home/cro/org/log/2022-log.org\" :inode 23336608))
#f(compiled-function (v) #<bytecode -0x148a5c2ab59ba2da>)((elisp
org-element--cache))
#f(compiled-function (elt) #<bytecode 0x43f3d6737afc546>)((elisp
org-element--cache))
mapc(#f(compiled-function (elt) #<bytecode 0x43f3d6737afc546>)
((elisp org-element--headline-cache) (elisp org-element--cache)))
seq-do(#f(compiled-function (elt) #<bytecode 0x43f3d6737afc546>)
((elisp org-element--headline-cache) (elisp org-element--cache)))
seq-find(#f(compiled-function (v) #<bytecode -0x148a5c2ab59ba2da>)
((elisp org-element--headline-cache) (elisp org-element--cache)))
org-persist-write(((elisp org-element--headline-cache) (elisp
org-element--cache)) (:hash \"63193836117540f39113c129b8de99c6\" :file
\"/home/cro/org/log/2022-log.org\" :inode 23336608) t)
org-persist-write-all(#<buffer 2022-log.org>)
org-persist-write-all-buffer()
kill-buffer(#<buffer 2022-log.org>)
kill-current-buffer()
funcall-interactively(kill-current-buffer)
call-interactively(kill-current-buffer nil nil)
command-execute(kill-current-buffer)
"
Again other than the warning message, nothing seems to be broken, but
it's annoying.
I also see something similar when I close the tab with
centaur-tabs-buffer-close-tab.
~ Cristi
On 6/23/22 07:20, Ihor Radchenko wrote:
> Cristi Constantin <cristi.constantin@posteo.net> writes:
>
>> I'm just editing my normal org log files and I started seeing the errors
>> above after I upgraded to latest org-mode.
>> I think I didn't upgrade for a month, so this bug is pretty new.
>> It doesn't seem to do anything weird, but I see this traceback a few
>> times a day.
>>
>> This is the full error, so I'm reporting as requested:
>>
>>
>> Warning (org-element-cache): org-element--cache: Org parser error in
>> 2022-log.org::178496. Resetting.
>> The error was: (error "Invalid search bound (wrong side of point)")
>> Backtrace:
>> " backtrace-to-string(nil)
>> org-element-at-point(178496)
>> org-element--cache-persist-before-write((elisp org-element--cache)
> Thanks for reporting!
>
> Will it help if you add the following to you config?
>
> (defun org-persist-clear-caches (&rest _)
> "Clear read/write caches for org-persist."
> (clrhash org-persist--write-cache)
> (clrhash org-persist--read-cache)
> nil)
>
> (add-hook 'org-persist-before-read-hook #'org-persist-clear-caches)
> (add-hook 'org-persist-before-write-hook #'org-persist-clear-caches)
>
> Best,
> Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
2022-06-23 15:16 ` Cristi Constantin
@ 2022-06-27 8:50 ` Ihor Radchenko
2022-06-29 2:10 ` Ihor Radchenko
1 sibling, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2022-06-27 8:50 UTC (permalink / raw)
To: cristi.constantin; +Cc: emacs-orgmode
Cristi Constantin <cristi.constantin@posteo.net> writes:
> Than you for the response! I tried the fix you suggested, but I still
> see this:
>
> Warning (org-element-cache): org-element--cache: Org parser error in
> 2022-log.org::179869. Resetting.
> The error was: (error "Invalid search bound (wrong side of point)")
This is unfortunate. I have also seen this issue recently but I cannot
figure out what is the cause just yet. However, I have only seen the
problem a handful of times recently.
If you are still seeing the warning regularly, would you mind trying to
revert 4487acc63, 93821b431, e156e5425, e5e7ae36c one by one and check
if reverting solves the problem?
Best,
Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
2022-06-23 15:16 ` Cristi Constantin
2022-06-27 8:50 ` Ihor Radchenko
@ 2022-06-29 2:10 ` Ihor Radchenko
2022-07-01 11:04 ` Cristi Constantin
1 sibling, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2022-06-29 2:10 UTC (permalink / raw)
To: cristi.constantin; +Cc: emacs-orgmode
Cristi Constantin <cristi.constantin@posteo.net> writes:
> Than you for the response! I tried the fix you suggested, but I still
> see this:
I just pushed a commit that should hopefully fix this problem. Please
update Org and let me know if you keep seeing the warning.
Best,
Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
2022-06-29 2:10 ` Ihor Radchenko
@ 2022-07-01 11:04 ` Cristi Constantin
0 siblings, 0 replies; 6+ messages in thread
From: Cristi Constantin @ 2022-07-01 11:04 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
Thank you very much Ihor!
I pulled from latest org immediately when you said and I can confirm I
didn't see the warning anymore.
Thank you for the quick fix, you're awesome!
On 6/29/22 03:10, Ihor Radchenko wrote:
> Cristi Constantin <cristi.constantin@posteo.net> writes:
>
>> Than you for the response! I tried the fix you suggested, but I still
>> see this:
> I just pushed a commit that should hopefully fix this problem. Please
> update Org and let me know if you keep seeing the warning.
>
> Best,
> Ihor
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-07-01 11:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-22 11:50 [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)] Cristi Constantin
2022-06-23 6:20 ` Ihor Radchenko
2022-06-23 15:16 ` Cristi Constantin
2022-06-27 8:50 ` Ihor Radchenko
2022-06-29 2:10 ` Ihor Radchenko
2022-07-01 11:04 ` Cristi Constantin
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).