[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Frequent crashes of Emacs 24 on Mac OS X 10.7.3 due to org-mode
From: |
Marius Hofert |
Subject: |
[O] Frequent crashes of Emacs 24 on Mac OS X 10.7.3 due to org-mode |
Date: |
Sun, 15 Apr 2012 23:11:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (darwin) |
Hi,
I work with GNU Emacs 24.0.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
[installed as Emacs-pretest-24.0.95-universal-10.6.8 from
http://emacsformacosx.com/builds ] on Mac OS X 10.7.3. (The reason for Emacs 24
is because of the latest features in Gnus). The org-mode version I use is
7.8.08.
I frequently experience crashes of Emacs during various tasks (see
http://stackoverflow.com/questions/10164425/emacs-almost-random-crashes-about-2-3-times-a-day-on-mac-os-x#comment13039387_10164425
which I posted earlier today when I didn't know the cause of the crashes). By
checking Console.app, I found what I also suspected: org-mode causes the
crashes. The problem is, I don't know how to solve this problem (I'm an
enthusiastic [although maybe not really experienced] org-mode user and would
*really* like to use org-mode in the future as well).
One of the crashes happened when I wanted to compile an .Rnw (Sweave) file via
C-c C-c (so totally -- at least to me -- independent of org-mode; other crashes
happened, for example, when I wanted to put in a new event in my agenda file).
For this
crash, I attach the complete report of Console.app, a brief overview is:
,----[ output of Console.app: ]
| Process: Emacs [68923]
| Path: /Applications/Emacs.app/Contents/MacOS/Emacs
| Identifier: org.gnu.Emacs
| Version: Version 24.0.95 (9.0)
| Code Type: X86-64 (Native)
| Parent Process: launchd [114]
|
| Date/Time: 2012-04-15 22:15:30.204 +0200
| OS Version: Mac OS X 10.7.3 (11D50)
| Report Version: 9
|
| Crashed Thread: 0 Dispatch queue: com.apple.main-thread
|
| Exception Type: EXC_BAD_ACCESS (SIGABRT)
| Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000a7
`----
My complete setup of org-mode and org-contacts in .emacs is:
,----[ org-mode setup in .emacs: ]
| ;; basics
| (require 'org-install); use org-mode
| (setq org-startup-indented 1); use indentation in org mode
| (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)); open all .org files
in org-mode
| (setq org-agenda-files
| (list "~/org/agenda.org")); set up org agenda file
| (setq org-default-notes-file "~/org/agenda.org"); set up org notes file
(stores captured events -- also use agenda.org)
| (setq org-agenda-start-on-weekday nil); start agenda view on current day
| (setq org-agenda-span 14); agenda view: show 14 days by default
| (setq calendar-week-start-day 1); start week on Monday
|
| ;; suggested global org keys
| (global-set-key (kbd "C-c l") 'org-store-link)
| (global-set-key (kbd "C-c c") 'org-capture); for capturing new TODO
| (global-set-key (kbd "C-c a") 'org-agenda); for viewing your agenda
|
| ;; define capture templates (for C-c c)
| (setq org-capture-templates
| '(("t" "TODO in ~/org/agenda.org -> Tasks" entry (file+headline
"~/org/agenda.org" "Tasks")
| "* TODO %?\nSCHEDULED: %^T\n%U")
| ("c" "Contact in ~/org/contacts.org -> Contact" entry (file+headline
"~/org/contacts.org" "Contact")
| "* %?%(org-contacts-template-name)%(org-contacts-template-email) %^g
| :PROPERTIES:
| :WORK:
| :HOME:
| :MOBILE:
| :LOCATION:
| :NOTE:
| :URL:
| :END:")))
|
| ;; set up org-contacts
| (require 'diary-lib); for making org-contacts anniversaries work
| (setq load-path (cons "~/.emacs.d/contacts" load-path))
| (require 'org-contacts)
| (setq org-contacts-files (quote ("~/org/contacts.org"))); set up org-contacts
file
|
| ;; make org-mode play nicely together with yasnippets
| ;; http://eschulte.me/emacs-starter-kit/starter-kit-org.html
| (defun yas/org-very-safe-expand ()
| (let ((yas/fallback-behavior 'return-nil)) (yas/expand)))
| (add-hook 'org-mode-hook
| (lambda ()
| ;; yasnippet (using the new org-cycle hooks)
| (make-variable-buffer-local 'yas/trigger-key)
| (setq yas/trigger-key [tab])
| (add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand)
| (define-key yas/keymap [tab] 'yas/next-field)
| ))
`----
It seems difficult to reproduce this particular crash, but crashes due to
org-mode appear frequently in my setup (multiple times a day; see also the link
to stackoverflow where I posted a link to another user experiencing something
similar; see also
http://www.humbug.in/stackoverflow/de/abort-trap-in-org-mode-in-emacs-23-on-mac-os-10-6-6-5460602.html
[I couldn't find the original post on stackoverflow for this post]).
Please let me know if I should try anything particular and report back the
output.
Cheers,
Marius
PS: I just found M-x org-submit-bug-report, here is the output:
,----[ output of M-x org-submit-bug-report: ]
| Emacs : GNU Emacs 24.0.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
| of 2012-04-02 on bob.porkrind.org
| Package: Org-mode version 7.8.08
|
| current state:
| ==============
| (setq
| org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
| org-tab-first-hook '(yas/org-very-safe-expand org-hide-block-toggle-maybe
| org-src-native-tab-command-maybe
| org-babel-hide-result-toggle-maybe)
| org-contacts-files '("~/org/contacts.org")
| org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
| org-occur-hook '(org-first-headline-recenter)
| org-metaup-hook '(org-babel-load-in-session-maybe)
| org-agenda-start-on-weekday nil
| org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
| org-confirm-shell-link-function 'yes-or-no-p
| org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
| org-beamer-auto-fragile-frames
| org-beamer-place-default-actions-for-lists)
| org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
| org-default-notes-file "~/org/agenda.org"
| org-startup-indented 1
| org-after-todo-state-change-hook '(org-clock-out-if-current)
| org-from-is-user-regexp "\\<Marius Hofert\\>"
| org-src-mode-hook '(org-src-babel-configure-edit-buffer
| org-src-mode-configure-edit-buffer)
| org-agenda-before-write-hook '(org-agenda-add-entry-text)
| org-babel-pre-tangle-hook '(save-buffer)
| org-mode-hook '((lambda nil (make-variable-buffer-local (quote
yas/trigger-key))
| (setq yas/trigger-key [tab])
| (add-to-list (quote org-tab-first-hook)
| (quote yas/org-very-safe-expand))
| (define-key yas/keymap [tab] (quote yas/next-field)))
| #[nil "\300\301\302\303\304$\207"
| [org-add-hook change-major-mode-hook org-show-block-all
append
| local]
| 5]
| #[nil "\300\301\302\303\304$\207"
| [org-add-hook change-major-mode-hook
org-babel-show-result-all
| append local]
| 5]
| org-babel-result-hide-spec org-babel-hide-all-hashes
| (lambda nil (if truncate-lines (toggle-truncate-lines -1))))
| org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
| org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
| org-cycle-show-empty-lines
| org-optimize-window-after-visibility-change)
| org-export-latex-format-toc-function 'org-export-latex-format-toc-default
| org-export-blocks '((src org-babel-exp-src-block nil)
| (export-comment org-export-blocks-format-comment t)
| (ditaa org-export-blocks-format-ditaa nil)
| (dot org-export-blocks-format-dot nil))
| org-export-first-hook '(org-beamer-initialize-open-trackers)
| org-export-interblocks '((src org-babel-exp-non-block-elements))
| org-agenda-span 14
| org-confirm-elisp-link-function 'yes-or-no-p
| org-metadown-hook '(org-babel-pop-to-session-maybe)
| org-agenda-mode-hook '((lambda nil (if truncate-lines (toggle-truncate-lines
-1))))
| org-agenda-files '("~/org/agenda.org")
| org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
| )
`----
crash_report.txt
Description: Text document
--
ETH Zurich
Dr. Marius Hofert
RiskLab, Department of Mathematics
HG E 65.2
Rämistrasse 101
8092 Zurich
Switzerland
Phone +41 44 632 2423
http://www.math.ethz.ch/~hofertj
- [O] Frequent crashes of Emacs 24 on Mac OS X 10.7.3 due to org-mode,
Marius Hofert <=