unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
@ 2021-02-21  8:00 PEDRO ANDRES ARANDA GUTIERREZ
  2021-02-22 10:51 ` Alan Third
  0 siblings, 1 reply; 11+ messages in thread
From: PEDRO ANDRES ARANDA GUTIERREZ @ 2021-02-21  8:00 UTC (permalink / raw)
  To: 46687

[-- Attachment #1: Type: text/plain, Size: 3685 bytes --]


Trying to disable the toolbar from the menu or with M-x toolbar-mode
results in freeze


In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.61 Version 10.13.6 (Build 17G14042))
 of 2021-02-21 built on paag.local
Repository revision: e6842038c9c48131503804b139872bd565a245d9
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1561
System Description:  Mac OS X 10.13.6

Configured using:
 'configure --without-x --with-ns --with-modules --with-xpm --with-jpeg
 --enable-silent-rules PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
 LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include CC=clang
 OBJC=clang 'CFLAGS=-g -O2'
 LIBXML2_CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libxml2
 LIBXML2_LIBS=-lxml2'

Configured features:
ACL GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG
THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB

Important settings:
  value of $LC_COLLATE: es_ES.UTF-8
  value of $LC_CTYPE: es_ES.UTF-8
  value of $LC_MESSAGES: es_ES.UTF-8
  value of $LC_MONETARY: es_ES.UTF-8
  value of $LC_NUMERIC: es_ES.UTF-8
  value of $LC_TIME: es_ES.UTF-8
  value of $LANG: es_ES.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-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

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads kqueue cocoa ns multi-tty
make-network-process emacs)

Memory information:
((conses 16 51488 7834)
 (symbols 48 6513 1)
 (strings 32 18169 2415)
 (string-bytes 1 606080)
 (vectors 16 12618)
 (vector-slots 8 177259 7539)
 (floats 8 21 29)
 (intervals 56 220 0)
 (buffers 992 10))
 
—
PEDRO ANDRES ARANDA GUTIERREZ
paranda@it.uc3m.es
Universidad Carlos III Madrid

Fragen sind nicht da um beantwortet zu werden…
Fragen sind da, um gestellt zu werden.
Georg Kreisler


[-- Attachment #2: Type: text/html, Size: 6761 bytes --]

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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-21  8:00 bug#46687: 28.0.50; Emacs freezes when disabling toolbar PEDRO ANDRES ARANDA GUTIERREZ
@ 2021-02-22 10:51 ` Alan Third
  2021-02-22 11:19   ` PEDRO ANDRES ARANDA GUTIERREZ
  0 siblings, 1 reply; 11+ messages in thread
From: Alan Third @ 2021-02-22 10:51 UTC (permalink / raw)
  To: PEDRO ANDRES ARANDA GUTIERREZ; +Cc: 46687

On Sun, Feb 21, 2021 at 09:00:51AM +0100, PEDRO ANDRES ARANDA GUTIERREZ wrote:
> 
> Trying to disable the toolbar from the menu or with M-x toolbar-mode
> results in freeze

Is it the toolbar or the menu bar? Your message on emacs devel said
menu bar.

Either way, I can't replicate this.

Does resizing the frame work OK?

> In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.61 Version 10.13.6 (Build 17G14042))
>  of 2021-02-21 built on paag.local
> Repository revision: e6842038c9c48131503804b139872bd565a245d9
> Repository branch: master
> Windowing system distributor 'Apple', version 10.3.1561
> System Description:  Mac OS X 10.13.6

Is there anyone out there running on macOS 10.13 who can try
replicating this bug? I'm on 10.14 and it's fine.
-- 
Alan Third





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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-22 10:51 ` Alan Third
@ 2021-02-22 11:19   ` PEDRO ANDRES ARANDA GUTIERREZ
  2021-02-22 11:33     ` Alan Third
  0 siblings, 1 reply; 11+ messages in thread
