emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Sebastian Christ <rudolfo.christ@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Emacs hangs sometimes for no reason
Date: Sat, 14 Jan 2017 19:42:53 +0100	[thread overview]
Message-ID: <87fuklv5xu.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2tw91ij98.fsf@gmail.com> (Sebastian Christ's message of "Sat, 14 Jan 2017 19:33:39 +0100")

Hello,

Sebastian Christ <rudolfo.christ@gmail.com> writes:

> in the last couple weeks (perhaps months?) Emacs hangs for no specific
> reason for me. The single constant is, that when it hangs, it hangs
> while I'm in org-mode. This occurs on multiple circumstance as
>
> - changing the outline structure by demoting and promoting headline
> - when refiling
> - re-schedule in agenda
> - yanking
> - perhaps more
>
> The strange thing is that it happens unpredictably, e.g. I re-schedule
> 11 items without problems and the 12th one lets Emacs crash. Sometimes
> it works for days without problems and then I promote a headline and
> Emacs crashes. Very sad :(
>
> When I kill Emacs with
>
>   $ pkill -SIGUSR2 Emacs
>
> this leaves me in the Emacs debugger in a flyspell function or (today)
> in a avl-tree function.
>
> My actual question is, had someone had similar issues? Or is it just me
> with my configuration?
>
> Perhaps someone can guide me on how I can find the root cause for this?
> I pretty much lost here.

This could be related to Org cache. I know the cache can become
corrupted upon modifying outline structure of a document. Unfortunately,
I couldn't come with a small enough recipe to reproduce the exact
problem.

You could try to set `org-element-use-cache' to nil and see if the hangs
disappear.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-01-14 18:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-14 18:33 Emacs hangs sometimes for no reason Sebastian Christ
2017-01-14 18:42 ` Nicolas Goaziou [this message]
2017-01-14 19:38   ` Samuel Wales
2017-01-15  8:52     ` Sebastian Christ
2017-01-15  8:49   ` Sebastian Christ
2020-02-11 12:32 ` Karl Voit
2020-02-11 22:23   ` briangpowell .
2020-02-12  9:09     ` Karl Voit
     [not found] <375517626d9045a99b6c008b5aaf62dd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-15 10:56 ` Eric S Fraga
2017-01-15 13:55   ` Stig Brautaset
2017-01-15 14:05     ` Stig Brautaset
2017-01-15 16:34   ` Eric Abrahamsen
2017-01-16  7:46     ` Michael Welle
2017-01-16 16:32       ` Eric Abrahamsen
     [not found]   ` <e14c1ab631e7438887615a8e568a31f5@DB5PR01MB1895.eurprd01.prod.exchangelabs.com>
2017-01-15 18:37     ` Eric S Fraga
2017-01-18 14:12       ` Samuel Loury
2017-01-19  8:37         ` Sebastian Christ
2017-01-20  7:34           ` Samuel Loury
     [not found]       ` <ad4e6c881fc34dbe871e0790f56d5a4e@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-18 16:09         ` Eric S Fraga

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=87fuklv5xu.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rudolfo.christ@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).