org-roam / org-roam

Rudimentary Roam replica with Org-mode
https://www.orgroam.com
GNU General Public License v3.0
5.51k stars 480 forks source link

Unregistered buffer modifications #2265

Open xeruf opened 2 years ago

xeruf commented 2 years ago

It is just this error popping up and being annoying when I start emacs and open a roam note, not sure if this is about org core, thought I'd post it here first:

Backtrace

Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected. Resetting.

If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).

The buffer is:  *temp*

 Current command: ivy-done

 Backtrace:

"  backtrace-to-string(nil)

  org-element--cache-sync(#<buffer  *temp*> 24248)

  org-element-at-point()

  org-back-to-heading(t)

  org-at-encrypted-entry-p()

  org-decrypt-entry()

  run-hooks(org-fold-reveal-start-hook)

  org-reveal((4))

  apply(org-reveal (4))

  timer-event-handler([t 25386 51470 895839 nil org-reveal ((4)) nil 451000 nil])

  input-pending-p(t)

  sit-for(0)

  display-warning(org-element-cache \"org-element--cache: Unregistered buffer modificati...\")

  org-element--cache-sync(#<buffer  *temp*> 24248)

  org-element-at-point()

  org-back-to-heading(t)

  org-back-to-heading-or-point-min(t)

  org-roam-end-of-meta-data(t)

  org-roam-preview-default-function()

  org-roam-preview-get-contents(\"/home/janek/data/2-box/writing/technology.org\" 24274)

  org-roam-node-insert-section(:source-node #s(org-roam-node :file \"/home/janek/data/2-box/writing/technology.org\" :file-title \"writing/technology\" :file-hash nil :file-atime (25376 22851 199950 913000) :file-mtime (25376 22851 183284 247000) :id \"technology\" :level 0 :point 1 :todo nil :priority nil :scheduled nil :deadline nil :title \"writing/technology\" :properties ((\"CATEGORY\" . \"technology\") (\"MODIFIED\" . \"[2022-09-13]\") (\"CREATED\" . \"[2022-06-27]\") (\"ID\" . \"technology\") (\"BLOCKED\" . \"\") (\"ALLTAGS\" . #(\":writing:tech:\" 1 8 (inherited t) 9 13 (inherited t))) (\"FILE\" . \"/home/janek/data/2-box/writing/technology.org\") (\"PRIORITY\" . \"C\")) :olp nil :tags (\"writing\" \"tech\") :aliases nil :refs nil) :point 24274 :properties (:outline (\"How to Sync\")))

  org-roam-backlinks-section(#s(org-roam-node :file \"/home/janek/data/2-box/tech/homeserver.org\" :file-title \"Homeserver Software\" :file-hash nil :file-atime (25360 40185 374851 875000) :file-mtime (25359 53340 538720 30000) :id \"nextcloud\" :level 1 :point 488 :todo nil :priority nil :scheduled nil :deadline nil :title \"Nextcloud\" :properties ((\"CATEGORY\" . \"homeserver\") (\"ID\" . \"nextcloud\") (\"BLOCKED\" . \"\") (\"ALLTAGS\" . #(\":tech:software:list:free:server:dav:files:\" 1 5 (inherited t) 6 14 (inherited t) 15 19 (inherited t) 20 24 (inherited t) 25 31 (inherited t))) (\"TAGS\" . \":dav:files:\") (\"FILE\" . \"/home/janek/data/2-box/tech/homeserver.org\") (\"PRIORITY\" . \"C\") (\"ITEM\" . \"Nextcloud\")) :olp nil :tags (\"tech\" \"software\" \"list\" \"free\" \"server\" \"dav\" \"files\") :aliases nil :refs nil))

  org-roam-buffer-render-contents()

  org-roam-buffer-persistent-redisplay()

  org-roam-buffer--redisplay-h()

Environment

Might also be related to Syncthing, which updates the org files between my machines.

bezmi commented 2 years ago

I am getting pretty much the same error. I have narrowed it down to the org-roam-buffer. Strangely, it only happens for the org-roam-buffer of some special cursed nodes.

Here are the situations I see it:

For now, I've just suppressed it. It isn't impacting usability afaik (yet)

Might also be related to Syncthing

I don't think so. the roam directory I'm using is not synced via syncthing

this bug in the org-mode mailing list seems to be related and so does this one