From: PEDRO ANDRES ARANDA GUTIERREZ @ 2021-02-22 11:19 UTC (permalink / raw)
  To: Alan Third; +Cc: 46687

[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]

My stupid… I meant the toolbar and have been able to track it down on trying to disabling it 

Attaching a compressed log from a forced exit after emacs -Q and hide toolbar from menu

Best,/PA



> El 22 feb 2021, a las 11:51, Alan Third <alan@idiocy.org> escribió:
> 
> On Sun, Feb 21, 2021 at 09:00:51AM +0100, PEDRO ANDRES ARANDA GUTIERREZ wrote:
>> 
>> Trying to disable the toolbar from the menu or with M-x toolbar-mode
>> results in freeze
> 
> Is it the toolbar or the menu bar? Your message on emacs devel said
> menu bar.
> 
> Either way, I can't replicate this.
> 
> Does resizing the frame work OK?
> 
>> In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.61 Version 10.13.6 (Build 17G14042))
>> of 2021-02-21 built on paag.local
>> Repository revision: e6842038c9c48131503804b139872bd565a245d9
>> Repository branch: master
>> Windowing system distributor 'Apple', version 10.3.1561
>> System Description:  Mac OS X 10.13.6
> 
> Is there anyone out there running on macOS 10.13 who can try
> replicating this bug? I'm on 10.14 and it's fine.
> -- 
> Alan Third

—
PEDRO ANDRES ARANDA GUTIERREZ
paranda@it.uc3m.es
Universidad Carlos III Madrid

Fragen sind nicht da um beantwortet zu werden…
Fragen sind da, um gestellt zu werden.
Georg Kreisler


