Org-Roam + Agenda = process hanging, undo info overflow

I’ve started using org mode Agenda only after I started with org-roam
Currently when I have +org enabled in my doom/emacs init.el
after I attempt to open for example SPC n a n - “Agenda and all TODOs” i get inactive buffer and a pop-up buffer at the bottom saying
Warning (undo): Buffer ‘*Org Agenda*’ undo info was 3368704 bytes long. The undo info was discarded because it exceeded "undo-outer-limit.

I’ve tried to take profiler dupms, often profiling fails to open report with message
cl--assertion-failed: Assertion failed: (>= match imatch)

I have been able to save profiler report once, it shows a lot of CPU and memory during evaluation of
`- command-execute 324,307,438 98%

  • call-interactively 324,307,438 98%
  • funcall-interactively 324,307,438 98%
  • org-agenda 320,512,079 97%
    - org-agenda-run-series 320,215,578 97%
    • org-let 293,315,451 89%
    • eval 293,315,451 89%
    • let 293,315,451 89%
    • org-agenda-finalize 290,060,938 88%
      - org-activate-links 289,368,406 88%
      • org-roam–id-link-face 191,104,128 58%
      • org-element-link-parser 34,797,680 10%
      • add-text-properties 14,304,842 4%
      • remove-text-properties 13,481,470 4%
        string-match 8,277 0%
    • org-agenda-prepare 3,254,513 0%
    • org-let2 25,505,524 7%
    • add-text-properties 1,144,331 0%
    • org-agenda-get-restriction-and-command 296,501 0%
  • doom/toggle-profiler 3,795,359 1%
  • … 3,890,242 1%
  • redisplay_internal (C function) 36,336 0%
  • evil-escape-pre-command-hook 1,024 0%
    `

Is there a way to disable org-roam for the Agenda buffer?
I am not sure what is going on here.

This has been fixed several days ago https://github.com/org-roam/org-roam/pull/1101. Update your Org Roam installation.

1 Like