I saw this error when opening emacs.org via (counsel-find-file &optional INITIAL-INPUT INITIAL-DIRECTORY)
Slightly different error now (same style, different element), but I didn't get a backtrace.
> I've recently upgraded to emacs 29 w/ native-comp support. I'm
> consistently getting this error when I load emacs.org and it stops
> parsing my document, which is a bit painful. Hopefully this bug report
> helps.
>
>
> Error I see in *Warnings*:
>
> Warning (org-element-cache): org-element--cache: (ivy-alt-done) Cached element is incorrect in emacs.org. (Cache tic up to date: "yes") Resetting.
Thanks for reporting!
Do I understand correctly that you observe the error when you are trying
to jump to a candidate from swiper buffer?
Could you please set org-element--cache-self-verify to 'backtrace,
org-element--cache-self-verify-frequency to 1.0, try to trigger the
error; and then post the full backtrace?
Best,
Ihor