emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Ethan <ethan.glasser.camp@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Infinite loop with org-log-done 'time?
Date: Fri, 18 Jul 2014 22:22:06 -0500	[thread overview]
Message-ID: <8738dyyqw1.fsf@fastmail.fm> (raw)
In-Reply-To: <CAOJ+Ob0gH-FvMLXW+0t6pM7RTjWaP8qnR_vQM0eoYdDwvR351Q@mail.gmail.com> (Ethan's message of "Thu, 17 Jul 2014 14:48:31 -0400")

Ethan <ethan.glasser.camp@gmail.com> writes:

> I'm running org-mode from git (version "8.3beta"), and recently I
> started to get hangs in org files. I can't characterize them
> completely; I have a clear memory of causing something when I hit Enter
> to create a newline before a heading. Today I managed to reproduce it
> reliably when I changed a particular heading from DONE to TODO. When I
> trigger the hang, emacs's CPU spikes to 100% and C-g doesn't stop emacs
> (it flashes to signal that it got a quit, but doesn't actually quit).
> I've had to kill emacs, sometimes with -9, and restart.
>
> The bug has been tricky to track down. I can reproduce it reliably in
> one particular file by switching DONE to TODO on one particular
> heading. Changing DONE to TODO on another nearby heading doesn't seem
> to cause the problem. For this reason, I don't have a minimal example.
>
> It doesn't happen in org-mode in stock emacs. It also doesn't happen,
> even with org-mode from git, if I disable my '(org-log-done 'time)
> customization. I managed to get a backtrace using gdb (attached). I can
> provide (off-list) the .org file that I used to induce the failure.
>
> I haven't seen anyone else comment about this issue so I assume it's
> something specific to my configuration. Has anyone else seen anything
> like this

I experience this. In my case, it seems to involve some mysterious
combination of the element cache, clocking, and logging. The lockups are
disruptive enough that I have to set org-element-use-cache to nil ---
otherwise I experience 2 to 3 lockups per hour. The problem completely
disappears with the cache off.

Alas, the baroque complexity of my .emacs and the size of my org files
make it difficult to discover the precise cause.

I'll see if I can provide an ECM.

Matt

      parent reply	other threads:[~2014-07-19  3:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17 18:48 Infinite loop with org-log-done 'time? Ethan
2014-07-18  7:50 ` Nicolas Goaziou
2014-07-23 17:03   ` Ethan
2014-07-23 17:06     ` Ethan
2014-07-19  3:22 ` Matt Lundin [this message]

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=8738dyyqw1.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=ethan.glasser.camp@gmail.com \
    /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).