Jason Terk <[email protected]> writes:

> This issue finally occurred again. Thanks for your patience. Please
> find the diagnostics attached.

Thanks!
Many things are going on, and I am not yet sure what exactly is
happening.
First, I noticed that cache reset may not be performed for some reason,
resulting in accumulating failures.
I have pushed potential fix onto main. Please update and try
again. Hopefully it can improve the situation somewhat.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5fb78efda

Another thing I cannot wrap my head around is seemingly unaccounted
buffer modifications.
At the very beginning of the log you have

  Added new element with nil key: "(org-data (:standard-properties [1 1 1 
251418 251418

That's a buffer of 251418 size.

Then, you make some edits
Submitting new synchronization request for [1414..1414]𝝙426
Submitting new synchronization request for [1833..1840]𝝙1
and org-data is correctly expanded to

Shifting end positions of robust parent (warning t): "(org-data 
(:standard-properties [1 1 1 251845 251845

251845 = 251418 + 426 + 1

No more edits registered after that, but you get
  Added new element with nil key: "(headline (:standard-properties [164670 
164670 164689 437730 437730

which is triggered by

org-map-region(#f(compiled-function () #<bytecode -0x14e193a8f300b6b8>) 1 
893396)
org-roam-db-map-nodes((org-roam-db-insert-node-data org-roam-db-insert-aliases 
org-roam-db-insert-tags org-roam-db-insert-refs))

I looked up org-roam-db-map-nodes and it passes (point-max) to
org-map-region.

So, clearly, the buffer is 893396, which does not add up to 251845.
Something is off.

Something is editing things inside the buffer, or maybe the buffer is
somehow different along the way.
If we are lucky, my fix will help, but that's all very mysterious.

If you can, please continue testing after upgrading to the latest main.

Thanks in advance!

-- 
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>

Reply via email to