[-- Attachment #2.1: Type: text/html, Size: 577 bytes --]

[-- Attachment #2.2: trace.txt.gz --]
[-- Type: application/x-gzip, Size: 41258 bytes --]

[-- Attachment #2.3: Type: text/html, Size: 2795 bytes --]

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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-22 11:19   ` PEDRO ANDRES ARANDA GUTIERREZ
@ 2021-02-22 11:33     ` Alan Third
  2021-02-22 11:39       ` PEDRO ANDRES ARANDA GUTIERREZ
  0 siblings, 1 reply; 11+ messages in thread
From: Alan Third @ 2021-02-22 11:33 UTC (permalink / raw)
  To: PEDRO ANDRES ARANDA GUTIERREZ; +Cc: 46687

On Mon, Feb 22, 2021 at 12:19:14PM +0100, PEDRO ANDRES ARANDA GUTIERREZ wrote:
> My stupid… I meant the toolbar and have been able to track it down
> on trying to disabling it
> 
> Attaching a compressed log from a forced exit after emacs -Q and
> hide toolbar from menu

It looks like it's in the call to redisplay in viewWillDraw.

Does resizing work OK? Like, grabbing the corner of the window and
waving it about for a few seconds?
-- 
Alan Third





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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-22 11:33     ` Alan Third
@ 2021-02-22 11:39       ` PEDRO ANDRES ARANDA GUTIERREZ
  2021-02-22 11:45         ` PEDRO ANDRES ARANDA GUTIERREZ
  0 siblings, 1 reply; 11+ messages in thread
From: PEDRO ANDRES ARANDA GUTIERREZ @ 2021-02-22 11:39 UTC (permalink / raw)
  To: Alan Third, PEDRO ANDRES ARANDA GUTIERREZ, 46687

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

Yes, it works! Both programmatically with
(setq default-frame-alist '((width . 120) (height . 33)))
and  "fooling around" with the mouse ;-)

/PA

El lun, 22 feb 2021 a las 12:33, Alan Third (<alan@idiocy.org>) escribió:

> On Mon, Feb 22, 2021 at 12:19:14PM +0100, PEDRO ANDRES ARANDA GUTIERREZ
> wrote:
> > My stupid… I meant the toolbar and have been able to track it down
> > on trying to disabling it
> >
> > Attaching a compressed log from a forced exit after emacs -Q and
> > hide toolbar from menu
>
> It looks like it's in the call to redisplay in viewWillDraw.
>
> Does resizing work OK? Like, grabbing the corner of the window and
> waving it about for a few seconds?
> --
> Alan Third
>


-- 
---
PEDRO ANDRES ARANDA GUTIERREZ
Universidad Carlos III de Madrid

"Fragen sind nicht da um beantwortet zu werden.
Fragen sind da, um gestellt zu werden" Georg Kreisler

[-- Attachment #2: Type: text/html, Size: 1474 bytes --]

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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-22 11:39       ` PEDRO ANDRES ARANDA GUTIERREZ
@ 2021-02-22 11:45         ` PEDRO ANDRES ARANDA GUTIERREZ
  2021-02-22 18:24           ` Alan Third
  2021-02-23 18:32           ` Alan Third
  0 siblings, 2 replies; 11+ messages in thread
From: PEDRO ANDRES ARANDA GUTIERREZ @ 2021-02-22 11:45 UTC (permalink / raw)
  To: Alan Third, PEDRO ANDRES ARANDA GUTIERREZ, 46687

[-- Attachment #1: Type: text/plain, Size: 1723 bytes --]

PS: interestingly, it happens both on My MacBook Pro (10.13) and my Macbook Air (10.15)… My configure is:

./autogen.sh
./configure --without-x --with-ns --with-modules \
 --with-xpm --with-jpeg \
 --enable-silent-rules \
 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
 LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" \
 CC=clang OBJC=clang CFLAGS="-g -O2”

From a clean git clone. I use macholib to create the standalone.

Best, /PA


> El 22 feb 2021, a las 12:39, PEDRO ANDRES ARANDA GUTIERREZ <paranda@it.uc3m.es> escribió:
> 
> Yes, it works! Both programmatically with
> (setq default-frame-alist '((width . 120) (height . 33)))
> and  "fooling around" with the mouse ;-)
> 
> /PA
> 
> El lun, 22 feb 2021 a las 12:33, Alan Third (<alan@idiocy.org <mailto:alan@idiocy.org>>) escribió:
> On Mon, Feb 22, 2021 at 12:19:14PM +0100, PEDRO ANDRES ARANDA GUTIERREZ wrote:
> > My stupid… I meant the toolbar and have been able to track it down
> > on trying to disabling it
> > 
> > Attaching a compressed log from a forced exit after emacs -Q and
> > hide toolbar from menu
> 
> It looks like it's in the call to redisplay in viewWillDraw.
> 
> Does resizing work OK? Like, grabbing the corner of the window and
> waving it about for a few seconds?
> -- 
> Alan Third
> 
> 
> -- 
> ---
> PEDRO ANDRES ARANDA GUTIERREZ
> Universidad Carlos III de Madrid
> 
> "Fragen sind nicht da um beantwortet zu werden.
> Fragen sind da, um gestellt zu werden" Georg Kreisler

—
PEDRO ANDRES ARANDA GUTIERREZ
paranda@it.uc3m.es
Universidad Carlos III Madrid

Fragen sind nicht da um beantwortet zu werden…
Fragen sind da, um gestellt zu werden.
Georg Kreisler


[-- Attachment #2: Type: text/html, Size: 4424 bytes --]

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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-22 11:45         ` PEDRO ANDRES ARANDA GUTIERREZ
@ 2021-02-22 18:24           ` Alan Third
  2021-02-23  7:59             ` PEDRO ANDRES ARANDA GUTIERREZ
  2021-02-23 18:32           ` Alan Third
  1 sibling, 1 reply; 11+ messages in thread
From: Alan Third @ 2021-02-22 18:24 UTC (permalink / raw)
  To: PEDRO ANDRES ARANDA GUTIERREZ; +Cc: 46687

On Mon, Feb 22, 2021 at 12:45:13PM +0100, PEDRO ANDRES ARANDA GUTIERREZ wrote:
> PS: interestingly, it happens both on My MacBook Pro (10.13) and my Macbook Air (10.15)… My configure is:
> 
> ./autogen.sh
> ./configure --without-x --with-ns --with-modules \
>  --with-xpm --with-jpeg \
>  --enable-silent-rules \
>  PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
>  LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" \
>  CC=clang OBJC=clang CFLAGS="-g -O2”
> 
> From a clean git clone. I use macholib to create the standalone.

Does it make any difference if you just do

    ./configure

without all the rest? (Do you use Homebrew?)

Can you please comment out the call to redisplay in nsterm.m at around
line 8502 and try again? I expect this will completely fix it.
-- 
Alan Third





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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-22 18:24           ` Alan Third
@ 2021-02-23  7:59             ` PEDRO ANDRES ARANDA GUTIERREZ
  0 siblings, 0 replies; 11+ messages in thread
From: PEDRO ANDRES ARANDA GUTIERREZ @ 2021-02-23  7:59 UTC (permalink / raw)
  To: Alan Third, PEDRO ANDRES ARANDA GUTIERREZ, 46687

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]

Hi Alan,

answers inline

El lun, 22 feb 2021 a las 19:24, Alan Third (<alan@idiocy.org>) escribió:

> On Mon, Feb 22, 2021 at 12:45:13PM +0100, PEDRO ANDRES ARANDA GUTIERREZ
> wrote:
> > PS: interestingly, it happens both on My MacBook Pro (10.13) and my
> Macbook Air (10.15)… My configure is:
> >
> > ./autogen.sh
> > ./configure --without-x --with-ns --with-modules \
> >  --with-xpm --with-jpeg \
> >  --enable-silent-rules \
> >  PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
> >  LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" \
> >  CC=clang OBJC=clang CFLAGS="-g -O2”
> >
> > From a clean git clone. I use macholib to create the standalone.
>
> Does it make any difference if you just do
>
>     ./configure
>
> without all the rest?


Tested that and the answer is no.


> (Do you use Homebrew?)
>

I use my fork of RUDIX (https://github.com/paaguti/rudix) mainly for GNUTLS
in the case of Emacs


> Can you please comment out the call to redisplay in nsterm.m at around
> line 8502 and try again? I expect this will completely fix it.
>

Did that and it fixes the freeze. However, when you start with
tool-bar-mode enabled, the window isn't drawn correctly. If you start with
(tool-bar-mode -1) and keep it like that, that seems to be a sort of
temporary fix.

-- 
> Alan Third
>

Let me know if you need more tests...
Thx, /PA

-- 
---
PEDRO ANDRES ARANDA GUTIERREZ
Universidad Carlos III de Madrid

"Fragen sind nicht da um beantwortet zu werden.
Fragen sind da, um gestellt zu werden" Georg Kreisler

[-- Attachment #2: Type: text/html, Size: 2728 bytes --]

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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-22 11:45         ` PEDRO ANDRES ARANDA GUTIERREZ
  2021-02-22 18:24           ` Alan Third
@ 2021-02-23 18:32           ` Alan Third
       [not found]             ` <24BBAC4C-FE32-4CC3-8710-9911654AA3D5@it.uc3m.es>
  1 sibling, 1 reply; 11+ messages in thread
From: Alan Third @ 2021-02-23 18:32 UTC (permalink / raw)
  To: PEDRO ANDRES ARANDA GUTIERREZ; +Cc: 46687

On Mon, Feb 22, 2021 at 12:45:13PM +0100, PEDRO ANDRES ARANDA GUTIERREZ wrote:
> PS: interestingly, it happens both on My MacBook Pro (10.13) and my
> Macbook Air (10.15)…

Do you compile it on each machine, or copy it from one to the other?

I've had an idea but if you compile it locally then my idea is wrong.

-- 
Alan Third





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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
       [not found]                         ` <DB44132D-8501-43D7-BF66-41673B0C573E@it.uc3m.es>
@ 2021-02-25 17:58                           ` Alan Third
  2021-02-26  9:44                             ` PEDRO ANDRES ARANDA GUTIERREZ
  0 siblings, 1 reply; 11+ messages in thread
From: Alan Third @ 2021-02-25 17:58 UTC (permalink / raw)
  To: PEDRO ANDRES ARANDA GUTIERREZ; +Cc: 46687-done

On Thu, Feb 25, 2021 at 01:10:48PM +0100, PEDRO ANDRES ARANDA GUTIERREZ wrote:
> Hi Alan,
> 
> Checked on 10.15 too and it works perfectly. I’m able to enable and
> disable toolbar mode from init.el en from M-x and Emacs doesn’t hang
> anymore.

Excellent, thanks.

I'll push the change up now.
-- 
Alan Third





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

* bug#46687: 28.0.50; Emacs freezes when disabling toolbar
  2021-02-25 17:58                           ` Alan Third
@ 2021-02-26  9:44                             ` PEDRO ANDRES ARANDA GUTIERREZ
  0 siblings, 0 replies; 11+ messages in thread
From: PEDRO ANDRES ARANDA GUTIERREZ @ 2021-02-26  9:44 UTC (permalink / raw)
  To: Alan Third, PEDRO ANDRES ARANDA GUTIERREZ, 46687-done

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

Great, thanks!

El jue, 25 feb 2021 a las 18:58, Alan Third (<alan@idiocy.org>) escribió:

> On Thu, Feb 25, 2021 at 01:10:48PM +0100, PEDRO ANDRES ARANDA GUTIERREZ
> wrote:
> > Hi Alan,
> >
> > Checked on 10.15 too and it works perfectly. I’m able to enable and
> > disable toolbar mode from init.el en from M-x and Emacs doesn’t hang
> > anymore.
>
> Excellent, thanks.
>
> I'll push the change up now.
> --
> Alan Third
>


-- 
---
PEDRO ANDRES ARANDA GUTIERREZ
Universidad Carlos III de Madrid

"Fragen sind nicht da um beantwortet zu werden.
Fragen sind da, um gestellt zu werden" Georg Kreisler

[-- Attachment #2: Type: text/html, Size: 1099 bytes --]

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

end of thread, other threads:[~2021-02-26  9:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21  8:00 bug#46687: 28.0.50; Emacs freezes when disabling toolbar PEDRO ANDRES ARANDA GUTIERREZ
2021-02-22 10:51 ` Alan Third
2021-02-22 11:19   ` PEDRO ANDRES ARANDA GUTIERREZ
2021-02-22 11:33     ` Alan Third
2021-02-22 11:39       ` PEDRO ANDRES ARANDA GUTIERREZ
2021-02-22 11:45         ` PEDRO ANDRES ARANDA GUTIERREZ
2021-02-22 18:24           ` Alan Third
2021-02-23  7:59             ` PEDRO ANDRES ARANDA GUTIERREZ
2021-02-23 18:32           ` Alan Third
     [not found]             ` <24BBAC4C-FE32-4CC3-8710-9911654AA3D5@it.uc3m.es>
     [not found]               ` <YDYitjj34ERzx781@breton.holly.idiocy.org>
     [not found]                 ` <0D6D8F4F-F7F4-4A00-AF9F-E60D4A636D70@it.uc3m.es>
     [not found]                   ` <YDZPMTlNxZvsUuyZ@breton.holly.idiocy.org>
     [not found]                     ` <CAPoMwp1E9B0fL6LNVSLOfAJzuREOJjxiSuz9MOELyJwtinvRVw@mail.gmail.com>
     [not found]                       ` <YDdpHG7y/GkL1E+E@breton.holly.idiocy.org>
     [not found]                         ` <DB44132D-8501-43D7-BF66-41673B0C573E@it.uc3m.es>
2021-02-25 17:58                           ` Alan Third
2021-02-26  9:44                             ` PEDRO ANDRES ARANDA GUTIERREZ

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