emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-element--cache: (org-agenda) Cached element is incorrect [9.6 (release_9.6-90-gf49ee9 @ /home/stefan/.emacs.d/contrib/org-mode/lisp/)]
@ 2022-12-14 21:24 Stefan
  2022-12-15  8:14 ` Ihor Radchenko
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan @ 2022-12-14 21:24 UTC (permalink / raw)
  To: emacs-orgmode

While trying to reproduce the "Org parser error" error issue (see other thread), I got multiple "Cached element is incorrect" warnings (backtrace excerpt below).

Here is one that appeared when trying to loading the =t= agenda:

-- quote --

Warning (org-element-cache): org-element--cache: (org-agenda) Cached element is incorrect in Media.org. (Cache tic up to date: "yes") Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The element is: "(headline (:raw-value \"Podcasts\" :begin 684093 :end 741628 :pre-blank 0 :contents-begin 684104 :contents-end 741627 :robust-begin 684148 :robust-end 741625 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684093 :ID \"podcasts\" :title \"Podcasts\" :mode nil :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 746346 :end 746346 :robust-begin 3 :robust-end 746344 :post-blank 0 :post-affiliated 1 :path \"/home/stefan/PRIVATE/journal/org/Media.org\" :mode org-data :CATEGORY \"Media\" :cached t))))"
 The real element is: "(headline (:raw-value \"Podcasts\" :begin 684093 :end 740615 :pre-blank 0 :contents-begin 684104 :contents-end 740614 :robust-begin 684148 :robust-end 740612 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684093 :ID \"podcasts\" :title \"Podcasts\" :mode nil :granularity element :parent nil))"
 Cache around :begin:
nil
nil
nil Disable showing Disable logging

Warning (org-element-cache): org-element--cache: (org-agenda) Cached element is incorrect in Media.org. (Cache tic up to date: "yes") Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The element is: "(headline (:raw-value \"My Podcast Recommendations\" :begin 684150 :end 692232 :pre-blank 1 :contents-begin 684181 :contents-end 692231 :robust-begin 684183 :robust-end 692229 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684150 :title \"My Podcast Recommendations\" :mode nil :granularity element :cached t :parent (headline (:raw-value \"Podcasts\" :begin 684093 :end 741628 :pre-blank 0 :contents-begin 684104 :contents-end 741627 :robust-begin 684148 :robust-end 741625 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684093 :ID \"podcasts\" :title \"Podcasts\" :mode nil :granularity element :cached t :parent (org-data ...)))))"
 The real element is: "(headline (:raw-value \"My Podcast Recommendations\" :begin 684150 :end 691219 :pre-blank 1 :contents-begin 684181 :contents-end 691218 :robust-begin 684183 :robust-end 691216 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684150 :title \"My Podcast Recommendations\" :mode nil :granularity element :parent (headline (:raw-value \"Podcasts\" :begin 684093 :end 740615 :pre-blank 0 :contents-begin 684104 :contents-end 740614 :robust-begin 684148 :robust-end 740612 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684093 :ID \"podcasts\" :title \"Podcasts\"))))"
 Cache around :begin:
nil
nil
nil Disable showing Disable logging

Warning (org-element-cache): org-element--cache: (org-agenda) Cached element is incorrect in Media.org. (Cache tic up to date: "yes") Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The element is: "(headline (:raw-value \"Stefan's Podcast List 1\" :begin 684191 :end 692232 :pre-blank 1 :contents-begin 684220 :contents-end 692231 :robust-begin 684222 :robust-end 692229 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684191 :title \"Stefan's Podcast List 1\" :mode nil :granularity element :cached t :parent (headline (:raw-value \"My Podcast Recommendations\" :begin 684150 :end 692232 :pre-blank 1 :contents-begin 684181 :contents-end 692231 :robust-begin 684183 :robust-end 692229 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684150 :title \"My Podcast Recommendations\" :mode nil :granularity element :cached t :parent (headline ...)))))"
 The real element is: "(headline (:raw-value \"Stefan's Podcast List 1\" :begin 684191 :end 691219 :pre-blank 1 :contents-begin 684220 :contents-end 691218 :robust-begin 684222 :robust-end 691216 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684191 :title \"Stefan's Podcast List 1\" :mode nil :granularity element :parent (headline (:raw-value \"My Podcast Recommendations\" :begin 684150 :end 691219 :pre-blank 1 :contents-begin 684181 :contents-end 691218 :robust-begin 684183 :robust-end 691216 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684150 :title \"My Podcast Recommendations\"))))"
 Cache around :begin:
nil
nil
nil

-- end quote --

Here are the headings in question:
https://gist.githubusercontent.com/stefan2904/7aa63b9c14cdb5ad954984f2b65eed95/raw/1ef7ed57b4d81f88fc3108df3fb4cbdf8ee9828f/excerpt%2520of%2520Media.org



Here is the relevant part from the backtrace:

-- quote --

  org-element-cache diagnostics(Media.org): Added new element with nil key: "(section (:begin 684220 :end 684271 :contents-begin 684220 :contents-end 684270 :robust-begin 684220 :robust-end 684268 :post-blank 1 :post-affiliated 684220 :mode section :granularity element))"

  org-element-cache diagnostics(Media.org): Added new element with nil key: "(headline (:raw-value \"Stefan's Podcast List 1\" :begin 684191 :end 692232 :pre-blank 1 :contents-begin 684220 :contents-end 692231 :robust-begin 684222 :robust-end 692229 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684191 :title \"Stefan's Podcast List 1\" :mode nil :granularity element))"

  org-element-cache diagnostics(Media.org): Added new element with nil key: "(section (:begin 684181 :end 684191 :contents-begin 684181 :contents-end 684190 :robust-begin 684181 :robust-end 684188 :post-blank 1 :post-affiliated 684181 :mode section :granularity element))"

  org-element-cache diagnostics(Media.org): Added new element with nil key: "(headline (:raw-value \"My Podcast Recommendations\" :begin 684150 :end 692232 :pre-blank 1 :contents-begin 684181 :contents-end 692231 :robust-begin 684183 :robust-end 692229 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684150 :title \"My Podcast Recommendations\" :mode nil :granularity element))"

  org-element-cache diagnostics(Media.org): Added new element with nil key: "(section (:begin 684104 :end 684150 :contents-begin 684104 :contents-end 684149 :robust-begin 684104 :robust-end 684147 :post-blank 1 :post-affiliated 684104 :mode section :granularity element))"

  org-element-cache diagnostics(Media.org): Added new element with nil key: "(headline (:raw-value \"Podcasts\" :begin 684093 :end 741628 :pre-blank 0 :contents-begin 684104 :contents-end 741627 :robust-begin 684148 :robust-end 741625 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684093 :ID \"podcasts\" :title \"Podcasts\" :mode nil :granularity element))"

-- end quote --



Maybe related:
For the last heading (one of the sub headings inside "Podcasts") I get " Cached element has wrong parent" warning:

--- quote ---

Warning (org-element-cache): org-element--cache: Warning(Media.org): Cached element has wrong parent in Media.org. Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The element is: "(headline (:raw-value \"Ö1 doublecheck downloaden\" :begin 691219 :end 691753 :pre-blank 0 :contents-begin 691261 :contents-end 691752 :robust-begin 691469 :robust-end 691750 :level 2 :priority nil :tags (#(\"habit\" 0 5 (fontified nil isearch-open-invisible-temporary org-fold-core--isearch-show-temporary isearch-open-invisible org-fold-core--isearch-show org-fold--spec-org-fold-outline--1228103939896017750 org-fold-outline))) :todo-keyword #(\"TODO\" 0 4 (org-fold--spec-org-fold-outline--1228103939896017750 org-fold-outline isearch-open-invisible org-fold-core--isearch-show isearch-open-invisible-temporary org-fold-core--isearch-show-temporary fontified nil)) :todo-type todo :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 691219 :scheduled (timestamp (:type active :raw-value \"<2023-01-04 Wed ++1m>\" :year-start 2023 :month-start 1 :day-start 4 :hour-start nil :minute-start nil :year-end 2023 :month-end 1 :day-end 4 :hour-end nil :minute-end nil :begin 691275 :end 691296 :post-blank 0 :repeater-type catch-up :repeater-value 1 :repeater-unit month)) :CREATED \"[2022-10-05 Wed 12:48]\" :STYLE \"habit\" :ID \"9ee202d6-ea62-412c-8d3f-eef4b810ce85\" :LAST_REPEAT \"[2022-12-04 Sun 04:37]\" :title \"Ö1 doublecheck downloaden\" :mode nil ...))"
 The parent is: "(headline (:raw-value \"Stefan's Podcast List 1\" :begin 684191 :end 692232 :pre-blank 1 :contents-begin 684220 :contents-end 692231 :robust-begin 684222 :robust-end 692229 :level 3 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684191 :title \"Stefan's Podcast List 1\" :mode nil :granularity element :cached t :parent (headline (:raw-value \"My Podcast Recommendations\" :begin 684150 :end 692232 :pre-blank 1 :contents-begin 684181 :contents-end 692231 :robust-begin 684183 :robust-end 692229 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684150 :title \"My Podcast Recommendations\" :mode nil :granularity element :cached t :parent (headline ...)))))"
 The real parent is: "(headline (:raw-value \"Podcasts\" :begin 684093 :end 740615 :pre-blank 0 :contents-begin 684104 :contents-end 740614 :robust-begin 684148 :robust-end 740612 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 684093 :ID \"podcasts\" :title (#(\"Podcasts\" 0 8 (:parent #0))) :mode nil :granularity nil))"


Backtrace:
  org-element-cache diagnostics(Media.org): Added new element with nil key: "(headline (:raw-value \"Ö1 doublecheck downloaden\" :begin 691219 :end 691753 :pre-blank 0 :contents-begin 691261 :contents-end 691752 :robust-begin 691469 :robust-end 691750 :level 2 :priority nil :tags (#(\"habit\" 0 5 (fontified nil isearch-open-invisible-temporary org-fold-core--isearch-show-temporary isearch-open-invisible org-fold-core--isearch-show org-fold--spec-org-fold-outline--1228103939896017750 org-fold-outline))) :todo-keyword #(\"TODO\" 0 4 (org-fold--spec-org-fold-outline--1228103939896017750 org-fold-outline isearch-open-invisible org-fold-core--isearch-show isearch-open-invisible-temporary org-fold-core--isearch-show-temporary fontified nil)) :todo-type todo :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 691219 :scheduled (timestamp (:type active :raw-value \"<2023-01-04 Wed ++1m>\" :year-start 2023 :month-start 1 :day-start 4 :hour-start nil :minute-start nil :year-end 2023 :month-end 1 :day-end 4 :hour-end nil :minute-end nil :begin 691275 :end 691296 :post-blank 0 :repeater-type catch-up :repeater-value 1 :repeater-unit month)) :CREATED \"[2022-10-05 Wed 12:48]\" :STYLE \"habit\" :ID \"9ee202d6-ea62-412c-8d3f-eef4b810ce85\" :LAST_REPEAT \"[2022-12-04 Sun 04:37]\" :title \"Ö1 doublecheck downloaden\" :mode nil ...))"
--- end quote ---


Emacs  : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
 of 2022-05-31
Package: Org mode version 9.6 (release_9.6-90-gf49ee9 @ /home/stefan/.emacs.d/contrib/org-mode/lisp/)



Best,
 Stefan


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

end of thread, other threads:[~2023-01-02  7:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 21:24 [BUG] org-element--cache: (org-agenda) Cached element is incorrect [9.6 (release_9.6-90-gf49ee9 @ /home/stefan/.emacs.d/contrib/org-mode/lisp/)] Stefan
2022-12-15  8:14 ` Ihor Radchenko
2022-12-15 11:58   ` Stefan
2022-12-15 12:16     ` Ihor Radchenko
2022-12-15 18:05       ` Stefan
2022-12-15 18:42         ` Ihor Radchenko
2023-01-02  7:29           ` 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).