emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Kim <emacs18@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: One of my Org files hangs Emacs
Date: Wed, 18 Jan 2023 20:11:45 -0800	[thread overview]
Message-ID: <87sfg75fjy.fsf@gmail.com> (raw)
In-Reply-To: 87o7qv663x.fsf@localhost

Ihor Radchenko <yantar92@posteo.net> writes:

> Marcin Borkowski <mbork@mbork.pl> 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.




  reply	other threads:[~2023-01-19  4:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18 18:28 One of my Org files hangs Emacs Marcin Borkowski
2023-01-18 18:38 ` Ihor Radchenko
2023-01-19  4:11   ` Richard Kim [this message]
2023-01-19 10:01     ` Ihor Radchenko
2023-01-19 10:47     ` Max Nikulin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfg75fjy.fsf@gmail.com \
    --to=emacs18@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).