emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Possible bug: Emacs hangs on (require 'org)
@ 2016-11-23  1:31 Luke
  2016-11-23  2:39 ` Eric Abrahamsen
  2016-11-23  2:43 ` Luke
  0 siblings, 2 replies; 6+ messages in thread
From: Luke @ 2016-11-23  1:31 UTC (permalink / raw)
  To: emacs-orgmode

I have a strange situation on my laptop.

I'm running Ubuntu 16.04, with Emacs 24.5.1. I'm also using the latest 
development branch from the org-mode git repository (latest changes 
pulled today).

Recently, for some unknown reason, emacs suddenly started to hang on 
startup. Placing some output messages in my .emacs file I was able to 
narrow it down to this line:

     (require 'org)

Loading org-mode hangs Emacs for some reason. If I remove the above line 
from .emacs then Emacs will start as normal (although without org-mode, 
obviously).

I tried creating a minimal-org.el file with the following contents:

     ;; activate debugging
     (setq debug-on-error t
           debug-on-signal nil
           debug-on-quit nil)

     ;; add latest org-mode to load path
     (add-to-list 'load-path (expand-file-name "~/elisp/org-mode/lisp"))
     (add-to-list 'load-path (expand-file-name 
"~/elisp/org-mode/contrib/lisp" t))

And then running:

     $ emacs -Q -l minimal-org.el

...but I still get the same result (Emacs hangs when I run `M-x (require 
'org)`).

Can anyone help tell me what's wrong, or suggest how I try and track 
down the problem?

-- 
Luke

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Possible bug: Emacs hangs on (require 'org)
@ 2017-01-06 14:30 Martin Zuther
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Zuther @ 2017-01-06 14:30 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

About every third time I start Emacs, I also experience a very slow 
startup with org-mode 9.0.3 enabled.  I run "GNU Emacs 24.5.1 
(x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, 
modified by Debian" on Linux Mint 18.1 Cinnamon.

Here is my minimal setup:

   ;;; Minimal setup to load latest 'org-mode'

   ;; activate debugging
   (setq debug-on-error t
	    debug-on-signal nil
	    debug-on-quit nil)

   ;; add latest org-mode to load path
   (add-to-list 'load-path "~/.emacs.d/elisp/org_9.0.3/lisp")
   (require 'org)

This bug is solved by disabling my network, but in contrast to Luke, I 
have access to a fast and stable network.

Normal startup time is below one second.  When the bug hits, it is 
around 2 minutes and 7 seconds, which to me looks suspiciously like a 
typical network timeout of 120 seconds.

Martin
-- 
www.mzuther.de
www.radix-musik.de

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

end of thread, other threads:[~2017-01-06 14:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23  1:31 Possible bug: Emacs hangs on (require 'org) Luke
2016-11-23  2:39 ` Eric Abrahamsen
2016-11-23  2:56   ` Luke
2016-11-23  3:30     ` Eric Abrahamsen
2016-11-23  2:43 ` Luke
  -- strict thread matches above, loose matches on Subject: below --
2017-01-06 14:30 Martin Zuther

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