unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41187: 28.0.50; Flipped text
@ 2020-05-11 12:00 Wasim Abbas
  2020-05-11 15:23 ` Eli Zaretskii
  2020-08-06 20:46 ` Alan Third
  0 siblings, 2 replies; 17+ messages in thread
From: Wasim Abbas @ 2020-05-11 12:00 UTC (permalink / raw)
  To: 41187

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

Hi folks,

I am seeing this issue on emacs head. The text randomly flips vertically. Very hard to reproduce. But if you open a very long C/C++ file like https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h <https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h> and keep moving around the buffer, cut 100ish lines and paste in another location and then move around again. You might hit the issue.

Here is a screenshot of it. I haven’t tried with emacs -Q yet but happy to try if required. 



//Wasim



In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.4.0, NS appkit-1894.40 Version 10.15.4 (Build 19E287))
of 2020-05-06 built on Wasims-iMac-Pro.local
Repository revision: 86fef6ab89ee54c6f78bc2064e55c5439e929827
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.4

Recent messages:
Source file ‘/Users/wasimabbas/.emacs.d/init.el’ newer than byte-compiled file; using older file
Turn on helm-projectile key bindings
[yas] Prepared just-in-time loading of snippets successfully. [2 times]
You appear to be setting environment variables ("PATH") in your .bashrc or .zshrc: those files are only read by interactive shells, so you should instead set environment variables in startup files like .profile, .bash_profile or .zshenv.  Refer to your shell’s man page for more info.  Customize ‘exec-path-from-shell-arguments’ to remove "-i" when done, or disable ‘exec-path-from-shell-check-startup-files’ to disable this message.
Warning: /Users/wasimabbas/.emacs.d/init.el is newer than /Users/wasimabbas/.emacs.d/init.elc
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
'configure --enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs-head/HEAD-86fef6a_1/share/info/emacs
--prefix=/usr/local/Cellar/emacs-head/HEAD-86fef6a_1 --without-x
--without-dbus --with-imagemagick --with-json --with-modules
--with-gnutls --with-rsvg --with-xml2 --with-harfbuzz --with-ns
--disable-ns-self-contained'

Configured features:
JPEG TIFF GIF PNG RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2
ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  which-key-mode: t
  save-place-mode: t
  global-hl-line-mode: t
  show-paren-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  pyvenv-mode: t
  projectile-mode: t
  helm-mode: t
  async-bytecomp-package-mode: t
  helm-autoresize-mode: t
  helm--remap-mouse-mode: t
  global-display-line-numbers-mode: t
  display-line-numbers-mode: t
  global-evil-mc-mode: t
  evil-mc-mode: t
  global-evil-surround-mode: t
  evil-surround-mode: t
  evil-leader-mode: t
  global-evil-search-highlight-persist: t
  evil-search-highlight-persist: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  shell-dirtrack-mode: t
  evil-mode: t
  evil-local-mode: t
  flycheck-pos-tip-mode: t
  global-flycheck-mode: t
  flycheck-mode: t
  global-company-mode: t
  company-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-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
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/Users/wasimabbas/.emacs.d/elpa/cmake-mode-20190710.1319/cmake-mode hides /usr/local/share/emacs/site-lisp/cmake/cmake-mode

