* Help with org related crash on OpenBSD
@ 2017-10-13 16:51 Aaron Bieber
2017-10-17 23:54 ` Adrian Bradd
0 siblings, 1 reply; 3+ messages in thread
From: Aaron Bieber @ 2017-10-13 16:51 UTC (permalink / raw)
To: emacs-orgmode
Hola,
I am trying to track down an issue where emacs hangs on OpenBSD when
using org-capture. I happens with org 9.1.2 and 8.2.10 in emacs
25.3.1.
It seems that 3 out of 4 times, emacs completely hangs when adding a
Todo. I have tried setting (toggle-debug-on-quit) and
(toggle-debug-on-error), but once the hang happens emacs becomes
completely unresponsive. The one time that it doesn't hang, it takes
around 3 or 4 seconds to actually open up the gtd.org file.
I can't reproduce on non-OpenBSD systems
The config is fairly simple:
(require 'org)
(setq org-directory "~/new_org")
(setq org-agenda-files (file-expand-wildcards "~/new_org/*.org"))
(setq org-journal-dir "~/new_org/journal/")
(setq org-mobile-directory "~/new_org/MobileOrg")
(setq org-log-done 'time)
(setq org-capture-templates
`(("t" "Todo"
entry (file+headline "~/new_org/gtd.org" "TODOs")
"* TODO %?\n :PROPERTIES:\n :LOGGING: TODO(!) WAIT(!) DONE(!) CANCELED(!)\n :END:\n")
("j" "Journal"
entry (file+olp+datetree "~/new_org/journal-%Y-%m.org")
"* %?\nEntered on %U\n %i\n %a")))
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
Any suggestions would be greatly appreciated!
Cheers,
Aaron
--
PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A 4AF0 1F81 112D 62A9 ADCE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with org related crash on OpenBSD
2017-10-13 16:51 Help with org related crash on OpenBSD Aaron Bieber
@ 2017-10-17 23:54 ` Adrian Bradd
2017-10-18 0:32 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bradd @ 2017-10-17 23:54 UTC (permalink / raw)
To: Aaron Bieber; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1869 bytes --]
Sorry for the repeat. Forgot to copy the list the first time.
----
Instrumenting 'org-capture' with edebug might be of some assistance. This
should at least allow you to step through org-capture and see where emacs
is hanging.
HTH
On 13 October 2017 at 12:51, Aaron Bieber <aaron@bolddaemon.com> wrote:
> Hola,
>
> I am trying to track down an issue where emacs hangs on OpenBSD when
> using org-capture. I happens with org 9.1.2 and 8.2.10 in emacs
> 25.3.1.
>
> It seems that 3 out of 4 times, emacs completely hangs when adding a
> Todo. I have tried setting (toggle-debug-on-quit) and
> (toggle-debug-on-error), but once the hang happens emacs becomes
> completely unresponsive. The one time that it doesn't hang, it takes
> around 3 or 4 seconds to actually open up the gtd.org file.
>
> I can't reproduce on non-OpenBSD systems
>
> The config is fairly simple:
>
> (require 'org)
>
> (setq org-directory "~/new_org")
> (setq org-agenda-files (file-expand-wildcards "~/new_org/*.org"))
> (setq org-journal-dir "~/new_org/journal/")
> (setq org-mobile-directory "~/new_org/MobileOrg")
> (setq org-log-done 'time)
>
> (setq org-capture-templates
> `(("t" "Todo"
> entry (file+headline "~/new_org/gtd.org" "TODOs")
> "* TODO %?\n :PROPERTIES:\n :LOGGING: TODO(!) WAIT(!) DONE(!)
> CANCELED(!)\n :END:\n")
> ("j" "Journal"
> entry (file+olp+datetree "~/new_org/journal-%Y-%m.org")
> "* %?\nEntered on %U\n %i\n %a")))
>
> (global-set-key "\C-cc" 'org-capture)
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> (global-set-key "\C-cb" 'org-iswitchb)
>
> Any suggestions would be greatly appreciated!
>
> Cheers,
> Aaron
>
> --
> PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A 4AF0 1F81 112D 62A9
> ADCE
>
>
[-- Attachment #2: Type: text/html, Size: 3062 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with org related crash on OpenBSD
2017-10-17 23:54 ` Adrian Bradd
@ 2017-10-18 0:32 ` Nick Dokos
0 siblings, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2017-10-18 0:32 UTC (permalink / raw)
To: emacs-orgmode
Adrian Bradd <adrian.bradd@gmail.com> writes:
> Instrumenting 'org-capture' with edebug might be of some assistance. This should at least allow you to step through org-capture and see where emacs is hanging.
>
> HTH
>
> On 13 October 2017 at 12:51, Aaron Bieber <aaron@bolddaemon.com> wrote:
>
> Hola,
>
> I am trying to track down an issue where emacs hangs on OpenBSD when
> using org-capture. I happens with org 9.1.2 and 8.2.10 in emacs
> 25.3.1.
>
> It seems that 3 out of 4 times, emacs completely hangs when adding a
> Todo. I have tried setting (toggle-debug-on-quit) and
> (toggle-debug-on-error), but once the hang happens emacs becomes
> completely unresponsive. The one time that it doesn't hang, it takes
> around 3 or 4 seconds to actually open up the gtd.org file.
In addition to the edebug suggestion, you might try these two (three?) as well:
If it's emacs that's hanging, then `strace -p <pid>' might give a hint,
although it's probably better to run emacs under gdb as described in
https://www.gnu.org/software/emacs/manual/html_node/emacs/Checklist.html#Checklist
That can get hairy though.
If it's org-capture that's hanging, then setting debug-on-quit to t and pressing C-g when
you get a hang might give you a backtrace.
--
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-18 0:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-13 16:51 Help with org related crash on OpenBSD Aaron Bieber
2017-10-17 23:54 ` Adrian Bradd
2017-10-18 0:32 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.