From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: commit 5ea0228 has problem opening big org-mode file
Date: Mon, 25 Nov 2013 11:57:10 -0500 [thread overview]
Message-ID: <878uwcbes9.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: 871u255cla.fsf@gmail.com
Nick Dokos <ndokos@gmail.com> writes:
> York Zhao <gtdplatform@gmail.com> writes:
>
>> Hi List,
>>
>> I have an org-mode file that is 3230004 bytes in size. With commit "92f30ae" it
>> can be opened without any problem. However, with commit "5ea0228" the same file
>> could not be opened properly.
>>
>> What I did was: I opened Dired buffer, select the file, press enter, nothing
>> happened and Emacs locks up, hit C-g to get out, and I noticed that the file had
>> actually been opened, so I just visited the buffer, this time the contents of
>> the file appeared, but my org-tables are not fontified at all.
>>
>> Just now I tried again, this time I toggled "debug on error" on, closed the
>> file, and tried to open the file, again, Emacs locks up, hit C-g and my emacs
>> revived, again, the file had been opened, just didn't show up. So I visited the
>> buffer, this time my org-tables are fontified properly.
>>
>> What's the problem do you think this could be?
>>
>>
> Sounds like an infinite loop, but there isn't enough information to
> determine where. Can you set debug-on-quit, try again and post the
> backtrace?
>
I tried and failed to reproduce the problem.
In a private communication (I hope he reposts it to the list), the OP
said that he *had* turned on debug-on-quit (he misspoke when he said
debug-on-error) but there was no backtrace when he pressed C-g (that in
itself indicates a problem, either with emacs or with the OP's setup.)
He mentioned that he was using a derived mode, so I tried to reproduce
the problem with the following minimal org file:
--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/src/emacs/org/org-mode/lisp")
(add-to-list 'load-path "~/src/emacs/org/org-mode/contib/lisp")
(require 'org-loaddefs)
(define-derived-mode ndk-mode org-mode "ndk")
(add-to-list 'auto-mode-alist '("\\.ndk$" . ndk-mode))
--8<---------------cut here---------------end--------------->8---
I copied an org file (albeit a small one: 15K - I don't have anything
as big as the OP's 3Mb file) to foo.ndk and started emacs with
emacs -Q -l /path/to/minimal/min.org.el foo.ndk
Everything works as expected and I don't get a hang/inf-loop or any
other problem.
It may be that hack-local-variables takes a long time to process a large
file, although I don't think so: iirc, it limits itself to a tail of the
file of a given size, or the last "page" of the file (demarcated by ^L),
whichever is smaller.
Does CPU utilization go to 100% (on the core that emacs is running on)
when emacs is unresponsive? Does emacs -Q with a minimal org file as
above solve the problem (i.e. is the problem with the OP's .emacs)?
Questions, questions...
Nick
next prev parent reply other threads:[~2013-11-25 16:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 3:55 commit 5ea0228 has problem opening big org-mode file York Zhao
2013-11-25 4:28 ` Nick Dokos
2013-11-25 16:57 ` Nick Dokos [this message]
2013-11-25 19:26 ` Thomas S. Dye
2013-11-25 22:39 ` York Zhao
2013-11-26 1:38 ` York Zhao
2013-11-26 4:29 ` Nick Dokos
2013-11-26 4:53 ` Nick Dokos
2013-11-27 2:26 ` York Zhao
2013-11-27 2:29 ` Thomas S. Dye
2013-11-27 14:27 ` Nick Dokos
2013-11-27 18:58 ` Achim Gratz
2013-11-27 19:23 ` Nick Dokos
2013-11-27 19:53 ` Achim Gratz
2013-11-26 19:25 ` Achim Gratz
2013-11-27 1:46 ` York Zhao
2013-11-27 7:24 ` Achim Gratz
2013-11-28 0:17 ` York Zhao
2013-11-28 7:25 ` Achim Gratz
2013-11-29 3:58 ` York Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uwcbes9.fsf@alphaville.bos.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).