all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] Warning (org-element-cache): Org parser error (error "Invalid search bound (wrong side of point)")
@ 2023-07-05 17:19 Bhavin Gandhi
  2023-07-05 18:15 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Bhavin Gandhi @ 2023-07-05 17:19 UTC (permalink / raw)
  To: emacs-orgmode, yantar92

Hello,

I see this error now and then (mostly once or twice a day) while using
Org Agenda. I think this happens either while saving the file, or
clocking out, or some combination of these two. I haven't spent time on
figuring out the exact sequence of actions.

⛔ Warning (org-element-cache): org-element--cache: Warning(file.org):
Org parser error in file.org::#<marker at 1029755 in file.org>.
Resetting.
 The error was: (error "Invalid search bound (wrong side of point)")

Not sure if this is relevant, but running org-lint on this file (~18500
number of lines) results in following warnings:

43   low Unknown source block language: 'bash' (and few more similar ones)
660  nil Missing language in source block
2649 low Possible incomplete drawer ":END:" (at this point I have an
extra END after LOGBOOK's END, can this be the problem?)
7156 low Link escaped with obsolete percent-encoding syntax

I don't have any other tools which might modify Org mode files.

Org mode version 9.7-pre (release_N/A-N/A-6e6354 @
/home/bhavin/.emacs.d/elpa/org-9.7pre0.20230508.112315/)
GNU Emacs 29.0.90 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
3.24.37, cairo version 1.17.8) of 2023-05-034

I'm sending the full backtrace to you Ihor via personal email.

-- 
Bhavin Gandhi (bhavin192) | https://geeksocket.in


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

* Re: [BUG] Warning (org-element-cache): Org parser error (error "Invalid search bound (wrong side of point)")
  2023-07-05 17:19 [BUG] Warning (org-element-cache): Org parser error (error "Invalid search bound (wrong side of point)") Bhavin Gandhi
@ 2023-07-05 18:15 ` Ihor Radchenko
  2023-07-10 17:34   ` Bhavin Gandhi
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-07-05 18:15 UTC (permalink / raw)
  To: Bhavin Gandhi; +Cc: emacs-orgmode

Bhavin Gandhi <bhavin7392@gmail.com> writes:

> I see this error now and then (mostly once or twice a day) while using
> Org Agenda. I think this happens either while saving the file, or
> clocking out, or some combination of these two. I haven't spent time on
> figuring out the exact sequence of actions.
>
> ⛔ Warning (org-element-cache): org-element--cache: Warning(file.org):
> Org parser error in file.org::#<marker at 1029755 in file.org>.
> Resetting.
>  The error was: (error "Invalid search bound (wrong side of point)")

Thanks for the report!
May you increase your org-element--cache-diagnostics-ring-size 10x and
try to record the backtrace again?
I can see that org-data boundaries are incorrect (not at point-max), but
cannot track down when exactly the boundaries are not updated properly.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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] 3+ messages in thread

* Re: [BUG] Warning (org-element-cache): Org parser error (error "Invalid search bound (wrong side of point)")
  2023-07-05 18:15 ` Ihor Radchenko
@ 2023-07-10 17:34   ` Bhavin Gandhi
  0 siblings, 0 replies; 3+ messages in thread
From: Bhavin Gandhi @ 2023-07-10 17:34 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

On Wed, 5 Jul 2023 at 23:45, Ihor Radchenko <yantar92@posteo.net> wrote:
> Thanks for the report!
> May you increase your org-element--cache-diagnostics-ring-size 10x and
> try to record the backtrace again?
> I can see that org-data boundaries are incorrect (not at point-max), but
> cannot track down when exactly the boundaries are not updated properly.

So, I got the error again today. First I got following warning followed by
the original warning:

Received this when I added a new list item under one heading, the
heading mentioned in the warning is not the one where I added a new list
item.

⛔ Warning (org-element-cache): org-element--cache: Warning(file2.org):
Added org-data parent to non-headline element: (section (:begin 15073
:end 16104 :contents-begin 15073 :contents-end 16104 :robust-begin
15073 :robust-end 16102 :post-blank 0 :post-affiliated 15073 :mode
section :granularity element :cached t :parent (headline (:raw-value
"Project questions" :begin 15030 :end 16104 :pre-blank 0
:contents-begin 15073 :contents-end 16104 :robust-begin 15131
:robust-end 16102 :true-level 1 :level 1 :priority nil :tags nil
:todo-keyword "WAITING" :todo-type todo :post-blank 0
:footnote-section-p nil :archivedp nil :commentedp nil
:post-affiliated 15030 :CREATED "[2023-04-26 Wed 16:49]" :title
"Project questions" :mode nil :granularity element :cached nil :parent
(org-data (:begin 1 :contents-begin 1 :contents-end 1407670 :end
1407670 :robust-begin 3 :robust-end 1407668 :post-blank 0
:post-affiliated 1 :path "/home/bhavin/work/orgfiles/file2.org" :mode
org-data :CATEGORY "file2" :cached t)) :org-element--cache-sync-key
(11 . 15010))) :org-element--cache-sync-key (11 . 15052)))

Will see if I can share the whole backtrace.

And then while doing something in Agenda (I think that was clock out or
save), I got:

⛔ Warning (org-element-cache): org-element--cache: Warning(file2.org):
Org parser error in file2.org::#<marker at 1407865 in file2.org>.
Resetting.
 The error was: (error "Invalid search bound (wrong side of point)")

I think this has something to do with headings which have many list
items, the warnings I have received are from a different file than the
previous one.


--
Bhavin Gandhi (bhavin192) | https://geeksocket.in


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

end of thread, other threads:[~2023-07-10 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 17:19 [BUG] Warning (org-element-cache): Org parser error (error "Invalid search bound (wrong side of point)") Bhavin Gandhi
2023-07-05 18:15 ` Ihor Radchenko
2023-07-10 17:34   ` Bhavin Gandhi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.