Re: [O] 8.3 hangs

2015-08-16 Thread Matt Lundin
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 I still get hangs from time to time, and `kill -12 $(pidof emacs)'
 always shows flyspell-mode in the mix. I never get hangs without
 flyspell-mode. I think this has been mentioned before, but I don't know
 if anyone went any farther with it. I still get hangs!

 Same here.

I experience the same thing.

Matt



Re: [O] 8.3 hangs

2015-08-15 Thread Eric Abrahamsen
Samuel Wales samolog...@gmail.com writes:

 eric*

:)




Re: [O] 8.3 hangs

2015-08-15 Thread Peter Salazar
Same here.

On Sat, Aug 15, 2015 at 4:10 PM, Andreas Leha 
andreas.l...@med.uni-goettingen.de wrote:

 Hi all,

 Eric Abrahamsen e...@ericabrahamsen.net writes:
  Nicolas Goaziou m...@nicolasgoaziou.fr writes:
 
  Samuel Wales samolog...@gmail.com writes:
 
  i am still getting a lot of hangs in 8.3.  most often, it is when i do
  a subtree sort.
 
  i keep trying element debug mode, but it has magical bug preventing
 abilities.
 
  org-show-entry is another place where the bug occurs.  it is part of
  recreating a more folded state after undoing a sort.
 
  once it was like
 
  Debugger entered--Lisp error: (quit)
org-element--cache-compare
avl-tree--do-delete
avl-tree--do-delete
avl-tree--do-delete
avl-tree--do-delete
avl-tree--do-delete
avl-tree-delete
org-element--cache-process-request
org-element--cache-sync(#buffer executive.org 31756)
org-element-at-point()
org-cycle-hide-drawers(children)
org-show-entry()
 
  anybody else getting these hangs?
 
  I don't. However, as explained already, what triggers the hang is
  unimportant. Once cache is corrupted, many actions can trigger a freeze.
  What matters is the root of the corruption.
 
  I still get hangs from time to time, and `kill -12 $(pidof emacs)'
  always shows flyspell-mode in the mix. I never get hangs without
  flyspell-mode. I think this has been mentioned before, but I don't know
  if anyone went any farther with it. I still get hangs!

 Same here.

 Regards,
 Andreas





Re: [O] 8.3 hangs

