From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Emacs hangs sometimes for no reason Date: Sat, 14 Jan 2017 19:42:53 +0100 Message-ID: <87fuklv5xu.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSTI3-0004GA-BY for emacs-orgmode@gnu.org; Sat, 14 Jan 2017 13:43:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSTI0-0008E6-7A for emacs-orgmode@gnu.org; Sat, 14 Jan 2017 13:42:59 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:58267) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cSTI0-0008Cv-0h for emacs-orgmode@gnu.org; Sat, 14 Jan 2017 13:42:56 -0500 In-Reply-To: (Sebastian Christ's message of "Sat, 14 Jan 2017 19:33:39 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Sebastian Christ Cc: emacs-orgmode@gnu.org Hello, Sebastian Christ 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