From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wAUHJEzDyGODiwAAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 05:13:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CMX6I0zDyGNxCwAAauVa8A (envelope-from ) for ; Thu, 19 Jan 2023 05:13:00 +0100 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 40356F489 for ; Thu, 19 Jan 2023 05:13:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIMHP-0001qC-B2; Wed, 18 Jan 2023 23:11:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIMHN-0001pk-7T for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 23:11:57 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIMHL-00008i-VR for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 23:11:56 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pIMHJ-0008Vs-CQ for emacs-orgmode@gnu.org; Thu, 19 Jan 2023 05:11:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Richard Kim Subject: Re: One of my Org files hangs Emacs Date: Wed, 18 Jan 2023 20:11:45 -0800 Message-ID: <87sfg75fjy.fsf@gmail.com> References: <87edrrpuhv.fsf@mbork.pl> <87o7qv663x.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:+0xq42tUpu8KmuAhBo05yLa8JEQ= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: emacs18@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674101580; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=YAWC4AoTPKaAb8SN5uFNDL3nNMvPiywxGz5Qb9lxSik=; b=k/u5FonMKDntUz4GQ8Cu7K6E4OdNRIZnzWpmyQdSeCy1P+Uj1yO9fY1I40gxnwAB9lNbF4 jJ0QwhyCEpdQIzfH99Ikf14P8MpPAQ+jTyjk3fjs+vAZN/4d9DmDkSDF4887sZwJRBtXNb WD+/7pf7TAvNH1hriOEN8vCr75eCR0LbkWoL2Tj1rjtUL3MXx2daxuOtFgDcPX3aNGH3fa l6gEHhNg31tvh/gFSd8a6l2gSbgWqB5PBTGCPPYaIvsTZpJOOuUzVm9owsA88X//0XtMZ9 9cDzeV/0vqdyiBG8kMFn9xfv3InZWArtNz05NVbvi188cZMfyxehQDtxPGyW5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674101580; a=rsa-sha256; cv=none; b=Y8x8LQ9oTojBZ0u5LoSi5uFZmPWK67b/Bpm31VXX8tSkoRxJgOwqmfDJGaLcKl+6vTko1G Brb6gjD6qdMk2u3N34busFjPut2yCul4MNKGue35NrypeqO8xFS5aw4F8+2QQZLG9MzymB K47QIui1HQMj5kTgha7B7GOJQWmMoP75TMioCNct+lXfYLeHgo57rY7PS/jAoMHShAIAjx Ab0IVE26ABl3y49Q/fcAtP0CFnOHM3W5vOvsuEzpTjwXDwGWGcybFeFaZzn8F84H30gV2I buwzFkM0UcSN2qeegXms2xEMbZrdNG8482+e1Zi4IGL3VH+8fnd7zKuL++K+Uw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 2.58 X-Spam-Score: 2.58 X-Migadu-Queue-Id: 40356F489 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-TUID: GOPRsZNMR5Tx Ihor Radchenko writes: > Marcin Borkowski writes: > >> so I have a bunch of Org files, most of them pretty big (over 1 >> megabyte), and one of them repeatedly causes my Emacsa to hang. >> Sometimes a plain `C-g' helps, sometimes I need to kill the Emacs >> process. How do I even begin to find out what happens? Any hints? > > 1. Set debug-on-quit to t and study the backtrace you get after C-g > 2. Set debug-on-error to t, send SIGUSR2 signal to Emacs and study the backtrace > 3. Run emacs -Q only loading the Org version you use and try to > reproduce. If you can, this is a bug in Org. If you can't, bisect > your config to identify the cause (there is a helper bug-hunter > package to assist; it can be used for manual reproduction as well) I would suggest disabling "org persist" which has caused so much grief for me. (setq org-element-cache-persistent nil) Prior to me adding above line, I would get mysterious hangs, and all kinds of frequent errors. I tried debug-on-quit and debug-on-error, but this "org persist" thing was impossible to debug.