From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6NiLF9OEtGIuFgEAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 17:20:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QE6DFtOEtGLEBgEAG6o9tA (envelope-from ) for ; Thu, 23 Jun 2022 17:20:51 +0200 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 C4B632D752 for ; Thu, 23 Jun 2022 17:20:50 +0200 (CEST) Received: from localhost ([::1]:41612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4OdV-0006Fp-Dq for larch@yhetil.org; Thu, 23 Jun 2022 11:20:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Oa6-0004nx-Cc for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 11:17:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Oa3-0007Kw-Mw for emacs-orgmode@gnu.org; Thu, 23 Jun 2022 11:17:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 11F6B240108 for ; Thu, 23 Jun 2022 17:17:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1655997432; bh=QGoc6JQ/t29chA7otJ3cmJWq1WnD4G3W89ZDmdDcg40=; h=Date:Subject:To:Cc:From:From; b=krj0Yr7R9ODyeXNCll2i2WRUH10nnubvshOc4sBrZcid3LGE1rnSnDJ/j93f88LFl jvxrrv4oDJePlAMPjnSIASlgjC6Q91fLUHsVffQvlcuJ9pssJ1ocWcFJxai3AtJq5q raexr1lR5oYFOTabqwufI2iVGfVy71x0uQbks8wR+EYjqn4G6SJ14HHsoJ+cZAgrlZ 4SguofP0edEm+rZrzi5qMnEf2cmIt9MVbJZdfsyU01UxpGpmb0uuaBpd9FMRkcLD3g Sjz1ryQnPG3TmnU0udaYEsFgA0KmPdfpojg6NGDak/iiHEx1O2aJ9DITTaetZT/nxr k3g1cgCk76cvA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LTP4R08R7z6tpT; Thu, 23 Jun 2022 17:17:10 +0200 (CEST) Message-ID: Date: Thu, 23 Jun 2022 15:16:54 +0000 MIME-Version: 1.0 Subject: Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)] Content-Language: en-US To: Ihor Radchenko Cc: emacs-orgmode@gnu.org References: <87fsjv7vew.fsf@localhost> From: Cristi Constantin In-Reply-To: <87fsjv7vew.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=cristi.constantin@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Reply-To: cristi.constantin@posteo.ie Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655997651; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=i9++ZIJz2Q0/6CuBKz5ni+b3AQMyaqdZX6ac5odiOxA=; b=ZnJh/SGlfd3RmeHwZHpn0Yve+6ysUC+eTZ6tFeZlhc1xGqZjkHQDKG6F3QL4YVwKtU2QDF ZfJUo6bNzTFpNTqTixRfgSwZ3adY4HlwL0St8QjPW3cPnINy/Hs9n+FWgmDCGnUfjCeEHw 30I8pyG6YwbahKvwzS3N5MbHhdek/0jAyHj68UorS9XeRbnxrGwOn92o6tetlUy56sydAo YUDN1I5IqwU/IcKaY+HIeq4ZRnq5zqMG/Gj3uabXe8CxQh5SZau4b4xeAWsx87erhjVRb5 UTL4q31biDTmg7G6aVdgK+mWSiDOiynaZ0DIrsWt+FNQEubXGJM+REt8HMKcUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655997651; a=rsa-sha256; cv=none; b=kIaBvD8+M5ApHJcsdInegkDjggUDzAVOETm+xZjNo5dt12UBcp0L1jD1OyaCFS2+rDe7VK a9zwqLgh98he40jpvR6dZkqFAR15OSMaY9Y0JaLnvApGWqS8Mu19ejw7rYYsA+M+4A/quM Y9NEmdweBJhSUa52fG1QnnzcPh7I5yx/bSXSjnxbTnU4BKMm0uvxbVtU5N0Mg3/dNpLEis /rfhP3CD44HidpRXkeqhTtIAV9iTRpwOBT8KPVXNfD2sm+gjiZsy8Z/+EQ+bdn3VvyzHsc 2DFKEpvFoB4cqU56aUHmtbNSjjE2mm9fWy8fE8HuQe6fiuT1S8UtOSii5EVUYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=krj0Yr7R; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=krj0Yr7R; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C4B632D752 X-Spam-Score: -4.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8JhYP1/iXgCM Hi Ihor, Than you for the response! I tried the fix you suggested, but I still see this: Warning (org-element-cache): org-element--cache: Org parser error in 2022-log.org::179869. Resetting.  The error was: (error "Invalid search bound (wrong side of point)")  Backtrace: "  backtrace-to-string(nil)   org-element-at-point(179869)   org-element--cache-persist-before-write((elisp org-element--cache) (:hash \"63193836117540f39113c129b8de99c6\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608)) run-hook-with-args-until-success(org-element--cache-persist-before-write (elisp org-element--cache) (:hash \"63193836117540f39113c129b8de99c6\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608))   #f(compiled-function (v) #)((elisp org-element--cache))   #f(compiled-function (elt) #)((elisp org-element--cache))   mapc(#f(compiled-function (elt) #) ((elisp org-element--headline-cache) (elisp org-element--cache)))   seq-do(#f(compiled-function (elt) #) ((elisp org-element--headline-cache) (elisp org-element--cache)))   seq-find(#f(compiled-function (v) #) ((elisp org-element--headline-cache) (elisp org-element--cache)))   org-persist-write(((elisp org-element--headline-cache) (elisp org-element--cache)) (:hash \"63193836117540f39113c129b8de99c6\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608) t)   org-persist-write-all(#)   org-persist-write-all-buffer()   kill-buffer(#)   kill-current-buffer()   funcall-interactively(kill-current-buffer)   call-interactively(kill-current-buffer nil nil)   command-execute(kill-current-buffer) " Again other than the warning message, nothing seems to be broken, but it's annoying. I also see something similar when I close the tab with centaur-tabs-buffer-close-tab. ~ Cristi On 6/23/22 07:20, Ihor Radchenko wrote: > Cristi Constantin writes: > >> I'm just editing my normal org log files and I started seeing the errors >> above after I upgraded to latest org-mode. >> I think I didn't upgrade for a month, so this bug is pretty new. >> It doesn't seem to do anything weird, but I see this traceback a few >> times a day. >> >> This is the full error, so I'm reporting as requested: >> >> >> Warning (org-element-cache): org-element--cache: Org parser error in >> 2022-log.org::178496. Resetting. >> The error was: (error "Invalid search bound (wrong side of point)") >> Backtrace: >> " backtrace-to-string(nil) >> org-element-at-point(178496) >> org-element--cache-persist-before-write((elisp org-element--cache) > Thanks for reporting! > > Will it help if you add the following to you config? > > (defun org-persist-clear-caches (&rest _) > "Clear read/write caches for org-persist." > (clrhash org-persist--write-cache) > (clrhash org-persist--read-cache) > nil) > > (add-hook 'org-persist-before-read-hook #'org-persist-clear-caches) > (add-hook 'org-persist-before-write-hook #'org-persist-clear-caches) > > Best, > Ihor