Features:
(shadow sort mail-extr emacsbug message dired dired-loaddefs rfc822 mml
mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs
text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils winner helm-command helm-elisp helm-eval
edebug backtrace helm-info company-keywords company-dabbrev-code
company-dabbrev company-files sanityinc-tomorrow-eighties-theme
color-theme-sanityinc-tomorrow exec-path-from-shell diminish which-key
saveplace string-inflection hl-line paren server init-lsp lsp-sourcekit
lsp lsp-ui lsp-ui-flycheck lsp-ui-doc goto-addr lsp-ui-imenu lsp-ui-peek
lsp-ui-sideline lsp-mode url-util tree-widget spinner network-stream
puny nsm rmc markdown-mode noutline outline lv inline imenu ht
filenotify f ewoc em-glob dash-functional bindat init-cmake
company-cmake init-python yasnippet-snippets cl-extra yasnippet
highlight-indentation flymake-proc flymake warnings company-capf
help-fns radix-tree elpy elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt
esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell
elpy-profile elpy-django s elpy-refactor python tramp-sh tramp
tramp-loaddefs trampver tramp-integration tramp-compat parse-time
iso8601 ls-lisp ido files-x etags fileloop generator xref project
init-c-cpp company-c-headers init-mappings init-neotree neotree
init-magit init-common posframe init-helm cus-edit cus-start cus-load
wid-edit helm-projectile projectile grep compile ibuf-ext ibuffer
ibuffer-loaddefs helm-misc helm-mode helm-files helm-buffers helm-occur
helm-tags helm-locate helm-grep helm-regexp format-spec helm-utils
helm-help helm-types helm-config helm-easymenu async-bytecomp helm
helm-source eieio-compat helm-multi-match helm-lib async init-linum
display-line-numbers init-powerline powerline-evil powerline-evil-themes
powerline powerline-separators color powerline-themes init-evil
evil-nerd-commenter evil-nerd-commenter-operator evil-nerd-commenter-sdk
sgml-mode dom evil-mc evil-mc-command-execute evil-mc-command-record
evil-mc-cursor-make evil-mc-region evil-mc-cursor-state evil-mc-undo
evil-mc-vars evil-mc-known-commands evil-mc-common evil-surround
init-leader evil-leader evil-search-highlight-persist highlight evil
evil-keybindings evil-integration undo-tree diff evil-maps evil-commands
reveal flyspell ispell evil-jumps evil-command-window evil-types
evil-search evil-ex shell pcomplete comint evil-macros evil-repeat
evil-states evil-core advice evil-common windmove thingatpt rect
evil-digraphs evil-vars ring init-flycheck flycheck-pos-tip pos-tip
flycheck ansi-color find-func help-mode rx init-company company edmacro
kmacro pcase init-packages time-date auto-package-update easy-mmode
finder-inf dash info package easymenu browse-url url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib 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 loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads kqueue cocoa ns
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 683783 130310)
(symbols 48 36618 167)
(strings 32 309346 20525)
(string-bytes 1 12842127)
(vectors 16 59214)
(vector-slots 8 703528 109252)
(floats 8 332 494)
(intervals 56 435 608)
(buffers 992 11))

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

