GNU bug report logs - #24492
24.5; Emacs unresponsive when sending buffer or region to Octave

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Anton S." <emacs@HIDDEN>; dated Wed, 21 Sep 2016 08:15:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Sep 2016 08:14:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 21 04:14:50 2016
Received: from localhost ([127.0.0.1]:58748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bmcg5-0005Fm-SR
	for submit <at> debbugs.gnu.org; Wed, 21 Sep 2016 04:14:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53045)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dienste@HIDDEN>) id 1bmcg4-0005FZ-74
 for submit <at> debbugs.gnu.org; Wed, 21 Sep 2016 04:14:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dienste@HIDDEN>) id 1bmcfx-0007dB-EQ
 for submit <at> debbugs.gnu.org; Wed, 21 Sep 2016 04:14:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52894)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dienste@HIDDEN>) id 1bmcfx-0007cH-BJ
 for submit <at> debbugs.gnu.org; Wed, 21 Sep 2016 04:14:41 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43999)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dienste@HIDDEN>) id 1bmcfu-0003bG-F1
 for bug-gnu-emacs@HIDDEN; Wed, 21 Sep 2016 04:14:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dienste@HIDDEN>) id 1bmcfs-0007aE-LM
 for bug-gnu-emacs@HIDDEN; Wed, 21 Sep 2016 04:14:38 -0400
Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::5]:50853)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dienste@HIDDEN>) id 1bmcfs-0007Z8-71
 for bug-gnu-emacs@HIDDEN; Wed, 21 Sep 2016 04:14:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1474445674; l=5568;
 s=domk; d=alshu.de;
 h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Subject:
 From:To; bh=1+0UN43kusdfYRP/VnDmcIa3Vj7MH20pFjoRUHF9+xo=;
 b=nxRs45afVr72dE6rUFJ5EI+aOqrn8A++K5YF31IEkMZJDtFNYjG1vHzb0S27P/hdVhc
 2IlZZ69+/r7Y2h6XNNfL0ceeyNdkVBjWPhG9rEOf3yZjq8uexMKJycpQ6fEM8qme/vmnU
 CD0ZE2lBgZwGI88PJ0RG3lIDELG5UnJZL+o=
X-RZG-AUTH: :KGUBe1O8ft+ulmeXaKjJc0U/3ecy8rkwcqgnXuovxiCEzWvJs+EYsVjle/GKd1owdosZnHtoamSp9t/IymgMigGvxgI=
X-RZG-CLASS-ID: mo00
Received: from [IPv6:2001:4ca0:0:f250:8286:f2ff:fe06:e1b8]
 ([2001:4ca0:0:f250:8286:f2ff:fe06:e1b8])
 by smtp.strato.de (RZmta 39.2 AUTH) with ESMTPSA id n04d94s8L8BFXvR
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH
 bits, eq. 15360 bits RSA)) (Client did not present a certificate)
 for <bug-gnu-emacs@HIDDEN>; Wed, 21 Sep 2016 10:11:15 +0200 (CEST)
To: bug-gnu-emacs@HIDDEN
From: "Anton S." <emacs@HIDDEN>
Subject: 24.5; Emacs unresponsive when sending buffer or region to Octave
Message-ID: <687b2dd9-6626-f1a3-0c46-50410a1c9e64@HIDDEN>
Date: Wed, 21 Sep 2016 10:11:15 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Description

Sending a buffer or a region to octave makes emacs unresponsive until 
the evaluation is complete. When the commands are executed manually in 
the inferior process buffer, everything works fine.

I tried this on two workstations. I have opened an issue for
spacemacs and was told to report upstream: 
https://github.com/syl20bnr/spacemacs/issues/7150

Reproduction guide :beetle:

     Start Emacs
     write folling in octave mode: for i=1:10 i, pause(1); end
     send the buffer to octave with
          octave-send-buffer
     or mark everything and do
         octave-send-region

Observed behavior:

Emacs is unresponsive for 10 seconds. Then a second buffer window opens
with the input lines visible but without output:

GNU Octave, version 4.0.3
Copyright (C) 2016 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-redhat-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.


 >> for i=1:10
 >>   i,
 >   pause(1)
 > end
 > >>

Doing ether
octave-send-buffer or octave-send-region again will also trigger emacs
being unresponsive for 10 seconds but this time after 10 seconds the 
full output is
displayed at once:

 >> for i=1:10
 >   i,
 >   pause(1)
 > end
i =  1
i =  2
i =  3
i =  4
i =  5
i =  6
i =  7
i =  8
i =  9
i =  10

Expected behavior:
Second buffer opens and i is counting up.

 >> for i=1:10
 >   i,
 >   pause(1)
 > end
i =  1
i =  2
i =  3
i =  4
i =  5
...

This can already be achieved by copying and yanking the commands 
manually to the inferior octave process.

Best Regards

Anton

In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9)
  of 2016-04-11 on buildvm-25.phx2.fedoraproject.org
Windowing system distributor `Fedora Project', version 11.0.11803000
Configured using:
  `configure --build=x86_64-redhat-linux-gnu
  --host=x86_64-redhat-linux-gnu --program-prefix=
  --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
  --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
  --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
  --libexecdir=/usr/libexec --localstatedir=/var
  --sharedstatedir=/var/lib --mandir=/usr/share/man
  --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
  --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
  --with-gpm=no build_alias=x86_64-redhat-linux-gnu
  host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
  -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
  -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
  -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
  -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro'

Important settings:
   value of $LANG: de_DE.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Octave

Minor modes in effect:
   tooltip-mode: t
   electric-indent-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 messages:
Mark set
Making completion list...
You can run the command `octave-send-buffer' with C-c TAB C-a
Mark set [2 times]
Making completion list...
call-interactively: End of buffer
End of buffer [2 times]
s-x is undefined
Mark set [6 times]
Making completion list...

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
help-fns mail-prsvr mail-utils compile octave smie comint ansi-color
ring vc-git cc-langs cl-loaddefs cl-lib cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode
easymenu time-date tooltip electric uniquify 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 prog-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 nadvice
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
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 113885 7021)
  (symbols 48 21069 0)
  (miscs 40 68 281)
  (strings 32 19997 3842)
  (string-bytes 1 666291)
  (vectors 16 12696)
  (vector-slots 8 423400 5738)
  (floats 8 70 487)
  (intervals 56 451 13)
  (buffers 960 14)
  (heap 1024 51524 973))





Acknowledgement sent to "Anton S." <emacs@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#24492; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.