New issue
Advanced search Search tips

Issue 819989 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

crosh shell flickers with some applications (eg. nano) on ASUS C201

Reported by urja...@gmail.com, Mar 8 2018

Issue description

Chrome Version       : 66.0.3350.3
OS Version: 10425.0.0

What steps will reproduce the problem?
1. On a device in dev mode, open the shell in crosh, install nano or ssh to a machine with one
2. open nano with a text file full of text
3. The whole screen will ("hopefully") flicker with the nano text (and maybe the previous terminal state? unsure)

Also note that this seems to be transient, as in usually eventually it stops doing that and actually works.
I've also noticed this with some other terminal applications when they change the whole screen, so it's not nano-specific but for me it most often happens with nano.

I captured a small video clip of the flickering in action, i will attempt to attach it here, but also it's on youtube:
https://www.youtube.com/watch?v=_v1ugI_KsEE (yes the C201 screen is very glossy, atleast for this camera)


UserAgentString: Mozilla/5.0 (X11; CrOS armv7l 10425.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3350.3 Safari/537.36



 
VID_20180308_115614.mp4
5.5 MB View Download
Components: Platform>Apps>Default>Hterm

Comment 2 by vapier@chromium.org, Mar 14 2018

yeah it shouldn't be doing that.  it's hard to tell though: is the whole screen flickering, or only the text in the shell ?

that flashing behavior looks like Ctrl+L is being held down/pressed.  you're not doing that right ?

can you dump your hterm preferences and attach them here ?  go into the Secure Shell options page and select 'backup'.  it will include your ssh connections too though, so you might want to remove those first.

Comment 3 by urja...@gmail.com, Mar 15 2018

Only the text, as in not the tab bar. It's also possible to use the alt-tab switcher or the window picker and the flickering will appear in the thumbnails.

I'm pressing no keys, and pressing Ctrl-L seems to have no effect on this.

The relevant part of my hterm preferences is (i think):
"default":{"background-color":"rgba(0, 0, 0, 1)","environment":{"LANG":"en_US.utf8","NCURSES_NO_UTF8_ACS":"1","TERM":"xterm-256color"},"foreground-color":"rgba(255, 255, 255, 1)","mouse-paste-button":1}

The flickering seems to in a way be scrolling around the text, that is with less and less of the screen area not flickering (or solid text moving upwards) until it "overflows" and starts again, and the cursor seems to be jumping between 0,0 (left upper corner of the screen) and various points around the screen.

I tried to capture these effect a bit better (including the tab bar, the 0,0 cursor, the window picker, the scrolling around the text...), but I think this video would be too big to attach, so only on youtube:
https://www.youtube.com/watch?v=1u4IPLVSZu8

Comment 4 by vapier@chromium.org, Mar 15 2018

your hterm settings look sane

that def looks like the screen is constantly refreshing itself for some reason.  i use nano every day, so i would have noticed a general issue there.

this only happens with nano ?  not other ncurses apps like vim or midnight commander ?

Comment 5 by urja...@gmail.com, Mar 15 2018

Doesnt happen with mc (though the initial draw of it looks similar to one pass of this in a way, as in it happens in chunks).

I did a test of stracing nano while this happens (got it to happen on an empty file too now, it seems to vary when it happens and it's a bit less visible without text) and attached that (it's only a few seconds of the flicker). It's rather noisy but i noticed that it seems to be that nano is repeatedly responding to a SIGWINCH and redrawing itself because of that... (so, why and who is thinking that the terminal size is changing all the time?).
nano-strace.txt
177 KB View Download

Sign in to add a comment