* bug#30519: 26.0.91; Emacs hangs with flyspell overlay @ 2018-02-18 22:24 Nick Helm 2018-02-19 16:32 ` Eli Zaretskii 0 siblings, 1 reply; 13+ messages in thread From: Nick Helm @ 2018-02-18 22:24 UTC (permalink / raw) To: 30519 Emacs hangs when point enters a word that is highlighted by flyspell. I cannot reproduce this on an NS build, so I originally thought it was limited to the mac-port. However the maintainer reproduced it with the emacs-26 branch, both on GTK+ and Athena toolkits. Recipe: Emacs -Q (setq mouse-highlight 1) (flyspell-mode 1) "Misspetl wd " ;enter some text that becomes marked by flyspell ;place the mouse pointer over the word "Misspetl" ;hold the left cursor key until point moves back to the word "Misspetl" Emacs hangs with repeating error "Marker does not point anywhere". You can clear the hang by moving the mouse pointer. In GNU Emacs 26.0.91 (build 1, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47)) of 2018-02-19 built on oberon.local Windowing system distributor 'Apple', version 10.3.1561 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Emacs start-up time: 0.2 seconds Package html2text is obsolete! Configured using: 'configure --with-ns --with-gnutls=no' Configured features: JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS LCMS2 Important settings: value of $LANG: en_NZ.UTF-8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: savehist-mode: t global-eldoc-mode: t mouse-wheel-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 visual-line-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow face-remap emacsbug mu4e desktop frameset mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view cal-menu calendar cal-loaddefs thingatpt browse-url comint ansi-color ring mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs sendmail mu4e-mark mu4e-message flow-fill html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-vars message rmc puny seq byte-opt bytecomp byte-compile cconv format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader hl-line cl mu4e-meta time dired-x easymenu dired dired-loaddefs pcase savehist nh-macdict easy-mmode iso-transl edmacro kmacro cl-loaddefs cl-lib gv plain-theme time-date 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 menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer cl-preloaded 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 kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 249898 10278) (symbols 48 24633 1) (miscs 40 65 278) (strings 32 43132 1725) (string-bytes 1 1188676) (vectors 16 39850) (vector-slots 8 764479 9432) (floats 8 87 133) (intervals 56 237 0) (buffers 992 11)) ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-18 22:24 bug#30519: 26.0.91; Emacs hangs with flyspell overlay Nick Helm @ 2018-02-19 16:32 ` Eli Zaretskii 2018-02-19 23:47 ` Dmitry Gutov 0 siblings, 1 reply; 13+ messages in thread From: Eli Zaretskii @ 2018-02-19 16:32 UTC (permalink / raw) To: Nick Helm; +Cc: 30519 > From: Nick Helm <nick@tenpoint.co.nz> > Date: Mon, 19 Feb 2018 11:24:26 +1300 > > Emacs hangs when point enters a word that is highlighted by flyspell. > > I cannot reproduce this on an NS build, so I originally thought it was > limited to the mac-port. However the maintainer reproduced it with the > emacs-26 branch, both on GTK+ and Athena toolkits. > > Recipe: > > Emacs -Q > (setq mouse-highlight 1) > (flyspell-mode 1) > "Misspetl wd " ;enter some text that becomes marked by flyspell > ;place the mouse pointer over the word "Misspetl" > ;hold the left cursor key until point moves back to the word "Misspetl" > > Emacs hangs with repeating error "Marker does not point anywhere". You > can clear the hang by moving the mouse pointer. Not reproducible here. Could this be X-specific (I tried on Windows)? ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-19 16:32 ` Eli Zaretskii @ 2018-02-19 23:47 ` Dmitry Gutov 2018-02-20 0:33 ` Romanos Skiadas 2018-02-20 4:06 ` Eli Zaretskii 0 siblings, 2 replies; 13+ messages in thread From: Dmitry Gutov @ 2018-02-19 23:47 UTC (permalink / raw) To: Eli Zaretskii, Nick Helm; +Cc: 30519 On 2/19/18 6:32 PM, Eli Zaretskii wrote: >> Emacs hangs with repeating error "Marker does not point anywhere". You >> can clear the hang by moving the mouse pointer. > > Not reproducible here. Could this be X-specific (I tried on Windows)? I can reproduce this in emacs-26 (Ubuntu 17.10 with GTK3 here). ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-19 23:47 ` Dmitry Gutov @ 2018-02-20 0:33 ` Romanos Skiadas 2018-02-20 4:06 ` Eli Zaretskii 1 sibling, 0 replies; 13+ messages in thread From: Romanos Skiadas @ 2018-02-20 0:33 UTC (permalink / raw) To: Dmitry Gutov, Eli Zaretskii, Nick Helm; +Cc: 30519 On 19/02/18 23:47, Dmitry Gutov wrote: > On 2/19/18 6:32 PM, Eli Zaretskii wrote: > >>> Emacs hangs with repeating error "Marker does not point anywhere". You >>> can clear the hang by moving the mouse pointer. >> >> Not reproducible here. Could this be X-specific (I tried on Windows)? > > I can reproduce this in emacs-26 (Ubuntu 17.10 with GTK3 here). > > > I can see it as well on emacs 27, Ubuntu 17.10 w/ GTK3. This is where it comes from: Thread 1 "emacs" hit Breakpoint 1, marker_position (marker=0x3463451) at marker.c:641 641 error ("Marker does not point anywhere"); (gdb) l 636 { 637 register struct Lisp_Marker *m = XMARKER (marker); 638 register struct buffer *buf = m->buffer; 639 640 if (!buf) 641 error ("Marker does not point anywhere"); 642 buf is null. It's a bit too late here to dig into this more. ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-19 23:47 ` Dmitry Gutov 2018-02-20 0:33 ` Romanos Skiadas @ 2018-02-20 4:06 ` Eli Zaretskii 2018-02-20 19:12 ` Nick Helm 2018-02-21 3:36 ` Nick Helm 1 sibling, 2 replies; 13+ messages in thread From: Eli Zaretskii @ 2018-02-20 4:06 UTC (permalink / raw) To: Dmitry Gutov; +Cc: nick, 30519 > Cc: 30519@debbugs.gnu.org > From: Dmitry Gutov <dgutov@yandex.ru> > Date: Tue, 20 Feb 2018 01:47:33 +0200 > > On 2/19/18 6:32 PM, Eli Zaretskii wrote: > > >> Emacs hangs with repeating error "Marker does not point anywhere". You > >> can clear the hang by moving the mouse pointer. > > > > Not reproducible here. Could this be X-specific (I tried on Windows)? > > I can reproduce this in emacs-26 (Ubuntu 17.10 with GTK3 here). Thanks. A C- and Lisp-level backtrace from the place which signals that error would be helpful. ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-20 4:06 ` Eli Zaretskii @ 2018-02-20 19:12 ` Nick Helm 2018-02-21 3:36 ` Nick Helm 1 sibling, 0 replies; 13+ messages in thread From: Nick Helm @ 2018-02-20 19:12 UTC (permalink / raw) To: 30519 On Tue, 20 Feb 2018 at 17:06:00 +1300, Eli Zaretskii wrote: > A C- and Lisp-level backtrace from the place which signals that error > would be helpful. Is this any use? (lldb) bt thread #4, name = 'org.gnu.Emacs.lisp-main', stop reason = breakpoint 1.1 frame #0: 0x00000001002fd0b2 Emacs`Fsignal(error_symbol=(i = 21936), data=(i = 4320849923)) at eval.c:1520 frame #1: 0x00000001001b6d2d Emacs`xsignal(error_symbol=(i = 21936), data=(i = 4320849923)) at lisp.h:3861 frame #2: 0x00000001002f545a Emacs`xsignal1(error_symbol=(i = 21936), arg=(i = 4344323516)) at eval.c:1654 frame #3: 0x00000001002fd99e Emacs`verror(m="Marker does not point anywhere", ap=0x000070000b94eca0) at eval.c:1839 frame #4: 0x00000001002f51d9 Emacs`error(m="Marker does not point anywhere") at eval.c:1851 frame #5: 0x000000010022e83e Emacs`marker_position(marker=(i = 4390033497)) at marker.c:641 frame #6: 0x000000010020e668 Emacs`mouse_face_overlay_overlaps(overlay=(i = 4390033257)) at buffer.c:3058 frame #7: 0x000000010009140d Emacs`note_mouse_highlight(f=0x0000000107060f38, x=25, y=5) at xdisp.c:31421 frame #8: 0x000000010041c047 Emacs`mac_frame_up_to_date(f=0x0000000107060f38) at macterm.c:938 frame #9: 0x0000000100068763 Emacs`redisplay_internal at xdisp.c:14546 frame #10: 0x000000010006baa7 Emacs`redisplay_preserve_echo_area(from_where=5) at xdisp.c:14658 frame #11: 0x00000001001c7721 Emacs`read_char(commandflag=1, map=(i = 4320851891), prev_event=(i = 0), used_mouse_menu=0x000070000b95308f, end_time=0x0000000000000000) at keyboard.c:2501 frame #12: 0x00000001001c20f6 Emacs`read_key_sequence(keybuf=0x000070000b953600, bufsize=30, prompt=(i = 0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9238 frame #13: 0x00000001001c080c Emacs`__command_loop_1_block_invoke((null)=<unavailable>) at keyboard.c:1381 frame #14: 0x0000000100479002 Emacs`mac_autorelease_loop(body=0x00000001001c0380) at macappkit.m:997 frame #15: 0x00000001001c0212 Emacs`command_loop_1 at keyboard.c:1308 frame #16: 0x00000001002fcadf Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at keyboard.c:1259), handlers=(i = 21936), hfun=(Emacs`cmd_error at keyboard.c:938)) at eval.c:1332 frame #17: 0x00000001001dd3b1 Emacs`command_loop_2(ignore=(i = 0)) at keyboard.c:1110 frame #18: 0x00000001002fbcc8 Emacs`internal_catch(tag=(i = 52800), func=(Emacs`command_loop_2 at keyboard.c:1106), arg=(i = 0)) at eval.c:1097 frame #19: 0x00000001001bf165 Emacs`command_loop at keyboard.c:1089 frame #20: 0x00000001001bef77 Emacs`recursive_edit_1 at keyboard.c:695 frame #21: 0x00000001001bf3ba Emacs`Frecursive_edit at keyboard.c:766 frame #22: 0x00000001001bc98d Emacs`emacs_main(argc=1, argv=0x00007ffeefbffa90) at emacs.c:1750 frame #23: 0x00000001004c0caa Emacs`mac_start_lisp_main(arg=0x00007ffeefbffa90) at macappkit.m:15093 frame #24: 0x00007fff755216c1 libsystem_pthread.dylib`_pthread_body + 340 frame #25: 0x00007fff7552156d libsystem_pthread.dylib`_pthread_start + 377 frame #26: 0x00007fff75520c5d libsystem_pthread.dylib`thread_start + 13 Process 648 stopped * thread #4, name = 'org.gnu.Emacs.lisp-main', stop reason = breakpoint 1.1 frame #0: 0x00000001002fd0b2 Emacs`Fsignal(error_symbol=(i = 21936), data=(i = 4320849923)) at eval.c:1520 1517 attributes: noreturn) 1518 (Lisp_Object error_symbol, Lisp_Object data) 1519 { -> 1520 signal_or_quit (error_symbol, data, false); 1521 eassume (false); 1522 } 1523 Target 0: (Emacs) stopped. (lldb) ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-20 4:06 ` Eli Zaretskii 2018-02-20 19:12 ` Nick Helm @ 2018-02-21 3:36 ` Nick Helm 2018-02-21 9:45 ` martin rudalics 1 sibling, 1 reply; 13+ messages in thread From: Nick Helm @ 2018-02-21 3:36 UTC (permalink / raw) To: 30519 On Tue, 20 Feb 2018 at 17:06:00 +1300, Eli Zaretskii wrote: > A C- and Lisp-level backtrace from the place which signals that error > would be helpful. Another from Ubuntu 17 / GTK. (gdb) bt #0 0x00000000005e25ec in marker_position (marker=XIL(0x376b469)) at marker.c:641 #1 0x00000000005ced7e in mouse_face_overlay_overlaps (overlay=XIL(0x376b4e1)) at buffer.c:3058 #2 0x00000000004a943f in note_mouse_highlight (f=0x1603c80 <bss_sbrk_buffer+8226176>, x=170, y=120) at xdisp.c:31349 #3 0x0000000000540904 in XTframe_up_to_date (f=0x1603c80 <bss_sbrk_buffer+8226176>) at xterm.c:1291 #4 0x000000000046a893 in redisplay_internal () at xdisp.c:14505 #5 0x000000000046abc8 in redisplay_preserve_echo_area (from_where=5) at xdisp.c:14617 #6 0x000000000059c4fc in read_char (commandflag=1, map=XIL(0x124dcc3), prev_event=XIL(0), used_mouse_menu=0x7fffffffe101, end_time=0x0) at keyboard.c:2478 #7 0x00000000005acd97 in read_key_sequence (keybuf=0x7fffffffe2a0, bufsize=30, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9147 #8 0x0000000000598ed0 in command_loop_1 () at keyboard.c:1368 #9 0x0000000000653d0d in internal_condition_case (bfun=0x598a6e <command_loop_1>, handlers=XIL(0x5250), hfun=0x598093 <cmd_error>) at eval.c:1332 #10 0x0000000000598689 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1110 #11 0x00000000006531c8 in internal_catch (tag=XIL(0xc6f0), func=0x59865c <command_loop_2>, arg=XIL(0)) at eval.c:1097 #12 0x0000000000598627 in command_loop () at keyboard.c:1089 #13 0x0000000000597b7d in recursive_edit_1 () at keyboard.c:695 #14 0x0000000000597d72 in Frecursive_edit () at keyboard.c:766 #15 0x000000000059575e in main (argc=1, argv=0x7fffffffe6f8) at emacs.c:1713 Lisp Backtrace: "redisplay_internal (C function)" (0x0) (gdb) ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-21 3:36 ` Nick Helm @ 2018-02-21 9:45 ` martin rudalics 2018-02-21 17:43 ` Eli Zaretskii 2018-02-22 1:18 ` Nick Helm 0 siblings, 2 replies; 13+ messages in thread From: martin rudalics @ 2018-02-21 9:45 UTC (permalink / raw) To: Nick Helm, 30519 [-- Attachment #1: Type: text/plain, Size: 459 bytes --] > #0 0x00000000005e25ec in marker_position (marker=XIL(0x376b469)) at marker.c:641 > #1 0x00000000005ced7e in mouse_face_overlay_overlaps (overlay=XIL(0x376b4e1)) at buffer.c:3058 > #2 0x00000000004a943f in note_mouse_highlight (f=0x1603c80 <bss_sbrk_buffer+8226176>, x=170, y=120) at xdisp.c:31349 Can you please try the attached patch. I have no idea whether this is the correct interpretation of the semantics of 'mouse-highlight'. Thanks, martin [-- Attachment #2: xdisp.c.dif --] [-- Type: text/plain, Size: 546 bytes --] --- a/src/xdisp.c +++ b/src/xdisp.c @@ -31345,7 +31345,8 @@ A polygon is a cons (poly . [x0 y0 x1 y1 ...]) where each pair in the the one we are currently highlighting, we have to check if we enter the overlapping overlay, and then highlight only that. */ - || (OVERLAYP (hlinfo->mouse_face_overlay) + || (!hlinfo->mouse_face_hidden + && OVERLAYP (hlinfo->mouse_face_overlay) && mouse_face_overlay_overlaps (hlinfo->mouse_face_overlay))) { /* Find the highest priority overlay with a mouse-face. */ ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-21 9:45 ` martin rudalics @ 2018-02-21 17:43 ` Eli Zaretskii 2018-02-22 6:45 ` martin rudalics 2018-02-22 1:18 ` Nick Helm 1 sibling, 1 reply; 13+ messages in thread From: Eli Zaretskii @ 2018-02-21 17:43 UTC (permalink / raw) To: martin rudalics; +Cc: nick, 30519 > Date: Wed, 21 Feb 2018 10:45:55 +0100 > From: martin rudalics <rudalics@gmx.at> > > > #0 0x00000000005e25ec in marker_position (marker=XIL(0x376b469)) at marker.c:641 > > #1 0x00000000005ced7e in mouse_face_overlay_overlaps (overlay=XIL(0x376b4e1)) at buffer.c:3058 > > #2 0x00000000004a943f in note_mouse_highlight (f=0x1603c80 <bss_sbrk_buffer+8226176>, x=170, y=120) at xdisp.c:31349 > > Can you please try the attached patch. I have no idea whether this is > the correct interpretation of the semantics of 'mouse-highlight'. Thanks, I think this is the right fix. ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-21 17:43 ` Eli Zaretskii @ 2018-02-22 6:45 ` martin rudalics 2018-02-22 7:21 ` Eli Zaretskii 0 siblings, 1 reply; 13+ messages in thread From: martin rudalics @ 2018-02-22 6:45 UTC (permalink / raw) To: Eli Zaretskii; +Cc: nick, 30519 > Thanks, I think this is the right fix. For Emacs 26 or master? martin ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-22 6:45 ` martin rudalics @ 2018-02-22 7:21 ` Eli Zaretskii 0 siblings, 0 replies; 13+ messages in thread From: Eli Zaretskii @ 2018-02-22 7:21 UTC (permalink / raw) To: martin rudalics; +Cc: nick, 30519 > Date: Thu, 22 Feb 2018 07:45:59 +0100 > From: martin rudalics <rudalics@gmx.at> > CC: nick@tenpoint.co.nz, 30519@debbugs.gnu.org > > > Thanks, I think this is the right fix. > > For Emacs 26 or master? emacs-26, please. ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-21 9:45 ` martin rudalics 2018-02-21 17:43 ` Eli Zaretskii @ 2018-02-22 1:18 ` Nick Helm 2018-02-22 7:59 ` martin rudalics 1 sibling, 1 reply; 13+ messages in thread From: Nick Helm @ 2018-02-22 1:18 UTC (permalink / raw) To: martin rudalics; +Cc: 30519 On Wed, 21 Feb 2018 at 22:45:55 +1300, martin rudalics wrote: > Can you please try the attached patch. I have no idea whether this is > the correct interpretation of the semantics of 'mouse-highlight'. Yep, that fixes the problem here. Many thanks. ^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#30519: 26.0.91; Emacs hangs with flyspell overlay 2018-02-22 1:18 ` Nick Helm @ 2018-02-22 7:59 ` martin rudalics 0 siblings, 0 replies; 13+ messages in thread From: martin rudalics @ 2018-02-22 7:59 UTC (permalink / raw) To: Nick Helm; +Cc: 30519-done >> Can you please try the attached patch. I have no idea whether this is >> the correct interpretation of the semantics of 'mouse-highlight'. > > Yep, that fixes the problem here. Pushed as commit 83187cd900c799865c967620eef3b7c18f3d168f to Emacs 26. Bug closed. Thanks, martin ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2018-02-22 7:59 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-18 22:24 bug#30519: 26.0.91; Emacs hangs with flyspell overlay Nick Helm 2018-02-19 16:32 ` Eli Zaretskii 2018-02-19 23:47 ` Dmitry Gutov 2018-02-20 0:33 ` Romanos Skiadas 2018-02-20 4:06 ` Eli Zaretskii 2018-02-20 19:12 ` Nick Helm 2018-02-21 3:36 ` Nick Helm 2018-02-21 9:45 ` martin rudalics 2018-02-21 17:43 ` Eli Zaretskii 2018-02-22 6:45 ` martin rudalics 2018-02-22 7:21 ` Eli Zaretskii 2018-02-22 1:18 ` Nick Helm 2018-02-22 7:59 ` martin rudalics
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.