From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CFi9Cq5jJF/YUgAA0tVLHw (envelope-from ) for ; Fri, 31 Jul 2020 18:32:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KPaeBq5jJF86HgAA1q6Kng (envelope-from ) for ; Fri, 31 Jul 2020 18:32:14 +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 82847940630 for ; Fri, 31 Jul 2020 18:32:13 +0000 (UTC) Received: from localhost ([::1]:45980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1ZpD-0007MV-4P for larch@yhetil.org; Fri, 31 Jul 2020 14:32:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1ZoD-0007LB-2U for emacs-orgmode@gnu.org; Fri, 31 Jul 2020 14:31:09 -0400 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:36144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1ZoB-0006eW-6O for emacs-orgmode@gnu.org; Fri, 31 Jul 2020 14:31:08 -0400 Received: by mail-qk1-x729.google.com with SMTP id g26so29717567qka.3 for ; Fri, 31 Jul 2020 11:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=lkX3bVCyGbic4Yg+6gH/KZoIRDWzpJJGFhpJLm4C3N0=; b=NmvgoLGAWSB/5dHX39X36hiOsnePRdw8wnYDRvireeEXqh8UbY6AUZGN8pgbPrnZjf LD4lFtJKYg1pKkSO848JCa6UEv9R1dqCXHZiqho75T/K8Ur+OO2pa5dwSnfmrlHFmqbZ 9GtCDUqAqiwuPezgcZMLOZps0I/vs7c3IiVIdj3qUf2lSR6UoWiRuvnaFJmaBgFPhfxk xq+7nsKrXVQkcwUx5/ZaIYOVSK0IYI4+hQfbtOkc2Kpy9rS64rnznPc+vSvG8mg9AfnQ YxcRw/O+zkqPzRgIB4IpWLZ5i90sq0pFC/1Fb3FL+h+dBDRaqSgbonGqEhfPqa1GVAIa HkNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lkX3bVCyGbic4Yg+6gH/KZoIRDWzpJJGFhpJLm4C3N0=; b=UD/dpiTzAJRfG8RoPHw/zVrFiBU/v3qyixy7LgOgtgrmh2DRxuyK3c6kHyD0i6bUOz 0l+a3Fu6iy2/FLVqP8rayk3qsBLcwx5IPMMpfYWf484D9gdnWdNuXCfnIP6kRsJ541i/ x3JWqNeuh6P5VG+0RzwLEe/9Gp+XNmTOJFiGlBNsIhjCVE8g9FyEzspguxjRvGgQNSUt rVgscx4kzsYZGp+62hWtGk+aAz/y5vKqK2GyWUrLBw+aYQwC6wVH8UfUnEmdv1u3Jx4P oIMUsouYDmE4jG5/O1JrJnFdBiyLtfKJALhVsqtI7x+XrG6fM8+pe8DIADsNjQoBSfW9 LUOw== X-Gm-Message-State: AOAM532h3adgo7dkp5CaQej8RGB78y28qzQoMF/2QUL27wwaYCAFbVT/ hVGPmTG/Z7g7FF84fx4fUGO70UigkzI= X-Google-Smtp-Source: ABdhPJykIlaL3vM3NiFaOHHhD45DKIyhWpRLaqx0epD00DJxldiVlm1vwCVXAHeoSBqw0EfN2nXG5A== X-Received: by 2002:a05:620a:13f7:: with SMTP id h23mr5469500qkl.396.1596220265661; Fri, 31 Jul 2020 11:31:05 -0700 (PDT) Received: from tzzpccd.dnsalias.net (pool-72-89-125-139.nycmny.fios.verizon.net. [72.89.125.139]) by smtp.gmail.com with ESMTPSA id l11sm9542058qti.59.2020.07.31.11.31.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 11:31:05 -0700 (PDT) From: Justin Vallon X-Google-Original-From: Justin Vallon Received: from heron.vallon (quail.vallon [192.168.8.1]) by tzzpccd.dnsalias.net (Postfix) with ESMTPSA id D6D16E8; Fri, 31 Jul 2020 14:31:04 -0400 (EDT) Subject: Re: infinite recursion org-update-id-locations / org-entry-properties / org-entry-blocked-p / org-edna / org-id-find / org-id-update-locations To: emacs-orgmode@gnu.org References: Message-ID: <97d35b5d-96a4-acbc-00a0-50809834220e@gmail.com> Date: Fri, 31 Jul 2020 14:31:04 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=justinvallon@gmail.com; helo=mail-qk1-x729.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NmvgoLGA; 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-Spam-Score: -1.71 X-TUID: A5bm6Kgh6MhO I just tried using straight for org, and master (a1e5bee5c) has a rewritten org-update-id-locations that uses regexps to find the IDs. It appears to have fixed the problem (for cases that I tried). -Justin On 7/30/20 4:21 PM, Justin Vallon wrote: > I copy by org files between 2 machines. Thus, my .org-id-locations file > gets stale when I archive on one machine, then sync the org files. > > I also use org-edna. > > Sometimes, org-agenda will go into an infinite loop (recursion depth, > etc) when scanning. > > I believe what is happening is: > > - org-agenda / org-edna builds the agenda, and hits a "missing" id(X) > - org-update-id-locations starts scanning files/nodes to refresh > - org-cached-entry-get tries to get all properties > - org-entry-blocked-p is called > - org-edna then tries to parse the BLOCKER property > - the property mentions "id(Y)", which has not been found (yet) > - cache miss, rescan files > > The X and Y could be different, but once id(Y) is missing and the > cache-miss happens during id-scanning, it will repeat. > > I suppose it also might be sensitive to the order of files in the list, > since scanning the archive first would scan the older IDs, then the > active file would reference those older IDs. However, I would imagine > there would be trouble if an "earlier" node in the active file > referenced an ID that appeared "later" in the file, since the file is > being scanned in-order. > > I haven't tried this, but the simplest case to reproduce might be to > delete the .org-id-locations file, then feed it: > > * Second > BLOCKER: id(first) > * First > ID: first > > I can try to build a (simple) reproducible test case if this is unclear. > > My work-around is to disable org-edna, run org-id-update-id-locations, > then reenable org-edna. > -- -Justin JustinVallon@gmail.com