emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 8.3 hangs
@ 2015-08-06  7:40 Samuel Wales
  2015-08-06  8:01 ` Nicolas Goaziou
  0 siblings, 1 reply; 19+ messages in thread
From: Samuel Wales @ 2015-08-06  7:40 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-06  7:40 8.3 hangs Samuel Wales
@ 2015-08-06  8:01 ` Nicolas Goaziou
  2015-08-06 20:40   ` Samuel Wales
  0 siblings, 1 reply; 19+ messages in thread
From: Nicolas Goaziou @ 2015-08-06  8:01 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

Samuel Wales <samologist@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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-06  8:01 ` Nicolas Goaziou
@ 2015-08-06 20:40   ` Samuel Wales
  2015-08-07  0:24     ` Nicolas Goaziou
  0 siblings, 1 reply; 19+ messages in thread
From: Samuel Wales @ 2015-08-06 20:40 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

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 600000 nil org-element--cache-sync
(#<buffer CAPTURE-other--a.org>) idle 0])

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-06 20:40   ` Samuel Wales
@ 2015-08-07  0:24     ` Nicolas Goaziou
  2015-08-07  0:42       ` Samuel Wales
  0 siblings, 1 reply; 19+ messages in thread
From: Nicolas Goaziou @ 2015-08-07  0:24 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@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,

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-07  0:24     ` Nicolas Goaziou
@ 2015-08-07  0:42       ` Samuel Wales
  2015-08-07  1:42         ` Samuel Wales
  0 siblings, 1 reply; 19+ messages in thread
From: Samuel Wales @ 2015-08-07  0:42 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

nothing special stands out as something i can try to keep doing to
make it occur.

On 8/6/15, Nicolas Goaziou <mail@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)?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-07  0:42       ` Samuel Wales
@ 2015-08-07  1:42         ` Samuel Wales
  2015-08-07  4:11           ` Suvayu Ali
  0 siblings, 1 reply; 19+ messages in thread
From: Samuel Wales @ 2015-08-07  1:42 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

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 <samologist@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 <mail@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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-07  1:42         ` Samuel Wales
@ 2015-08-07  4:11           ` Suvayu Ali
  2015-08-08  0:55             ` Samuel Wales
  0 siblings, 1 reply; 19+ messages in thread
From: Suvayu Ali @ 2015-08-07  4:11 UTC (permalink / raw)
  To: emacs-orgmode

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 <samologist@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 <mail@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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-07  4:11           ` Suvayu Ali
@ 2015-08-08  0:55             ` Samuel Wales
  2015-08-08  8:14               ` Nicolas Goaziou
  0 siblings, 1 reply; 19+ messages in thread
From: Samuel Wales @ 2015-08-08  0:55 UTC (permalink / raw)
  To: emacs-orgmode

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

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-08  0:55             ` Samuel Wales
@ 2015-08-08  8:14               ` Nicolas Goaziou
  2015-08-15  0:27                 ` Samuel Wales
  0 siblings, 1 reply; 19+ messages in thread
From: Nicolas Goaziou @ 2015-08-08  8:14 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@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,

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-08  8:14               ` Nicolas Goaziou
@ 2015-08-15  0:27                 ` Samuel Wales
  2015-08-15  0:50                   ` Samuel Wales
  2015-08-15  7:31                   ` Nicolas Goaziou
  0 siblings, 2 replies; 19+ messages in thread
From: Samuel Wales @ 2015-08-15  0:27 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

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?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15  0:27                 ` Samuel Wales
@ 2015-08-15  0:50                   ` Samuel Wales
  2015-08-15  7:31                   ` Nicolas Goaziou
  1 sibling, 0 replies; 19+ messages in thread
From: Samuel Wales @ 2015-08-15  0:50 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15  0:27                 ` Samuel Wales
  2015-08-15  0:50                   ` Samuel Wales
@ 2015-08-15  7:31                   ` Nicolas Goaziou
  2015-08-15  9:29                     ` Eric Abrahamsen
  2015-08-15 19:54                     ` Samuel Wales
  1 sibling, 2 replies; 19+ messages in thread
From: Nicolas Goaziou @ 2015-08-15  7:31 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Samuel Wales <samologist@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,

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15  7:31                   ` Nicolas Goaziou
@ 2015-08-15  9:29                     ` Eric Abrahamsen
  2015-08-15 20:10                       ` Andreas Leha
  2015-08-15 19:54                     ` Samuel Wales
  1 sibling, 1 reply; 19+ messages in thread
From: Eric Abrahamsen @ 2015-08-15  9:29 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Samuel Wales <samologist@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!

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15  7:31                   ` Nicolas Goaziou
  2015-08-15  9:29                     ` Eric Abrahamsen
@ 2015-08-15 19:54                     ` Samuel Wales
  2015-08-15 19:54                       ` Samuel Wales
  1 sibling, 1 reply; 19+ messages in thread
From: Samuel Wales @ 2015-08-15 19:54 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15 19:54                     ` Samuel Wales
@ 2015-08-15 19:54                       ` Samuel Wales
  2015-08-16  3:41                         ` Eric Abrahamsen
  0 siblings, 1 reply; 19+ messages in thread
From: Samuel Wales @ 2015-08-15 19:54 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

eric*

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15  9:29                     ` Eric Abrahamsen
@ 2015-08-15 20:10                       ` Andreas Leha
  2015-08-15 20:52                         ` Peter Salazar
  2015-08-16 12:46                         ` Matt Lundin
  0 siblings, 2 replies; 19+ messages in thread
From: Andreas Leha @ 2015-08-15 20:10 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> Samuel Wales <samologist@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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15 20:10                       ` Andreas Leha
@ 2015-08-15 20:52                         ` Peter Salazar
  2015-08-16 12:46                         ` Matt Lundin
  1 sibling, 0 replies; 19+ messages in thread
From: Peter Salazar @ 2015-08-15 20:52 UTC (permalink / raw)
  To: Andreas Leha; +Cc: org-mode

[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]

Same here.

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

> Hi all,
>
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> > Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> >
> >> Samuel Wales <samologist@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
>
>
>

[-- Attachment #2: Type: text/html, Size: 2692 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15 19:54                       ` Samuel Wales
@ 2015-08-16  3:41                         ` Eric Abrahamsen
  0 siblings, 0 replies; 19+ messages in thread
From: Eric Abrahamsen @ 2015-08-16  3:41 UTC (permalink / raw)
  To: emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> eric*

:)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: 8.3 hangs
  2015-08-15 20:10                       ` Andreas Leha
  2015-08-15 20:52                         ` Peter Salazar
@ 2015-08-16 12:46                         ` Matt Lundin
  1 sibling, 0 replies; 19+ messages in thread
From: Matt Lundin @ 2015-08-16 12:46 UTC (permalink / raw)
  To: emacs-orgmode

Andreas Leha <andreas.leha@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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-08-16 12:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-06  7:40 8.3 hangs Samuel Wales
2015-08-06  8:01 ` Nicolas Goaziou
2015-08-06 20:40   ` Samuel Wales
2015-08-07  0:24     ` Nicolas Goaziou
2015-08-07  0:42       ` Samuel Wales
2015-08-07  1:42         ` Samuel Wales
2015-08-07  4:11           ` Suvayu Ali
2015-08-08  0:55             ` Samuel Wales
2015-08-08  8:14               ` Nicolas Goaziou
2015-08-15  0:27                 ` Samuel Wales
2015-08-15  0:50                   ` Samuel Wales
2015-08-15  7:31                   ` Nicolas Goaziou
2015-08-15  9:29                     ` Eric Abrahamsen
2015-08-15 20:10                       ` Andreas Leha
2015-08-15 20:52                         ` Peter Salazar
2015-08-16 12:46                         ` Matt Lundin
2015-08-15 19:54                     ` Samuel Wales
2015-08-15 19:54                       ` Samuel Wales
2015-08-16  3:41                         ` Eric Abrahamsen

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).