emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [CRASH] org-pretty-entities causes emacs to take 100% CPU
@ 2011-01-31 12:45 Vladimir Alexiev
  2011-02-11 22:26 ` Eric Schulte
  0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Alexiev @ 2011-01-31 12:45 UTC (permalink / raw)
  To: emacs-orgmode

1. Evaluate this:
(setq org-entities-user  ; name latex math-p html ascii latin1 utf8
      '(("ok" nil nil "ચ" "OK" "OK" "✔")
        ("nok" nil nil "ઞ" "NOK" "NOK" "✘")))
(setq org-pretty-entities t)    ; \ok -> ✔ in buffer

2. Put this in an org buffer
- \ok Deploy on x
- \nok Deploy on y
- \nok Use a hosted version 
It should display the UTF graphic chars above (checkmark and cross)

3. Step on the mark and move around
- left/right: ok
- up: gives error "Args out of range"
- down: causes emacs to take 100% CPU, no response, have to kill it
GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-11-10 on SHAN-PC

Not 100% sure the above is reproducible (got tired of having to kill my emacs),
but if someone takes up debugging, I'll give more precise steps

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

* Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU
  2011-01-31 12:45 [CRASH] org-pretty-entities causes emacs to take 100% CPU Vladimir Alexiev
@ 2011-02-11 22:26 ` Eric Schulte
  2011-02-15  8:15   ` Vladimir Alexiev
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Schulte @ 2011-02-11 22:26 UTC (permalink / raw)
  To: Vladimir Alexiev; +Cc: emacs-orgmode

Vladimir Alexiev <vladimir@sirma.bg> writes:

> 1. Evaluate this:
> (setq org-entities-user  ; name latex math-p html ascii latin1 utf8
>       '(("ok" nil nil "&#2714;" "OK" "OK" "✔")
>         ("nok" nil nil "&#2718;" "NOK" "NOK" "✘")))
> (setq org-pretty-entities t)    ; \ok -> ✔ in buffer
>
> 2. Put this in an org buffer
> - \ok Deploy on x
> - \nok Deploy on y
> - \nok Use a hosted version 
> It should display the UTF graphic chars above (checkmark and cross)
>
> 3. Step on the mark and move around
> - left/right: ok
> - up: gives error "Args out of range"
> - down: causes emacs to take 100% CPU, no response, have to kill it
> GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-11-10 on SHAN-PC
>
> Not 100% sure the above is reproducible (got tired of having to kill my emacs),
> but if someone takes up debugging, I'll give more precise steps
>

I followed your recipe above, and could not reproduce the error you
describe.  As a side note, I would suggest changing the
org-entities-user value to the following for correct html rendering (at
least using my browser -- chrome)

(setq org-entities-user  ; name latex math-p html ascii latin1 utf8
      '(("ok" nil nil "&#x2714;" "OK" "OK" "✔")
        ("nok" nil nil "&#x2718;" "NOK" "NOK" "✘")))

Best -- Eric

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

* Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU
  2011-02-11 22:26 ` Eric Schulte
@ 2011-02-15  8:15   ` Vladimir Alexiev
  2011-02-16 10:59     ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Alexiev @ 2011-02-15  8:15 UTC (permalink / raw)
  To: emacs-orgmode

I've isolated it by running clean emacs (emacs -q) with this setup:

(setq org-entities-user	    ; name latex math-p html ascii latin1 utf8
      '(("ok" nil nil "<font color='green'>&#x2714;</font>" "OK" "OK" "✔")
        ("nok" nil nil "<font color='red'>&#x2718;</font>" "NOK" "NOK" "✘"))
      org-pretty-entities t)

And this small org file:

#+STARTUP:   showall indent
* Deployment Options
- \ok Deploy on

Observations:
- The crash DOES NOT happen with "noident"
- Moving up from the mark, I get this in *Messages*
  line-move-visual: Args out of range: 3, 3 
  (the number varies according to where the line is)
- it doesn't matter whether visual-line-mode is on or off

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

* Re: Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU
  2011-02-15  8:15   ` Vladimir Alexiev
@ 2011-02-16 10:59     ` Bastien
  2011-02-17 12:20       ` Vladimir Alexiev
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2011-02-16 10:59 UTC (permalink / raw)
  To: Vladimir Alexiev; +Cc: emacs-orgmode

Hi Vladimir,

Vladimir Alexiev <vladimir@sirma.bg> writes:

