unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18324: plots hang in inferior octave mode
@ 2014-08-24 12:43 John Lawrence Aspden
  2014-08-26 23:49 ` Rüdiger Sonderfeld
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: John Lawrence Aspden @ 2014-08-24 12:43 UTC (permalink / raw)
  To: 18324

Hi, I'm finding that plot windows freeze running octave in inferior-octave mode

GNU Emacs 24.3.1
GNU Octave, version 3.8.1

Start Emacs
$ emacs -Q

Start an Inferior Octave Process
M-x run-octave

Octave Commands to produce plot
x=1:10
plot(x)

Plot window is frozen. The same commands entered directly into octave
in a terminal or octave started in emacs shell mode work fine.

Thanks, John.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
 of 2014-06-06 on barber, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
System Description:	Debian GNU/Linux testing (jessie)

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Inferior Octave

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r u n - c o <backspace> <backspace> o c t a v e
<return> x = 1 : 1 0 <return> p l o t ( x ) <return>
<help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <up> <down> M-p <return> <help-echo> <help-echo>
<help-echo> <help-echo> M-x r e p o r t - e m a c s
- b u g <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
History item: 1

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils octave-inf comint ansi-color ring octave-mod smie
easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)





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

* bug#18324: plots hang in inferior octave mode
  2014-08-24 12:43 bug#18324: plots hang in inferior octave mode John Lawrence Aspden
@ 2014-08-26 23:49 ` Rüdiger Sonderfeld
  2014-08-27  3:20   ` Stefan Monnier
  2014-08-27  3:54 ` Glenn Morris
  2021-05-28  1:02 ` Lars Ingebrigtsen
  2 siblings, 1 reply; 8+ messages in thread
From: Rüdiger Sonderfeld @ 2014-08-26 23:49 UTC (permalink / raw)
  To: 18324; +Cc: john

Please try the latest octave-mode from Emacs trunk 
http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/progmodes/octave.el

It has been significantly improved and should include changes for GNU Octave 
3.8.  It should also be backwards compatible to GNU Emacs 24.3.

Regards,
Rüdiger

On Sunday 24 August 2014 13:43:32 John Lawrence Aspden wrote:
> Hi, I'm finding that plot windows freeze running octave in inferior-octave
> mode
> 
> GNU Emacs 24.3.1
> GNU Octave, version 3.8.1
> 
> Start Emacs
> $ emacs -Q
> 
> Start an Inferior Octave Process
> M-x run-octave
> 
> Octave Commands to produce plot
> x=1:10
> plot(x)
> 
> Plot window is frozen. The same commands entered directly into octave
> in a terminal or octave started in emacs shell mode work fine.
> 
> Thanks, John.
> 
> 
> If Emacs crashed, and you have the Emacs process in the gdb debugger,
> please include the output from the following gdb commands:
>     `bt full' and `xbacktrace'.
> For information about debugging Emacs, please read the file
> /usr/share/emacs/24.3/etc/DEBUG.
> 
> 
> In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
>  of 2014-06-06 on barber, modified by Debian
> Windowing system distributor `The X.Org Foundation', version 11.0.11600000
> System Description:	Debian GNU/Linux testing (jessie)
> 
> Configured using:
>  `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
>  '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
>  '--localstatedir=/var/lib' '--infodir=/usr/share/info'
>  '--mandir=/usr/share/man' '--with-pop=yes'
>  '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3
> /site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:
> /usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu'
> '--with-x=yes'
>  '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
>  'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
>  --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
>  'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''
> 
> Important settings:
>   value of $LANG: en_GB.UTF-8
>   locale-coding-system: utf-8-unix
>   default enable-multibyte-characters: t
> 
> Major mode: Inferior Octave
> 
> Minor modes in effect:
>   tooltip-mode: t
>   mouse-wheel-mode: t
>   tool-bar-mode: t
>   menu-bar-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   blink-cursor-mode: t
>   auto-composition-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
> 
> Recent input:
> M-x r u n - c o <backspace> <backspace> o c t a v e
> <return> x = 1 : 1 0 <return> p l o t ( x ) <return>
> <help-echo> <help-echo> <help-echo> <down-mouse-1>
> <mouse-1> <up> <down> M-p <return> <help-echo> <help-echo>
> <help-echo> <help-echo> M-x r e p o r t - e m a c s
> - b u g <return>
> 
> Recent messages:
> For information about GNU Emacs and the GNU system, type C-h C-a.
> History item: 1
> 
> Load-path shadows:
> None found.
> 
> Features:
> (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
> mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
> gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
> mail-prsvr mail-utils octave-inf comint ansi-color ring octave-mod smie
> easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
> x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
> newcomment lisp-mode register page menu-bar rfn-eshadow timer select
> scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
> georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
> korean japanese hebrew greek romanian slovak czech european ethiopic
> indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
> abbrev minibuffer loaddefs button faces cus-face macroexp files
> text-properties overlay sha1 md5 base64 format env code-pages mule
> custom widget hashtable-print-readable backquote make-network-process
> dbusbind dynamic-setting system-font-setting font-render-setting
> move-toolbar gtk x-toolkit x multi-tty emacs)






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

