emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-refresh-stats-properties: Stack overflow in regexp matcher
@ 2017-05-19 18:13 Kevin Zettler
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Zettler @ 2017-05-19 18:13 UTC (permalink / raw)
  To: emacs-orgmode

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

I suddenly am unable to open my org agenda.  Invoking ~C-a~ and selecting
any agenda command results in

~org-refresh-stats-properties: Stack overflow in regexp matcher~

The debug trace looks like:

#+BEGIN_SRC
Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
  re-search-forward("^\\*+
.*\\(?:\\[\\([0-9]+\\)%\\|\\([0-9]+\\)/\\([0-9]+\\)\\]\\)" nil t)
  org-refresh-stats-properties()
  org-agenda-prepare-buffers(("/Users/kev/Dropbox (Personal)/org/
2017_resolutions.org" "/Users/kev/Dropbox (Personal)/org/gcal.org"
"/Users/kev/Dropbox (Personal)/org/mobile-inbox.org" "/Users/kev/Dropbox
(Personal)/org/personal.org" "/Users/kev/Dropbox (Personal)/org/plebland.org"
"/Users/kev/Dropbox (Personal)/org/proposal.org" "/Users/kev/Dropbox
(Personal)/org/read.org" "/Users/kev/Dropbox (Personal)/org/recipies.org"
"/Users/kev/Dropbox (Personal)/org/reduxderiveddata.org" "~/Dropbox
(Personal)/org/gcal.org"))
  org-agenda-prepare("Day/Week")
  org-agenda-list(nil)
  funcall-interactively(org-agenda-list nil)
  call-interactively(org-agenda-list)
  org-agenda(nil)
  funcall-interactively(org-agenda nil)
  call-interactively(org-agenda nil nil)
  command-execute(org-agenda)
#+END_SRC

I suspected this was because I create a daily org file and have the dailies
in a wild card for ~org-agenda-files~ I have removed about ~300 files from
~org-agenda-files~ and it did not alleviate the issue.

The stacktrace above is without the daliy files

-- 
Kev Zettler
www.kevzettler.com

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

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

* org-refresh-stats-properties: Stack overflow in regexp matcher
@ 2017-05-19 22:25 Kevin Zettler
  2017-05-20  7:12 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Zettler @ 2017-05-19 22:25 UTC (permalink / raw)
  To: emacs-orgmode

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

Apologies if this is a duplicate. I first sent when I wasn't registered
with the mailing list. Looks like org Gmane is down
http://news.gmane.org/gmane.emacs.orgmode I get a 404.

I suddenly am unable to open my org agenda.  Invoking ~C-a~ and selecting
any agenda command results in

~org-refresh-stats-properties: Stack overflow in regexp matcher~

The debug trace looks like:

#+BEGIN_SRC
Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
  re-search-forward("^\\*+
.*\\(?:\\[\\([0-9]+\\)%\\|\\([0-9]+\\)/\\([0-9]+\\)\\]\\)"
nil t)
  org-refresh-stats-properties()
  org-agenda-prepare-buffers(("/Users/kev/Dropbox (Personal)/org/2017_
resolutions.org" "/Users/kev/Dropbox (Personal)/org/gcal.org"
"/Users/kev/Dropbox (Personal)/org/mobile-inbox.org" "/Users/kev/Dropbox
(Personal)/org/personal.org" "/Users/kev/Dropbox (Personal)/org/plebland.org"
"/Users/kev/Dropbox (Personal)/org/proposal.org" "/Users/kev/Dropbox
(Personal)/org/read.org" "/Users/kev/Dropbox (Personal)/org/recipies.org"
"/Users/kev/Dropbox (Personal)/org/reduxderiveddata.org" "~/Dropbox
(Personal)/org/gcal.org"))
  org-agenda-prepare("Day/Week")
  org-agenda-list(nil)
  funcall-interactively(org-agenda-list nil)
  call-interactively(org-agenda-list)
  org-agenda(nil)
  funcall-interactively(org-agenda nil)
  call-interactively(org-agenda nil nil)
  command-execute(org-agenda)
#+END_SRC

I suspected this was because I create a daily org file and have the dailies
in a wild card for ~org-agenda-files~ I have removed about ~300 files from
~org-agenda-files~ and it did not alleviate the issue.

The stacktrace above is without the daliy files

-- 
Kev Zettler
www.kevzettler.com

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

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

* Re: org-refresh-stats-properties: Stack overflow in regexp matcher
  2017-05-19 22:25 org-refresh-stats-properties: Stack overflow in regexp matcher Kevin Zettler
@ 2017-05-20  7:12 ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2017-05-20  7:12 UTC (permalink / raw)
  To: Kevin Zettler; +Cc: emacs-orgmode

Hello,

Kevin Zettler <kevzettler@gmail.com> writes:

> Apologies if this is a duplicate. I first sent when I wasn't registered
> with the mailing list. Looks like org Gmane is down
> http://news.gmane.org/gmane.emacs.orgmode I get a 404.
>
> I suddenly am unable to open my org agenda.  Invoking ~C-a~ and selecting
> any agenda command results in
>
> ~org-refresh-stats-properties: Stack overflow in regexp matcher~
>
> The debug trace looks like:
>
> #+BEGIN_SRC
> Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
>   re-search-forward("^\\*+
> .*\\(?:\\[\\([0-9]+\\)%\\|\\([0-9]+\\)/\\([0-9]+\\)\\]\\)"
> nil t)

I cannot reproduce it, but I pushed a regexp simplification in maint
branch. Does it solve your issue?

There's also a dubious

  (progn (org-end-of-subtree t t) (point))

in the function, which means that non-top-level headlines are skipped.
I don't know if this is intended. Anyway, that's unrelated to your
issue.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2017-05-20  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-19 22:25 org-refresh-stats-properties: Stack overflow in regexp matcher Kevin Zettler
2017-05-20  7:12 ` Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2017-05-19 18:13 Kevin Zettler

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