> I've isolated it by running clean emacs (emacs -q) with this setup:
>
> (setq org-entities-user	    ; name latex math-p html ascii latin1 utf8
>       '(("ok" nil nil "<font color='green'>&#x2714;</font>" "OK" "OK" "✔")
>         ("nok" nil nil "<font color='red'>&#x2718;</font>" "NOK" "NOK" "✘"))
>       org-pretty-entities t)
>
> And this small org file:
>
> #+STARTUP:   showall indent
> * Deployment Options
> - \ok Deploy on
>
> Observations:
> - The crash DOES NOT happen with "noident"
> - Moving up from the mark, I get this in *Messages*
>   line-move-visual: Args out of range: 3, 3 
>   (the number varies according to where the line is)
> - it doesn't matter whether visual-line-mode is on or off

Thanks for the detailed report -- but I'm not able to reproduce this
with GNU Emacs 24.0.50.2 of 2011-02-15.

-- 
 Bastien

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

* Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU
  2011-02-16 10:59     ` Bastien
@ 2011-02-17 12:20       ` Vladimir Alexiev
  2011-02-18  9:20         ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Alexiev @ 2011-02-17 12:20 UTC (permalink / raw)
  To: emacs-orgmode

> not able to reproduce this
> with GNU Emacs 24.0.50.2 of 2011-02-15.

Can I get this from somewhere, built for W32/cygwin?
I got 24.0.50.1 from file Emacs24.BZR.102298.Win32.20101110.zip
from http://ourcomments.org/Emacs/DL/EmacsW32/EmacsCVS/unptch/ .
I looked there for a newer version, but there isn't one.

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

* Re: Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU
  2011-02-17 12:20       ` Vladimir Alexiev
@ 2011-02-18  9:20         ` Bastien
  2011-02-19  2:32           ` Lennart Borgman
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2011-02-18  9:20 UTC (permalink / raw)
  To: Vladimir Alexiev; +Cc: Lennart Borgman, emacs-orgmode

Hi Vladimir,

Vladimir Alexiev <vladimir@sirma.bg> writes:

>> not able to reproduce this
>> with GNU Emacs 24.0.50.2 of 2011-02-15.
>
> Can I get this from somewhere, built for W32/cygwin?
> I got 24.0.50.1 from file Emacs24.BZR.102298.Win32.20101110.zip
> from http://ourcomments.org/Emacs/DL/EmacsW32/EmacsCVS/unptch/ .
> I looked there for a newer version, but there isn't one.

I cc Lennart, who can perhaps answer -- I'm not using windows.

-- 
 Bastien

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

* Re: Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU
  2011-02-18  9:20         ` Bastien
@ 2011-02-19  2:32           ` Lennart Borgman
  0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman @ 2011-02-19  2:32 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Vladimir Alexiev

On Fri, Feb 18, 2011 at 10:20 AM, Bastien <bastien.guerry@wikimedia.fr> wrote:
> Hi Vladimir,
>
> Vladimir Alexiev <vladimir@sirma.bg> writes:
>
>>> not able to reproduce this
>>> with GNU Emacs 24.0.50.2 of 2011-02-15.
>>
>> Can I get this from somewhere, built for W32/cygwin?
>> I got 24.0.50.1 from file Emacs24.BZR.102298.Win32.20101110.zip
>> from http://ourcomments.org/Emacs/DL/EmacsW32/EmacsCVS/unptch/ .
>> I looked there for a newer version, but there isn't one.
>
> I cc Lennart, who can perhaps answer -- I'm not using windows.


I am now only uploading my patched version of Emacs+EmacsW32 since
there are now official binaries built from the trunk available. Please
see

  http://www.emacswiki.org/emacs/CategoryWThirtyTwo

BTW it has been quite a long time since I uploaded Emacs+EmacsW32
officially, but I did an inofficial upload yesterday. (I am not sure
how stable that is though I am using it myself.)

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

end of thread, other threads:[~2011-02-19  2:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31 12:45 [CRASH] org-pretty-entities causes emacs to take 100% CPU Vladimir Alexiev
2011-02-11 22:26 ` Eric Schulte
2011-02-15  8:15   ` Vladimir Alexiev
2011-02-16 10:59     ` Bastien
2011-02-17 12:20       ` Vladimir Alexiev
2011-02-18  9:20         ` Bastien
2011-02-19  2:32           ` Lennart Borgman

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