[-- Attachment #2.2: flipped-text.png --]
[-- Type: image/png, Size: 438168 bytes --]

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

* bug#41187: 28.0.50; Flipped text
  2020-05-11 12:00 bug#41187: 28.0.50; Flipped text Wasim Abbas
@ 2020-05-11 15:23 ` Eli Zaretskii
  2020-05-12  9:51   ` Wasim Abbas
  2020-05-14 21:05   ` Alan Third
  2020-08-06 20:46 ` Alan Third
  1 sibling, 2 replies; 17+ messages in thread
From: Eli Zaretskii @ 2020-05-11 15:23 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

> From: Wasim Abbas <abbas.wasim@gmail.com>
> Date: Mon, 11 May 2020 13:00:57 +0100
> 
> I am seeing this issue on emacs head. The text randomly flips vertically. Very hard to reproduce. But if you open a very long C/C++ file like https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h <https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h> and keep moving around the buffer, cut 100ish lines and paste in another location and then move around again. You might hit the issue.
> 
> Here is a screenshot of it. I haven’t tried with emacs -Q yet but happy to try if required. 

Wow!  That's got to be some weird problem with you video driver or the
display hardware.  Emacs never does anything like that.





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

* bug#41187: 28.0.50; Flipped text
  2020-05-11 15:23 ` Eli Zaretskii
@ 2020-05-12  9:51   ` Wasim Abbas
  2020-05-14 21:05   ` Alan Third
  1 sibling, 0 replies; 17+ messages in thread
From: Wasim Abbas @ 2020-05-12  9:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 41187



> On 11 May 2020, at 16:23, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Wasim Abbas <abbas.wasim@gmail.com>
>> Date: Mon, 11 May 2020 13:00:57 +0100
>> 
>> I am seeing this issue on emacs head. The text randomly flips vertically. Very hard to reproduce. But if you open a very long C/C++ file like https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h <https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h> and keep moving around the buffer, cut 100ish lines and paste in another location and then move around again. You might hit the issue.
>> 
>> Here is a screenshot of it. I haven’t tried with emacs -Q yet but happy to try if required. 
> 
> Wow!  That's got to be some weird problem with you video driver or the
> display hardware.  Emacs never does anything like that.

It could be. It's definitely isolated to emacs 28 and only to main emacs buffers. If you see the minibuffer and mode line it looks correct in the screenshot. Also if I do m-x the helm buffer appearing also gets flipped.
I was wondering if this is some option that is sent to core graphics while rendering the buffer that flips it? Any ideas how to debug this? Happy to give it a go.






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

* bug#41187: 28.0.50; Flipped text
  2020-05-11 15:23 ` Eli Zaretskii
  2020-05-12  9:51   ` Wasim Abbas
@ 2020-05-14 21:05   ` Alan Third
  1 sibling, 0 replies; 17+ messages in thread
From: Alan Third @ 2020-05-14 21:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Wasim Abbas, 41187

On Mon, May 11, 2020 at 06:23:24PM +0300, Eli Zaretskii wrote:
> > From: Wasim Abbas <abbas.wasim@gmail.com>
> > Date: Mon, 11 May 2020 13:00:57 +0100
> > 
> > I am seeing this issue on emacs head. The text randomly flips vertically. Very hard to reproduce. But if you open a very long C/C++ file like https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h <https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h> and keep moving around the buffer, cut 100ish lines and paste in another location and then move around again. You might hit the issue.
> > 
> > Here is a screenshot of it. I haven’t tried with emacs -Q yet but happy to try if required. 
> 
> Wow!  That's got to be some weird problem with you video driver or the
> display hardware.  Emacs never does anything like that.

It's almost definitely related to the fact that the NS port now draws
to an offscreen buffer on macOS 10.14 and above. Unfortunately the macOS
GUI toolkit has a reversed y axis as compared to what the Emacs code
expects. This means there are a number of places where we have to
invert the offscreen buffer, but I can't imagine a situation where
we're failing to invert it that wouldn't show up in normal usage.

There must be some specific situation that's catching it out.
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
  2020-05-11 12:00 bug#41187: 28.0.50; Flipped text Wasim Abbas
  2020-05-11 15:23 ` Eli Zaretskii
@ 2020-08-06 20:46 ` Alan Third
       [not found]   ` <E3A0A1BA-7959-4E1C-8DD7-3F70E0AC9C0E@gmail.com>
  1 sibling, 1 reply; 17+ messages in thread
From: Alan Third @ 2020-08-06 20:46 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

On Mon, May 11, 2020 at 01:00:57PM +0100, Wasim Abbas wrote:
> I am seeing this issue on emacs head. The text randomly flips
> vertically. Very hard to reproduce. But if you open a very long
> C/C++ file like
> https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h
> <https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h>
> and keep moving around the buffer, cut 100ish lines and paste in
> another location and then move around again. You might hit the
> issue.

I'm short on ideas with this, but can you tell whether the text that
displays upside down is text that was already on screen (and therefore
has probably been copied), or is newly drawn?
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
       [not found]   ` <E3A0A1BA-7959-4E1C-8DD7-3F70E0AC9C0E@gmail.com>
@ 2020-08-09 13:33     ` Alan Third
  2020-08-10 11:40       ` Wasim Abbas
  0 siblings, 1 reply; 17+ messages in thread
From: Alan Third @ 2020-08-09 13:33 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

On Sun, Aug 09, 2020 at 10:50:23AM +0100, Wasim Abbas wrote:
> Yes this is the text from the file I have opened.
> 
> I just did a quick test again today and I can reliably reproduce it.
> This time however it's not just flipped but corrupt frame buffer as
> it seems?
> 
> Here is what I have tried. Open up a longish C++ header file. Scroll
> with mouse a few times. Nothing happened. Split the window
> vertically and the scrolled a few more time rapidly. The corruption
> started in that window only. Visited another buffer in that window
> “messages” buffer you can see the flipped text there as well.
> 
> Visit the first window (is content was displayed correct so far, I
> think because its not refreshed yet) and move cursor up and down 1
> line at a time only that line is displayed wrong but also some other
> corruptions in random places.

It sounds suspiciously like we're flipping the bitmap and not
unflipping it, but I can't see how that happens.

Are you able to reproduce it with emacs -Q?
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
  2020-08-09 13:33     ` Alan Third
@ 2020-08-10 11:40       ` Wasim Abbas
  2020-08-10 19:11         ` Alan Third
  0 siblings, 1 reply; 17+ messages in thread
From: Wasim Abbas @ 2020-08-10 11:40 UTC (permalink / raw)
  To: Alan Third; +Cc: 41187

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

No I can’t reproduce it with `emacs -Q`. I did mention when I started the issue "I haven’t tried with emacs -Q yet but happy to try if required.” But never did try this.

I thought since drawing buffers and rendering is such a core thing to emacs I wasn’t sure it will be anything else (like a package) but looks like it could be? Would you now think it's something to do with any package?

Is the standard disable each package one by one and see if it can be narrowed down to a single package the way to go forward now?

//Wasim

> On 9 Aug 2020, at 14:33, Alan Third <alan@idiocy.org> wrote:
> 
> On Sun, Aug 09, 2020 at 10:50:23AM +0100, Wasim Abbas wrote:
>> Yes this is the text from the file I have opened.
>> 
>> I just did a quick test again today and I can reliably reproduce it.
>> This time however it's not just flipped but corrupt frame buffer as
>> it seems?
>> 
>> Here is what I have tried. Open up a longish C++ header file. Scroll
>> with mouse a few times. Nothing happened. Split the window
>> vertically and the scrolled a few more time rapidly. The corruption
>> started in that window only. Visited another buffer in that window
>> “messages” buffer you can see the flipped text there as well.
>> 
>> Visit the first window (is content was displayed correct so far, I
>> think because its not refreshed yet) and move cursor up and down 1
>> line at a time only that line is displayed wrong but also some other
>> corruptions in random places.
> 
> It sounds suspiciously like we're flipping the bitmap and not
> unflipping it, but I can't see how that happens.
> 
> Are you able to reproduce it with emacs -Q?
> -- 
> Alan Third


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

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

* bug#41187: 28.0.50; Flipped text
  2020-08-10 11:40       ` Wasim Abbas
@ 2020-08-10 19:11         ` Alan Third
       [not found]           ` <3E909253-AB23-4E8E-9B81-D92937EC3BB4@gmail.com>
  0 siblings, 1 reply; 17+ messages in thread
From: Alan Third @ 2020-08-10 19:11 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

On Mon, Aug 10, 2020 at 12:40:31PM +0100, Wasim Abbas wrote:
> I thought since drawing buffers and rendering is such a core thing
> to emacs I wasn’t sure it will be anything else (like a package) but
> looks like it could be? Would you now think it's something to do
> with any package?

It's unlikely to be a package directly causing it, but it may be doing
something which causes a bug in Emacs itself to show.

> Is the standard disable each package one by one and see if it can be
> narrowed down to a single package the way to go forward now?

The usual way would be a binary search type strategy. Comment out half
your config, then see if you still have the problem, if not try the
other half. Then you half what remains, and repeat until you've found
the cause.

The problem is that it may be a combination of things that are causing
it, but at least it may give us a chance to get a minimal recipe to
replicate the bug.
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
       [not found]           ` <3E909253-AB23-4E8E-9B81-D92937EC3BB4@gmail.com>
@ 2020-08-17 14:17             ` Wasim Abbas
  2020-12-20 10:50               ` Alan Third
  0 siblings, 1 reply; 17+ messages in thread
From: Wasim Abbas @ 2020-08-17 14:17 UTC (permalink / raw)
  To: Alan Third; +Cc: 41187

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

Update:

Just managed to reproduce it with `emacs -Q` I just had to scroll for almost 10 minutes for it to kick in. So ignore my init.el red herring.

//Wasim

> On 17 Aug 2020, at 15:10, Wasim Abbas <abbas.wasim@gmail.com> wrote:
> 
> So I spend some more time on this today. Its painful to keep scrolling forever but I think I have found a pattern that works reliably.
> 
> Open emacs with a specific header file from command line. /usr/local/Cellar/emacs-head/HEAD-86fef6a_1/Emacs.app/Contents/MacOS/Emacs /personal/roar_engine/core/rhi/rorrhi_types.hpp
> M-x split-window-horizontally and start scrolling between the two windows interchangeably.
> 
> I did a binary search through my packages but it was inconclusive. It appeared with single package, but different single packages at different times. So I started commenting out my whole init.el file.
> 
> (setq user-full-name "Wasim Abbas")
> (setq user-mail-address "abbas.wasim@gmail.com <mailto:abbas.wasim@gmail.com>")
> 
> ;; load my sexp from elisp dir
> (add-to-list 'load-path (expand-file-name "elisp" user-emacs-directory))
> ;; add custom theme folder to load themes from ~/.emacs.d/themes
> (add-to-list 'custom-theme-load-path (expand-file-name "themes" user-emacs-directory))
> 
> This is the only snippet that I can reproduce it with. This doesn’t make much sense. I am not using any themes later on. The whole init.el is empty after these lines. I have reproduced it with this a few times.
> <Screenshot 2020-08-17 at 15.03.55.png>
> Although I have still not managed to reproduce it with `-Q` option yet.
> 
> Also at one point I got the following segfault.
> 
> <Screenshot 2020-08-17 at 15.03.05.png>
> 
> 
> //Wasim
> 
>> On 10 Aug 2020, at 20:11, Alan Third <alan@idiocy.org <mailto:alan@idiocy.org>> wrote:
>> 
>> On Mon, Aug 10, 2020 at 12:40:31PM +0100, Wasim Abbas wrote:
>>> I thought since drawing buffers and rendering is such a core thing
>>> to emacs I wasn’t sure it will be anything else (like a package) but
>>> looks like it could be? Would you now think it's something to do
>>> with any package?
>> 
>> It's unlikely to be a package directly causing it, but it may be doing
>> something which causes a bug in Emacs itself to show.
>> 
>>> Is the standard disable each package one by one and see if it can be
>>> narrowed down to a single package the way to go forward now?
>> 
>> The usual way would be a binary search type strategy. Comment out half
>> your config, then see if you still have the problem, if not try the
>> other half. Then you half what remains, and repeat until you've found
>> the cause.
>> 
>> The problem is that it may be a combination of things that are causing
>> it, but at least it may give us a chance to get a minimal recipe to
>> replicate the bug.
>> -- 
>> Alan Third
> 


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

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

* bug#41187: 28.0.50; Flipped text
  2020-08-17 14:17             ` Wasim Abbas
@ 2020-12-20 10:50               ` Alan Third
  2021-01-02 22:46                 ` Alan Third
  2021-01-06 14:30                 ` Wasim Abbas
  0 siblings, 2 replies; 17+ messages in thread
From: Alan Third @ 2020-12-20 10:50 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

On Mon, Aug 17, 2020 at 03:17:32PM +0100, Wasim Abbas wrote:
> Update:
> 
> Just managed to reproduce it with `emacs -Q` I just had to scroll
> for almost 10 minutes for it to kick in. So ignore my init.el red
> herring.

Hi Wasim, sorry for the long wait.

I've been trying to make some improvements to the performance of the
Emacs NS port, and I think they may help with this problem. Of course,
I'm not 100% sure the new code works anywhere except my PC yet, but if
you could give it a go that would be helpful.

I've pushed to a branch on the Emacs repository called
scratch/ns/performance. Please give it a go and see if it

1. works at all.

2. fixes your issue.

Thanks!
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
  2020-12-20 10:50               ` Alan Third
@ 2021-01-02 22:46                 ` Alan Third
  2021-01-06 14:30                 ` Wasim Abbas
  1 sibling, 0 replies; 17+ messages in thread
From: Alan Third @ 2021-01-02 22:46 UTC (permalink / raw)
  To: Wasim Abbas, 41187-done

On Sun, Dec 20, 2020 at 10:50:48AM +0000, Alan Third wrote:
> On Mon, Aug 17, 2020 at 03:17:32PM +0100, Wasim Abbas wrote:
> > Update:
> > 
> > Just managed to reproduce it with `emacs -Q` I just had to scroll
> > for almost 10 minutes for it to kick in. So ignore my init.el red
> > herring.
> 
> Hi Wasim, sorry for the long wait.
> 
> I've been trying to make some improvements to the performance of the
> Emacs NS port, and I think they may help with this problem. Of course,
> I'm not 100% sure the new code works anywhere except my PC yet, but if
> you could give it a go that would be helpful.
> 
> I've pushed to a branch on the Emacs repository called
> scratch/ns/performance. Please give it a go and see if it
> 
> 1. works at all.
> 
> 2. fixes your issue.

I've pushed this fix to the master branch and although I've only seen
the problem Wasim reported once, I expect this to have fixed it.

Wasim, if you're still seeing this problem, please reply to this email
and we'll reopen the bug report.

Thanks!
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
  2020-12-20 10:50               ` Alan Third
  2021-01-02 22:46                 ` Alan Third
@ 2021-01-06 14:30                 ` Wasim Abbas
  2021-01-06 18:33                   ` Alan Third
  1 sibling, 1 reply; 17+ messages in thread
From: Wasim Abbas @ 2021-01-06 14:30 UTC (permalink / raw)
  To: Alan Third; +Cc: 41187

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

Hi Alan,

Apologies for late reply, been away for a month.

Thanks for looking into this. I see your other email in which you mentioned you have closed the issue so just curious if the branch "scratch/ns/performance” still exists or its gone. I can’t find it `git://git.sv.gnu.org/emacs.git <git://git.sv.gnu.org/emacs.git%60>` <git://git.sv.gnu.org/emacs.git%60> or `https://git.savannah.gnu.org/git/emacs.gi` <https://git.savannah.gnu.org/git/emacs.gi%60> am I looking in the right place? There is also `https://github.com/emacs-mirror/emacs` <https://github.com/emacs-mirror/emacs%60> but it doesn’t have any `scratch/ns`.

Also did a quick search if this branch was merged in but failed to find anything relevant.

//Wasim


> On 20 Dec 2020, at 10:50, Alan Third <alan@idiocy.org> wrote:
> 
> On Mon, Aug 17, 2020 at 03:17:32PM +0100, Wasim Abbas wrote:
>> Update:
>> 
>> Just managed to reproduce it with `emacs -Q` I just had to scroll
>> for almost 10 minutes for it to kick in. So ignore my init.el red
>> herring.
> 
> Hi Wasim, sorry for the long wait.
> 
> I've been trying to make some improvements to the performance of the
> Emacs NS port, and I think they may help with this problem. Of course,
> I'm not 100% sure the new code works anywhere except my PC yet, but if
> you could give it a go that would be helpful.
> 
> I've pushed to a branch on the Emacs repository called
> scratch/ns/performance. Please give it a go and see if it
> 
> 1. works at all.
> 
> 2. fixes your issue.
> 
> Thanks!
> -- 
> Alan Third


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

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

* bug#41187: 28.0.50; Flipped text
  2021-01-06 14:30                 ` Wasim Abbas
@ 2021-01-06 18:33                   ` Alan Third
  2021-01-06 23:03                     ` Wasim Abbas
  0 siblings, 1 reply; 17+ messages in thread
From: Alan Third @ 2021-01-06 18:33 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

On Wed, Jan 06, 2021 at 02:30:41PM +0000, Wasim Abbas wrote:
> Hi Alan,
> 
> Apologies for late reply, been away for a month.
> 
> Thanks for looking into this. I see your other email in which you mentioned you have closed the issue so just curious if the branch "scratch/ns/performance” still exists or its gone. I can’t find it `git://git.sv.gnu.org/emacs.git <git://git.sv.gnu.org/emacs.git%60>` <git://git.sv.gnu.org/emacs.git%60> or `https://git.savannah.gnu.org/git/emacs.gi` <https://git.savannah.gnu.org/git/emacs.gi%60> am I looking in the right place? There is also `https://github.com/emacs-mirror/emacs` <https://github.com/emacs-mirror/emacs%60> but it doesn’t have any `scratch/ns`.
> 
> Also did a quick search if this branch was merged in but failed to find anything relevant.

It was merged into master, but I squashed the commits so they likely
wouldn't look the same.

So if you could try the master branch and let me know if you still see
the problem, that would be great, thanks.
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
  2021-01-06 18:33                   ` Alan Third
@ 2021-01-06 23:03                     ` Wasim Abbas
  2021-01-06 23:22                       ` Alan Third
  0 siblings, 1 reply; 17+ messages in thread
From: Wasim Abbas @ 2021-01-06 23:03 UTC (permalink / raw)
  To: Alan Third; +Cc: 41187

I am more than happy to try and test it out. Could you just confirm the repo to use. Thanks a lot. 

//Wasim 

Sent from my iPhone

> On 6 Jan 2021, at 18:33, Alan Third <alan@idiocy.org> wrote:
> 
> On Wed, Jan 06, 2021 at 02:30:41PM +0000, Wasim Abbas wrote:
>> Hi Alan,
>> 
>> Apologies for late reply, been away for a month.
>> 
>> Thanks for looking into this. I see your other email in which you mentioned you have closed the issue so just curious if the branch "scratch/ns/performance” still exists or its gone. I can’t find it `git://git.sv.gnu.org/emacs.git <git://git.sv.gnu.org/emacs.git%60>` <git://git.sv.gnu.org/emacs.git%60> or `https://git.savannah.gnu.org/git/emacs.gi` <https://git.savannah.gnu.org/git/emacs.gi%60> am I looking in the right place? There is also `https://github.com/emacs-mirror/emacs` <https://github.com/emacs-mirror/emacs%60> but it doesn’t have any `scratch/ns`.
>> 
>> Also did a quick search if this branch was merged in but failed to find anything relevant.
> 
> It was merged into master, but I squashed the commits so they likely
> wouldn't look the same.
> 
> So if you could try the master branch and let me know if you still see
> the problem, that would be great, thanks.
> -- 
> Alan Third





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

* bug#41187: 28.0.50; Flipped text
  2021-01-06 23:03                     ` Wasim Abbas
@ 2021-01-06 23:22                       ` Alan Third
  2021-01-07 10:47                         ` Wasim Abbas
  0 siblings, 1 reply; 17+ messages in thread
From: Alan Third @ 2021-01-06 23:22 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

On Wed, Jan 06, 2021 at 11:03:17PM +0000, Wasim Abbas wrote:
> I am more than happy to try and test it out. Could you just confirm the repo to use. Thanks a lot. 

git://git.sv.gnu.org/emacs.git
-- 
Alan Third





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

* bug#41187: 28.0.50; Flipped text
  2021-01-06 23:22                       ` Alan Third
@ 2021-01-07 10:47                         ` Wasim Abbas
  2021-01-07 19:48                           ` Alan Third
  0 siblings, 1 reply; 17+ messages in thread
From: Wasim Abbas @ 2021-01-07 10:47 UTC (permalink / raw)
  To: Alan Third; +Cc: 41187

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

Hi Alan,

TL;DR. I have tried master now and I can’t reproduce the issue anymore. Thanks a lot.

Details:

Built and run using
$ ./autogen.sh
$ ./configure
$ make  # this builds GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H114)) of 2021-01-07
Ran using
$ ./src/emacs

Scrolled in different windows/frames for a quite a while but I can’t reproduce it anymore. I think we can safely assume its fixed.
I did see a different artefact, when you scroll too fast sometimes the screen looks like its not cleared from the previous text while the new text is printed onto it. But it doesn’t last for long only a fraction of a second. Probably unrelated and normal behaviour?

Thanks a lot again for your time.

//Wasim

> On 6 Jan 2021, at 23:22, Alan Third <alan@idiocy.org> wrote:
> 
> On Wed, Jan 06, 2021 at 11:03:17PM +0000, Wasim Abbas wrote:
>> I am more than happy to try and test it out. Could you just confirm the repo to use. Thanks a lot. 
> 
> git://git.sv.gnu.org/emacs.git
> -- 
> Alan Third


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

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

* bug#41187: 28.0.50; Flipped text
  2021-01-07 10:47                         ` Wasim Abbas
@ 2021-01-07 19:48                           ` Alan Third
  0 siblings, 0 replies; 17+ messages in thread
From: Alan Third @ 2021-01-07 19:48 UTC (permalink / raw)
  To: Wasim Abbas; +Cc: 41187

On Thu, Jan 07, 2021 at 10:47:45AM +0000, Wasim Abbas wrote:
> Hi Alan,
> 
> TL;DR. I have tried master now and I can’t reproduce the issue anymore. Thanks a lot.
> 
> Details:
> 
> Built and run using
> $ ./autogen.sh
> $ ./configure
> $ make  # this builds GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H114)) of 2021-01-07
> Ran using
> $ ./src/emacs
> 
> Scrolled in different windows/frames for a quite a while but I can’t
> reproduce it anymore. I think we can safely assume its fixed. I did
> see a different artefact, when you scroll too fast sometimes the
> screen looks like its not cleared from the previous text while the
> new text is printed onto it. But it doesn’t last for long only a
> fraction of a second. Probably unrelated and normal behaviour?

Good to know it's fixed. Thanks.

As for the other problem, it shouldn't do that, but I'm not sure how
that would be happening. If it's a problem please open a new bug report.

-- 
Alan Third





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

end of thread, other threads:[~2021-01-07 19:48 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 12:00 bug#41187: 28.0.50; Flipped text Wasim Abbas
2020-05-11 15:23 ` Eli Zaretskii
2020-05-12  9:51   ` Wasim Abbas
2020-05-14 21:05   ` Alan Third
2020-08-06 20:46 ` Alan Third
     [not found]   ` <E3A0A1BA-7959-4E1C-8DD7-3F70E0AC9C0E@gmail.com>
2020-08-09 13:33     ` Alan Third
2020-08-10 11:40       ` Wasim Abbas
2020-08-10 19:11         ` Alan Third
     [not found]           ` <3E909253-AB23-4E8E-9B81-D92937EC3BB4@gmail.com>
2020-08-17 14:17             ` Wasim Abbas
2020-12-20 10:50               ` Alan Third
2021-01-02 22:46                 ` Alan Third
2021-01-06 14:30                 ` Wasim Abbas
2021-01-06 18:33                   ` Alan Third
2021-01-06 23:03                     ` Wasim Abbas
2021-01-06 23:22                       ` Alan Third
2021-01-07 10:47                         ` Wasim Abbas
2021-01-07 19:48                           ` Alan Third

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