* bug#18324: plots hang in inferior octave mode
  2014-08-26 23:49 ` Rüdiger Sonderfeld
@ 2014-08-27  3:20   ` Stefan Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2014-08-27  3:20 UTC (permalink / raw)
  To: Rüdiger Sonderfeld; +Cc: john, 18324

> Please try the latest octave-mode from Emacs trunk 
> http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/progmodes/octave.el

> It has been significantly improved and should include changes for GNU Octave 
> 3.8.  It should also be backwards compatible to GNU Emacs 24.3.

This said, it would be even better to try the version from the
`emacs-24' branch, since that's what will be released in 24.4, and it'd
good to know if this problem is fixed in 24.4 or not.


        Stefan





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

* bug#18324: plots hang in inferior octave mode
  2014-08-24 12:43 bug#18324: plots hang in inferior octave mode John Lawrence Aspden
  2014-08-26 23:49 ` Rüdiger Sonderfeld
@ 2014-08-27  3:54 ` Glenn Morris
  2014-08-27  4:01   ` Glenn Morris
  2021-05-28  1:02 ` Lars Ingebrigtsen
  2 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2014-08-27  3:54 UTC (permalink / raw)
  To: 18324-done

Version: 24.4

John Lawrence Aspden wrote:

> GNU Emacs 24.3.1
> GNU Octave, version 3.8.1
>
> Start Emacs
> $ emacs -Q
>
> Start an Inferior Octave Process
> M-x run-octave
>
> Octave Commands to produce plot
> x=1:10
> plot(x)

Thanks for the report.
By experiment, this is already fixed for the next release of Emacs.
Try it out at
http://alpha.gnu.org/gnu/emacs/pretest/emacs-24.3.93.tar.xz 

(Plain M-x run-octave hangs for me in 24.3.)

> In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
>  of 2014-06-06 on barber, modified by Debian





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

* bug#18324: plots hang in inferior octave mode
  2014-08-27  3:54 ` Glenn Morris
@ 2014-08-27  4:01   ` Glenn Morris
  2014-08-27  4:14     ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2014-08-27  4:01 UTC (permalink / raw)
  To: 18324; +Cc: john


Whoops, I spoke too soon, sorry. The plot window does indeed hang.
Reopened.





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

* bug#18324: plots hang in inferior octave mode
  2014-08-27  4:01   ` Glenn Morris
@ 2014-08-27  4:14     ` Glenn Morris
  2014-08-27  5:35       ` Leo Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2014-08-27  4:14 UTC (permalink / raw)
  To: 18324; +Cc: john


BTW:
1) Plots also hang in 24.3 (after setting prompt as per
https://savannah.gnu.org/bugs/?41099 to make it work at all).

2) Plots also hang in standalone octave if one does eg
ls -l /usr/bin and leaves it at the pager.
Ref: https://cygwin.com/ml/cygwin/2013-02/msg00302.html

3) The flags --line-editing -i seem to be there by default now and do not help.
Ref: https://lists.gnu.org/archive/html/help-emacs-windows/2012-10/msg00035.html





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

* bug#18324: plots hang in inferior octave mode
  2014-08-27  4:14     ` Glenn Morris
@ 2014-08-27  5:35       ` Leo Liu
  0 siblings, 0 replies; 8+ messages in thread
From: Leo Liu @ 2014-08-27  5:35 UTC (permalink / raw)
  To: Glenn Morris; +Cc: john, 18324

On 2014-08-27 00:14 -0400, Glenn Morris wrote:
> 1) Plots also hang in 24.3 (after setting prompt as per
> https://savannah.gnu.org/bugs/?41099 to make it work at all).
>
> 2) Plots also hang in standalone octave if one does eg
> ls -l /usr/bin and leaves it at the pager.
> Ref: https://cygwin.com/ml/cygwin/2013-02/msg00302.html
>
> 3) The flags --line-editing -i seem to be there by default now and do not help.
> Ref: https://lists.gnu.org/archive/html/help-emacs-windows/2012-10/msg00035.html

Thanks for these points. I at one point tried to reduce
inferior-octave-startup-args to nil but there were (performance?)
problems. I forgot where it was discussed.

I can reproduce the hang with "octave --no-gui --no-line-editing" in a
terminal outside emacs.

Best, Leo





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

* bug#18324: plots hang in inferior octave mode
  2014-08-24 12:43 bug#18324: plots hang in inferior octave mode John Lawrence Aspden
  2014-08-26 23:49 ` Rüdiger Sonderfeld
  2014-08-27  3:54 ` Glenn Morris
@ 2021-05-28  1:02 ` Lars Ingebrigtsen
  2 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-28  1:02 UTC (permalink / raw)
  To: 18324

See bug#19723 -- I don't think this can be an Emacs bug, but is instead
an Octave bug, since "octave -i" on the command line also displays this
behaviour.

So I'm closing this bug report in the Emacs bug tracker, but the problem
should be reported to the Octave maintainers.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no






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

end of thread, other threads:[~2021-05-28  1:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-24 12:43 bug#18324: plots hang in inferior octave mode John Lawrence Aspden
2014-08-26 23:49 ` Rüdiger Sonderfeld
2014-08-27  3:20   ` Stefan Monnier
2014-08-27  3:54 ` Glenn Morris
2014-08-27  4:01   ` Glenn Morris
2014-08-27  4:14     ` Glenn Morris
2014-08-27  5:35       ` Leo Liu
2021-05-28  1:02 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).