From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8CnLEFSwgGGT0gAAgWs5BA (envelope-from ) for ; Tue, 02 Nov 2021 04:28:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CH6BDFSwgGH/PgAAB5/wlQ (envelope-from ) for ; Tue, 02 Nov 2021 03:28:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4488D3297C for ; Tue, 2 Nov 2021 04:28:19 +0100 (CET) Received: from localhost ([::1]:45140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhkTB-00050G-OC for larch@yhetil.org; Mon, 01 Nov 2021 23:28:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhkRo-0004x4-ST for emacs-orgmode@gnu.org; Mon, 01 Nov 2021 23:26:52 -0400 Received: from mail-ua1-x92c.google.com ([2607:f8b0:4864:20::92c]:37637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhkRD-00026R-Aj for emacs-orgmode@gnu.org; Mon, 01 Nov 2021 23:26:52 -0400 Received: by mail-ua1-x92c.google.com with SMTP id l43so260194uad.4 for ; Mon, 01 Nov 2021 20:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VVVuXPHv+JqIdxX0UqIJZTo3O6PheOyyJVitD9KCdU8=; b=MiM4Nxhldb+J3Ll0/W7z6h3NI+ZbXmyBcmg3FZwUKpY6Q43nNCWrbaER0yaL5lYjUE Q1uk5W0gD5Xtg6W+KKLmW+mdu1YeQSG9gEPXeiqUjNhbXmnfwyuc+u97BkjI16QUzrGS UYgL615izc5CI6iJq7z4buyNkQmK5U1uHgpY8t6T3cEsqsdRURR/Hx/NSvBCmZhOa6ys 5kBeYnUdtotxgn7qH7HbPreJTTtPcIU6zRMTZHjKN6MHYxhpeztDfIxkGN2tNQF5tqgc Tu2Jzjc9TxBeVsTq/aeUQ8WZWJNhRmlm5DPMqC0JBOxnD32RwZli+Pp52lzhK5V00KOh xI/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VVVuXPHv+JqIdxX0UqIJZTo3O6PheOyyJVitD9KCdU8=; b=aKq9N3l3/TqrZhtBXZTVVtrYhmfX2zT4jC4zKNIUUO4xAKwMejTf5w2dUfQDUaWciA 6d142kNqO/6btNlTE1QNRFs688lbxosCMGrkHGDgYgZlaXySatmDxBQE6gPDAKSG7dbD AO1g3BvcC7gASSuxOS80BAXwzAZgDuUAKTSkb/mstk2lEL+Cgq7B37/EEErShMABqfvy oslngcySEv3Oe5klk8dhMTDzxQniySMMWHIWYf01linQXBO4r+WmRTdFABlLUJ3oY0Mc NyOvrmMYsZwVW4oAla/J53OAihkWmsguGC98VzvmRtCRoGwsImzPcXa6Vf9WluORekTq 8LZw== X-Gm-Message-State: AOAM5315gTk1X4DEdT7OfUV+mYmpX1IXKRdsskdDIi5ZPFBBDoQkPhb9 Qnc+DiKacHNzAp35jGYoWb4lOFk+8O3kGU6cJ4mjd1KzW/4KjQ== X-Google-Smtp-Source: ABdhPJzyZ1PUEpnUSINEfxECvXlsMsj3pFrfPXte2yXwPJ3DF8v9/VlrY3KgSkQqg+Ff+RwF0PBnJwFyqVBzWwvXVOI= X-Received: by 2002:a9f:2e0f:: with SMTP id t15mr32839742uaj.117.1635823572007; Mon, 01 Nov 2021 20:26:12 -0700 (PDT) MIME-Version: 1.0 References: <874k8wavza.fsf@localhost> In-Reply-To: <874k8wavza.fsf@localhost> From: Greg Coladonato Date: Mon, 1 Nov 2021 20:25:59 -0700 Message-ID: Subject: Re: [BUG] after update to 9.5, starting org mode results in cache error messages [9.5 (9.5-gd4e192 @ c:/Users/scott/.emacs.d/straight/build/org/)] To: Ihor Radchenko Content-Type: multipart/alternative; boundary="000000000000ecbff205cfc5da0b" Received-SPF: pass client-ip=2607:f8b0:4864:20::92c; envelope-from=gcoladon@gmail.com; helo=mail-ua1-x92c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635823699; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VVVuXPHv+JqIdxX0UqIJZTo3O6PheOyyJVitD9KCdU8=; b=B+6YwBUTRMcG7wwLwICG3WUJjkyFfRFvTnR653K3uqL0QNx9611Wjy/crm7kr3rAzt5rij HVagnG+8opuJZKEW+bJ95htq01U7cfCX4WzvLxOQkPmQ5NJYHneMAexHPHuuNzV24sen7n XOW8uZmU8SyksbADOqSJndAby0XGpAEH9WAnJmax8ZYQdd/DEWsgdCmt274DdrCaNbu2wS IgoGdG2pBeOW+RfH6im3khi+9gsw8imrwBAQl4pMKMgvvpbjJpTfDc+E1VVO4PldBCe2TP eJb2w1fTG9rwylWHEmaAzBHDxs1UiC/Qr8EakMwF0EGOmRYZnEOulXXBkEeJ+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635823699; a=rsa-sha256; cv=none; b=dQ+uz74nj5ZazMjAr2nAEXwW1JYh+bE61iBdfOvOoge0oYPeFrMmdmXSEvtQIOoytBH0sY aLkidQeATIpr796cO2mowVLTKUHXAVBbiTTGddYRCn+uzjc/odU32bMrFCmA+Ek2k9tikR YJdFsV/QHF6TPO+3CGu26oJqEse4BP4wvRMy6ZSpp8nobvAiSJpSxhHyRa4zSfZ91HIuV4 OMMnjVv7s+TwbFdURUhaDJ8s0C9tLfvrAl1SxaabtpGdPmFpG9Rp3IKzg1txM+nTih/gp5 DAgGzLMzCthI6fBB3+P4+SdQa2zNsgNq1ZYlvoHfi56etQCl5fqyw+n6e4y2qA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MiM4Nxhl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MiM4Nxhl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 4488D3297C X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: Pdjq9E3e3LeD --000000000000ecbff205cfc5da0b Content-Type: text/plain; charset="UTF-8" On Mon, Nov 1, 2021 at 5:40 AM Ihor Radchenko wrote: > Thanks for reporting and providing the detailed backtrace! > Backtrace is really strange because cache is clearly updated upon > changing the file, but somehow somewhere a stale element is still > returned. > > Given that you are using org-roam, the only suspect that may create > stale copies of cached elements is org-element-parse-buffer. The > attached patch is making sure that org-element-parse-buffer never tries > to reuse cache. Can you try the patch and see if it helps? > Applying the patch doesn't seem to have completely fixed the issue. Here's an error message I got after re-starting running the patch, below. Before I go though, I thought it might be worth asking: how does one turn off the cache? I'd like to see if that resolves not only this issue, but also the fact that saving this 700 line file takes 15 seconds now. Thanks for your help, Greg --- error message below --- Warning (emacs): org-element--cache: Cached element has wrong parent in 211002_monthly.org. Resetting. If this warning appears regularly, please report it to Org mode mailing list (M-x org-submit-bug-report). The element is: "(headline (:raw-value \"Make sure Maia and I are on the same page regarding -- getting everything out of the attic and garage before Thursday!\" :begin 188 :end 315 :pre-blank 0 :contents-begin nil :contents-end nil :robust-begin nil :robust-end nil :level 2 :priority nil :tags nil :todo-keyword #(\"TODO\" 0 4 (face (org-todo org-todo org-level-2) wrap-prefix #(\"*** \" 0 1 ... 1 4 ...) line-prefix #(\"*\" 0 1 ...) fontified t)) :todo-type todo :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 188 :title \"Make sure Maia and I are on the same page regarding -- getting everything out of the attic and garage before Thursday!\" :mode nil :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 93756 :end 93756 :robust-begin 44 :robust-end 93754 :post-blank 0 :post-affiliated 1 :path \"/Users/greg/org/roam-personal/211002_monthly.org\" :mode org-data :ID \"211002_080654\" :CATEGORY \"211002_monthly\" :cached t :org-element--cache-sync-key nil)) :org-element--cache-sync-key (29 . 188)))" The parent is: "(org-data (:begin 1 :contents-begin 1 :contents-end 93756 :end 93756 :robust-begin 44 :robust-end 93754 :post-blank 0 :post-affiliated 1 :path \"/Users/greg/org/roam-personal/211002_monthly.org\" :mode org-data :ID \"211002_080654\" :CATEGORY \"211002_monthly\" :cached t :org-element--cache-sync-key nil))" The real parent is: "(headline (:raw-value \"Monday\" :begin 112 :end 424 :pre-blank 0 :contents-begin 121 :contents-end 424 :robust-begin 123 :robust-end 422 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 112 :title (#(\"Monday\" 0 6 (:parent #0))) :mode nil :granularity nil))" --000000000000ecbff205cfc5da0b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Nov 1, 2021 at 5:40 AM Ihor Radch= enko <yantar92@gmail.com> w= rote:
Thanks for reporting and providing the detailed backtrace!=
Backtrace is really strange because cache is clearly updated upon
changing the file, but somehow somewhere a stale element is still
returned.

Given that you are using org-roam, the only suspect that may create
stale copies of cached elements is org-element-parse-buffer. The
attached patch is making sure that org-element-parse-buffer never tries
to reuse cache. Can you try the patch and see if it helps?
=

Applying the patch doesn't seem to have completely = fixed the issue.=C2=A0
Here's an error message I got after re= -starting running the patch, below.

Before I go th= ough, I thought it might be worth asking: how does one turn
off t= he cache? I'd like to see if that resolves not only this issue, but als= o the=C2=A0
fact that saving this 700 line file takes 15 seconds = now.=C2=A0

Thanks for your help,
Greg

--- error message below ---
Warning (emacs= ): org-element--cache: Cached element has wrong parent in 211002_monthly.org. Resetting.
If this warning = appears regularly, please report it to Org mode mailing list (M-x org-submi= t-bug-report).
The element is: "(headline (:raw-value \"Make s= ure Maia and I are on the same page regarding -- getting everything out of = the attic and garage before Thursday!\" :begin 188 :end 315 :pre-blank= 0 :contents-begin nil :contents-end nil :robust-begin nil :robust-end nil = :level 2 :priority nil :tags nil :todo-keyword #(\"TODO\" 0 4 (fa= ce (org-todo org-todo org-level-2) wrap-prefix #(\"*** \" 0 1 ...= 1 4 ...) line-prefix #(\"*\" 0 1 ...) fontified t)) :todo-type t= odo :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :p= ost-affiliated 188 :title \"Make sure Maia and I are on the same page = regarding -- getting everything out of the attic and garage before Thursday= !\" :mode nil :granularity element :cached t :parent (org-data (:begin= 1 :contents-begin 1 :contents-end 93756 :end 93756 :robust-begin 44 :robus= t-end 93754 :post-blank 0 :post-affiliated 1 :path \"/Users/greg/org/r= oam-personal/211002_monthly.org\&= quot; :mode org-data :ID \"211002_080654\" :CATEGORY \"21100= 2_monthly\" :cached t :org-element--cache-sync-key nil)) :org-element-= -cache-sync-key (29 . 188)))"
=C2=A0The parent is: "(org-data = (:begin 1 :contents-begin 1 :contents-end 93756 :end 93756 :robust-begin 44= :robust-end 93754 :post-blank 0 :post-affiliated 1 :path \"/Users/gre= g/org/roam-personal/211002_monthly.or= g\" :mode org-data :ID \"211002_080654\" :CATEGORY \&quo= t;211002_monthly\" :cached t :org-element--cache-sync-key nil))"<= br>=C2=A0The real parent is: "(headline (:raw-value \"Monday\&quo= t; :begin 112 :end 424 :pre-blank 0 :contents-begin 121 :contents-end 424 := robust-begin 123 :robust-end 422 :level 1 :priority nil :tags nil :todo-key= word nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp ni= l :commentedp nil :post-affiliated 112 :title (#(\"Monday\" 0 6 (= :parent #0))) :mode nil :granularity nil))"

--000000000000ecbff205cfc5da0b--