2015-08-15 Thread Nicolas Goaziou
Samuel Wales samolog...@gmail.com writes:

 i am still getting a lot of hangs in 8.3.  most often, it is when i do
 a subtree sort.

 i keep trying element debug mode, but it has magical bug preventing abilities.

 org-show-entry is another place where the bug occurs.  it is part of
 recreating a more folded state after undoing a sort.

 once it was like

 Debugger entered--Lisp error: (quit)
   org-element--cache-compare
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree-delete
   org-element--cache-process-request
   org-element--cache-sync(#buffer executive.org 31756)
   org-element-at-point()
   org-cycle-hide-drawers(children)
   org-show-entry()

 anybody else getting these hangs?

I don't. However, as explained already, what triggers the hang is
unimportant. Once cache is corrupted, many actions can trigger a freeze.
What matters is the root of the corruption.

Regards,



Re: [O] 8.3 hangs

2015-08-15 Thread Eric Abrahamsen
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Samuel Wales samolog...@gmail.com writes:

 i am still getting a lot of hangs in 8.3.  most often, it is when i do
 a subtree sort.

 i keep trying element debug mode, but it has magical bug preventing 
 abilities.

 org-show-entry is another place where the bug occurs.  it is part of
 recreating a more folded state after undoing a sort.

 once it was like

 Debugger entered--Lisp error: (quit)
   org-element--cache-compare
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree-delete
   org-element--cache-process-request
   org-element--cache-sync(#buffer executive.org 31756)
   org-element-at-point()
   org-cycle-hide-drawers(children)
   org-show-entry()

 anybody else getting these hangs?

 I don't. However, as explained already, what triggers the hang is
 unimportant. Once cache is corrupted, many actions can trigger a freeze.
 What matters is the root of the corruption.

I still get hangs from time to time, and `kill -12 $(pidof emacs)'
always shows flyspell-mode in the mix. I never get hangs without
flyspell-mode. I think this has been mentioned before, but I don't know
if anyone went any farther with it. I still get hangs!




Re: [O] 8.3 hangs

2015-08-15 Thread Samuel Wales
i just want some way i can identify them.  i will keep trying element
debug mode.

i also get timer errors.

erik: i am not running flyspell.



Re: [O] 8.3 hangs

2015-08-15 Thread Samuel Wales
eric*



Re: [O] 8.3 hangs

2015-08-15 Thread Andreas Leha
Hi all,

Eric Abrahamsen e...@ericabrahamsen.net writes:
 Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Samuel Wales samolog...@gmail.com writes:

 i am still getting a lot of hangs in 8.3.  most often, it is when i do
 a subtree sort.

 i keep trying element debug mode, but it has magical bug preventing 
 abilities.

 org-show-entry is another place where the bug occurs.  it is part of
 recreating a more folded state after undoing a sort.

 once it was like

 Debugger entered--Lisp error: (quit)
   org-element--cache-compare
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree--do-delete
   avl-tree-delete
   org-element--cache-process-request
   org-element--cache-sync(#buffer executive.org 31756)
   org-element-at-point()
   org-cycle-hide-drawers(children)
   org-show-entry()

 anybody else getting these hangs?

 I don't. However, as explained already, what triggers the hang is
 unimportant. Once cache is corrupted, many actions can trigger a freeze.
 What matters is the root of the corruption.

 I still get hangs from time to time, and `kill -12 $(pidof emacs)'
 always shows flyspell-mode in the mix. I never get hangs without
 flyspell-mode. I think this has been mentioned before, but I don't know
 if anyone went any farther with it. I still get hangs!

Same here.

Regards,
Andreas




Re: [O] 8.3 hangs

2015-08-14 Thread Samuel Wales
i am still getting a lot of hangs in 8.3.  most often, it is when i do
a subtree sort.

i keep trying element debug mode, but it has magical bug preventing abilities.

org-show-entry is another place where the bug occurs.  it is part of
recreating a more folded state after undoing a sort.

once it was like

Debugger entered--Lisp error: (quit)
  org-element--cache-compare
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree--do-delete
  avl-tree-delete
  org-element--cache-process-request
  org-element--cache-sync(#buffer executive.org 31756)
  org-element-at-point()
  org-cycle-hide-drawers(children)
  org-show-entry()

anybody else getting these hangs?



Re: [O] 8.3 hangs

2015-08-14 Thread Samuel Wales
it might not be sorting itself.  after i sort, i do org-show-entry as
part of a sequence to try to make things a little more folded after a
sort.



Re: [O] 8.3 hangs

2015-08-08 Thread Nicolas Goaziou
Samuel Wales samolog...@gmail.com writes:

 thanks, suvayu, how do i use this org element minor mode?

 i get hangs quite frequently, for example when sorting in the outline
 buffer.

The freeze is the consequence of a cache corruption, but it doesn't give
information about what caused that corruption (almost certainly without
any visible consequence at that time).

This minor mode solves this by sending a message in the minibuffer
whenever an action corrupts the cache. However, it slows down editing
a lot, so it is only reasonable to use it on short documents.

If you run it and notice a cache corruption, please report it.


Regards,



Re: [O] 8.3 hangs

2015-08-07 Thread Samuel Wales
thanks, suvayu, how do i use this org element minor mode?

i get hangs quite frequently, for example when sorting in the outline buffer.



Re: [O] 8.3 hangs

2015-08-06 Thread Samuel Wales
it is not consistent, and all of my org files are 500k
and private.

so althought it might be useless perhaps this lets you know
there is an issue.

here is another:

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  byte-code
  org-element--parse-to(524592 t (21955 39032 710872 158000))
  byte-code
  org-element--cache-process-request([524614 524614 nil -22 nil 1]
524634 nil (21955 39032 710872 158000) nil)
  byte-code
  org-element--cache-sync(#buffer CAPTURE-other--a.org)
  apply(org-element--cache-sync #buffer CAPTURE-other--a.org)
  byte-code
  timer-event-handler([t 0 0 60 nil org-element--cache-sync
(#buffer CAPTURE-other--a.org) idle 0])



Re: [O] 8.3 hangs

2015-08-06 Thread Suvayu Ali
On Thu, Aug 06, 2015 at 06:42:49PM -0700, Samuel Wales wrote:
 just now occurred when refiling from remember subtree to other agenda
 files.  maybe i did a ^G or an isearch or both.
 
 Error running timer `org-element--cache-sync': (wrong-type-argument
 integer-or-marker-p nil)
 
 
 On 8/6/15, Samuel Wales samolog...@gmail.com wrote:
  nothing special stands out as something i can try to keep doing to
  make it occur.
 
  On 8/6/15, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
  Do these errors start to appear a short while after you do something
  typical in your workflow (e.g., sorting a table)?
 

If it is a cache issue, you can try this minor mode from Nicolas.  It
helped me file a more useful cache related bug report.

https://github.com/suvayu/.emacs.d/blob/master/lisp/org-element-debug.el

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] 8.3 hangs

2015-08-06 Thread Nicolas Goaziou
Samuel Wales samolog...@gmail.com writes:

 it is not consistent, and all of my org files are 500k
 and private.

 so althought it might be useless perhaps this lets you know
 there is an issue.

It doesn't help much. Some editing action on your side triggers a cache
corruption. The errors you get are just consequences of this.

Do these errors start to appear a short while after you do something
typical in your workflow (e.g., sorting a table)?


Regards,



Re: [O] 8.3 hangs

2015-08-06 Thread Samuel Wales
nothing special stands out as something i can try to keep doing to
make it occur.

On 8/6/15, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 Do these errors start to appear a short while after you do something
 typical in your workflow (e.g., sorting a table)?



Re: [O] 8.3 hangs

2015-08-06 Thread Samuel Wales
just now occurred when refiling from remember subtree to other agenda
files.  maybe i did a ^G or an isearch or both.

Error running timer `org-element--cache-sync': (wrong-type-argument
integer-or-marker-p nil)


On 8/6/15, Samuel Wales samolog...@gmail.com wrote:
 nothing special stands out as something i can try to keep doing to
 make it occur.

 On 8/6/15, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 Do these errors start to appear a short while after you do something
 typical in your workflow (e.g., sorting a table)?



-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

Ramsay's disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] 8.3 hangs

2015-08-06 Thread Nicolas Goaziou
Hello,

Samuel Wales samolog...@gmail.com writes:

 ret and tab and sort hang emacs.  previously i got Error
 running timer `org-element--cache-sync':
 (wrong-type-argument integer-or-marker-p nil).

 tdoq at hang produces this (not running on source only):

 Debugger entered--Lisp error: (quit)
   org-element--cache-compare...
   avl-tree--do-delete(org-element--cache-compare...
   avl-tree--do-delete(org-element--cache-compare...
   avl-tree--do-delete(org-element--cache-compare...
   avl-tree--do-delete(org-element--cache-compare...
   avl-tree-delete([cl-struct-avl-tree-...
   ...
   org-element--cache-process-request([30317 37858 46912 -21480 (drawer
 (:begin 46764 :end 46912 :drawer-name LOGBOOK :contents-begin 46776
 :contents-end 46900 :post-blank 0 :post-affiliated 46764 :parent nil))
 0] 55567 1 nil nil)
   ...
   org-element--cache-sync(#buffer executive--a.org 1)
   org-element-at-point()
   org-hide-block-toggle()
   org-hide-block-toggle-maybe()
   run-hook-with-args-until-success(org-hide-block-toggle-maybe)
   org-cycle(nil)
   call-interactively(org-cycle nil nil)
   command-execute(org-cycle)

 cache reset sometimes fixes it for a while.

Could you send a minimal document in order to reproduce the problem?


Regards,

-- 
Nicolas Goaziou



[O] 8.3 hangs

2015-08-06 Thread Samuel Wales
ret and tab and sort hang emacs.  previously i got Error
running timer `org-element--cache-sync':
(wrong-type-argument integer-or-marker-p nil).

tdoq at hang produces this (not running on source only):

Debugger entered--Lisp error: (quit)
  org-element--cache-compare...
  avl-tree--do-delete(org-element--cache-compare...
  avl-tree--do-delete(org-element--cache-compare...
  avl-tree--do-delete(org-element--cache-compare...
  avl-tree--do-delete(org-element--cache-compare...
  avl-tree-delete([cl-struct-avl-tree-...
  ...
  org-element--cache-process-request([30317 37858 46912 -21480 (drawer
(:begin 46764 :end 46912 :drawer-name LOGBOOK :contents-begin 46776
:contents-end 46900 :post-blank 0 :post-affiliated 46764 :parent nil))
0] 55567 1 nil nil)
  ...
  org-element--cache-sync(#buffer executive--a.org 1)
  org-element-at-point()
  org-hide-block-toggle()
  org-hide-block-toggle-maybe()
  run-hook-with-args-until-success(org-hide-block-toggle-maybe)
  org-cycle(nil)
  call-interactively(org-cycle nil nil)
  command-execute(org-cycle)

cache reset sometimes fixes it for a while.