all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Got an org-element warning: How to report?
@ 2022-06-27 10:11 Gregor Zattler
  2022-06-27 10:20 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Gregor Zattler @ 2022-06-27 10:11 UTC (permalink / raw)
  To: emacs-orgmode

Hello org-mode devs, Ihor,

today, when opening several org files for my agenda, I got a

Warning (org-element-cache): ...

which is 7100 characters long and contains private data
(filenames headlines, ...)

Is this interesting for debugging, if so, does it still make
sense if I first anonymize the sensitive data with xxxxxxxxxx?

This is with a newly build emacs and org-mode main from
yesterday.

I will store the warnings buffer for a few days in case it's
interesting.


Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-


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

* Re: Got an org-element warning: How to report?
  2022-06-27 10:11 Got an org-element warning: How to report? Gregor Zattler
@ 2022-06-27 10:20 ` Ihor Radchenko
  2022-06-27 11:20   ` Gregor Zattler
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2022-06-27 10:20 UTC (permalink / raw)
  To: Gregor Zattler; +Cc: emacs-orgmode

Gregor Zattler <telegraph@gmx.net> writes:

> Hello org-mode devs, Ihor,
>
> today, when opening several org files for my agenda, I got a
>
> Warning (org-element-cache): ...

Thanks for reporting!
This is probably similar to
https://list.orgmode.org/87a69ypk1m.fsf@localhost/T/#t

Are you seeing the same warning? ("Invalid search bound ...")

Best,
Ihor


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

* Re: Got an org-element warning: How to report?
  2022-06-27 10:20 ` Ihor Radchenko
@ 2022-06-27 11:20   ` Gregor Zattler
  2022-06-27 11:38     ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Gregor Zattler @ 2022-06-27 11:20 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Hi Ihor,
* Ihor Radchenko <yantar92@gmail.com> [2022-06-27; 18:20]:
> Gregor Zattler <telegraph@gmx.net> writes:
>
>> Hello org-mode devs, Ihor,
>>
>> today, when opening several org files for my agenda, I got a
>>
>> Warning (org-element-cache): ...
>
> Thanks for reporting!
> This is probably similar to
> https://list.orgmode.org/87a69ypk1m.fsf@localhost/T/#t
>
> Are you seeing the same warning? ("Invalid search bound ...")

no, it's

Cached element is incorrect in xxx.org. (Cache tic up to date: "yes") Resetting.

The element is: "(headline (:raw-value....
 The real element is: "(fixed-width (:begin...
 Cache around :begin:
(headline (:raw-value...


And there is no backtrace, I'm still working in this Emacs
session at the moment.

Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-


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

* Re: Got an org-element warning: How to report?
  2022-06-27 11:20   ` Gregor Zattler
@ 2022-06-27 11:38     ` Ihor Radchenko
  2022-06-27 14:16       ` Gregor Zattler
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2022-06-27 11:38 UTC (permalink / raw)
  To: Gregor Zattler; +Cc: emacs-orgmode

Gregor Zattler <telegraph@gmx.net> writes:

>> Are you seeing the same warning? ("Invalid search bound ...")
>
> no, it's
>
> Cached element is incorrect in xxx.org. (Cache tic up to date: "yes") Resetting.
>
> The element is: "(headline (:raw-value....
>  The real element is: "(fixed-width (:begin...
>  Cache around :begin:
> (headline (:raw-value...
>
>
> And there is no backtrace, I'm still working in this Emacs
> session at the moment.

This one is tricky. I can only try to do something if you observe the
warning frequently.

If you do, you can add
(setq org-element--cache-self-verify 'backtrace)
(setq org-element--cache-self-verify-frequency 1.0)

to your config and later share (possibly privately) the backtrace.

Backtrace is not recorded by default because it slows things down.

Best,
Ihor


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

* Re: Got an org-element warning: How to report?
  2022-06-27 11:38     ` Ihor Radchenko
@ 2022-06-27 14:16       ` Gregor Zattler
  0 siblings, 0 replies; 5+ messages in thread
From: Gregor Zattler @ 2022-06-27 14:16 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Hi Ihor,
* Ihor Radchenko <yantar92@gmail.com> [2022-06-27; 19:38]:
> Gregor Zattler <telegraph@gmx.net> writes:
>>> Are you seeing the same warning? ("Invalid search bound ...")
>>
>> no, it's
>>
>> Cached element is incorrect in xxx.org. (Cache tic up to date: "yes") Resetting.
>>
>> The element is: "(headline (:raw-value....
>>  The real element is: "(fixed-width (:begin...
>>  Cache around :begin:
>> (headline (:raw-value...
>>
>>
>> And there is no backtrace, I'm still working in this Emacs
>> session at the moment.
>
> This one is tricky. I can only try to do something if you observe the
> warning frequently.
>
> If you do, you can add
> (setq org-element--cache-self-verify 'backtrace)
> (setq org-element--cache-self-verify-frequency 1.0)
>
> to your config

ok, did so.

> and later share (possibly privately) the backtrace.

ok, will do if this happens.


Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-


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

end of thread, other threads:[~2022-06-27 14:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-27 10:11 Got an org-element warning: How to report? Gregor Zattler
2022-06-27 10:20 ` Ihor Radchenko
2022-06-27 11:20   ` Gregor Zattler
2022-06-27 11:38     ` Ihor Radchenko
2022-06-27 14:16       ` Gregor Zattler

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.