From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: still seeing semi-regular lockups Date: Wed, 11 Jun 2014 20:53:25 +0900 Message-ID: <871tuvek7e.fsf@tanger.home> References: <87siocrbyb.fsf@ericabrahamsen.net> <87siobtn1i.fsf@bzg.ath.cx> <87ha4r1j91.fsf@tanger.home> <87k39hdf2o.fsf@tanger.home> <874n09cmq7.fsf@tanger.home> <87k393y6at.fsf@gmail.com> <877g53tjvh.fsf@tanger.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wuh6D-0007ig-A0 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 07:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wuh68-0006PH-0i for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 07:53:49 -0400 In-Reply-To: <877g53tjvh.fsf@tanger.home> (daimrod@gmail.com's message of "Fri, 30 May 2014 23:35:14 +0900") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Bastien , Eric Abrahamsen , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Daimrod writes: > Nicolas Goaziou writes: > >> Hello, >> >> Daimrod writes: >> >>> I've attached part of the traces (the whole traces are way too big) and >>> the backtraces. >> >> Thanks for looking into this. However, you are running a compiled Org, >> which renders backtraces less useful. > > Ok, I was wondering why the backtraces was so ugly, I didn't think about > byte-compilation... Thanks for the tip. > >> Also, you may want to disable cache refresh on idle time with, e.g., >> >> (setq org-element-cache-sync-idle-time 3600) >> >> It could make the bug easier to reproduce. > > Thanks, I'll try again this w.e. Okay, so I've found a more or less reliable way to reproduce this bug (on my machine at least). 1. $ emacs -Q -l debug.el test.org 2. Expand headline () 3. go below the first headline (C-n) 4. press `i' a couple of seconds ~10 chars 5. delete the line (C-a C-k) 6. goto 4 until if locks up As I said, it's not completely reliable but so far the lockup always happens. Sometimes it happens after the third iteration, sometimes after the tenth iteration, but it always happen. I've attached `debug.el' and `test.org'. `debug.el' setup the "environment" to reproduce the bug, you may need to change the path to your orgmode source base and you'll need `adaptive-wrap-prefix-mode' (available on ELPA). I've been able to reproduce the bug without `adaptive-wrap-prefix-mode' though other people have reported the same symptoms without using it. `test.org' is a simple org file with two headlines. It seems that two headlines are required to trigger the cache mechanism (with `org-element-cache--sync'). Do you confirm the lockup with this setting? Best, --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=test.org * i * i i --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=debug.el Content-Transfer-Encoding: quoted-printable (add-to-list 'load-path "~/src/elisp/org-mode/lisp") (require 'org) (add-to-list 'load-path "~/.emacs.d/elpa/adaptive-wrap-0.5") (require 'adaptive-wrap) (advice-add 'jit-lock--debug-fontify :around (lambda (fun &rest args) (with-local-quit (apply fun args)))) (trace-function 'org-adaptive-fill-function) (trace-function 'org-element-at-point) (trace-function 'org-element--cache-sync) (trace-function 'org-element--cache-process-request) ;; (trace-function 'org-element--cache-key-less-p) ;; (trace-function 'fill-match-adaptive-prefix) ;; (trace-function 'fill-context-prefix) ;; (trace-function 'adaptive-wrap-fill-context-prefix) ;; (trace-function 'adaptive-wrap-prefix-function) (add-hook 'text-mode-hook 'visual-line-mode) (add-hook 'text-mode-hook 'adaptive-wrap-prefix-mode) (add-hook 'text-mode-hook (lambda () (activate-input-method "latin-postfix"= ))) (setq org-element-cache-sync-idle-time 0.01) --=-=-= Content-Type: text/plain -- Daimrod/Greg --=-=-=--