-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed gpm connect attempt ... for vc /dev/tty0 #3208
Comments
I reproduced easily in (K)VM with gpm_1.20.4-6.1 on Debian "testing". It happens in "screen" and in "tmux" when TERM="screen" (over SSH connection) or TERM="screen.linux" (on framebuffer console) when panels are visible.
As temporary remedy setting TERM="xterm" helps.
Regression was introduced with #3011: I built MC_4.8.12 with reverted commit [9699d5d] and couldn't reproduce the issue any more.
I'm raising priority of this ticket as MC is practically not usable when this problem manifests. |
|
Hi,
Here are the messages from /var/log/syslog
|
Would you please test the attached patch? |
|
Replying to andrew_b:
Unfortunately it did not help... The following is still logged to "/var/log/messages":
at the rate around 2800 times per second (with high CPU usage) -- I tested in "tmux" with TERM="screen". |
Any update please? |
I propose the following simple patch:
Probably it's not a perfect solution, but it works. |
mc 4.8.13, ubuntu server 15.10 amd64 |
Under mc-4.8.10 (distribution version of Slackware-14.1) the problem exists as follows:
I have applied the latest version 4.8.14, the problem still persists.
screen was not involved in my testcases. Only remote sessions via ssh (putty client) using TERM=linux
Using the patch above by boris seems to reduce the problem. Only a single error in syslog when the user starts mc:
I am not knowledgeable enough with the internals of GPM to be able to determine why this happens. |
As of 2016.01.25 this is still a problem on an up-to-date:
And for that matter -- I'm also getting a version date on gpm of '29th of May 2008'. |
Hmmm... I wasn't able to reproduce it in a long while. Another mystery case for our guru and to investigate? |
Still present in my Debian Jessie, mc-4.8.13, gpm-1.20.4, linux terminal (aka Alt+F1). (No problem with xterm, rxvt and alike.)
Now I compiled mc-4.8.17 from source, and it works without problem. |
It still reproduces on Debian Stretch. Connected to the Stretch mechine via SSH, launched tmux, split it horizontally and launched mc in it. Noticed huge input lag when navigating using arrow keys. Later I have noticed high CPU usage, because grep (via logcheck) started to collect log entries. /var/log/syslog contains around half a million of lines like this:
|
On a side note, gpm should be reworked to emit xterm-compatible mouse sequences, and this would no longer would be a problem then. See telmich/gpm#29 . |
How to reproduce the bug:
At this situation, keyboard response will be sluggish and mc will consume |
Here I'm submitting a patch for this bug |
Branch: 3208_gpm_connect_attempt
Please test. |
|
|
Important
This issue was migrated from Trac:
onlyjob
(@onlyjob)As reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743566
Sometimes when running on virtual terminal, under screen(1), MC is super slow,
consuming 50% of CPU, and spewing literally hundreds of messages like
this to syslog:
I couldn't reproduce it but reporter claims it's been OK with MC_4.8.3
so something could get broken in MC_4.8.11 or earlier.
The following ticket seems related: #3011.
Note
Original attachments:
andrew_b
(@aborodin) onSep 11, 2014 at 10:31 UTC
mikulas
(mikulas@….com) onFeb 27, 2019 at 20:16 UTC
The text was updated successfully, but these errors were encountered: