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
keyboard input lost after switching workspaces - 4.4 regression #3596
Comments
Supporting this theory, I tried (in xfce) "roll up window; un-roll-up" and "minimize window; restore window" and both of those also resulted in keyboard input being lost. |
Disconnecting (via Ctrl-C xpra client) and then re-attaching temporarily restores keyboard input
|
When keyboard input is non-working, I can still interact using the mouse. Copy-paste works in both directions. I can insert text into the xterm window, but can't figure out how to execute commands using the mouse only! |
I'll have to install xfce to try this out. |
I tried switching client and server machines. Connecting from Pop OS running their Cosmic flavoured gnome desktop, I can reproduce the keyboard input lost problem by "hiding" the xterm (select "Hide" in the xterm window's window manager menu) and then restore (by finding the hidden xterm via Super-Tab. "Hiding" and "minimizing" are probably synonyms. So not specific to xfce Curiously, unlike XFCE, switching desktops and then switching back in Pop OS did NOT reproduce the problem. So it's not just about making the window non-visible. |
Today xpra auto-updated to 4.4 on both client and server and this problem returned. For me this is a showstopper. Did no one else see this? It's not xfce-specific. |
Hey, it's not only when switching workspaces. I use Xpra with just starting or running applications directly on a remote Linux server . When I fx. start Signal Desktop (for Linux), it works fine. Then switching to another local app, fx. Firefox and back to Signal, everything but the keyboard works, if I then right click, and then left click with my mouse in Signal, I can get the keyboard to work.. after a second or two. But.... In Discord (for Linux) that part with right clicking and left clicking does not work, so there is no keyboard response at all. First I thought it had something to do with switching away from having app's running which I attached to, to plainly start them when needed, so I tried to switch back to using Signal Desktop when I started it on the remote host, and then attached to it, but it does the exact same thing. I'll see if I can truss the process and see if it catches anything, I already tried to see if I could catch any errors on cmdline.. but no luck so far... ... (after edit) - oh and actually, now I come to think of it... I wonder why - I - in some app's have to do the R+L click with the mouse to get the keyboard back.... don't know if that could ring any bells.... Running on debian, I just downgraded: sudo apt-get install xpra=4.3.4-r0-1 It is related to 4.4 as 4.3.4 works as it should. |
@RyWT so I installed |
@totaam Well I don't use xpra with workspaces, but to launch/attach to app's remotely. I have a headless lxc container with xpra installed and discord and signal (more so I don't have to install the app's on every single machine) I see this on two Debian hosts I use at home and out of town (don't think the dist is important as I use the official xpra repo) |
It can be. Distros, and in particular Debian, do mess up packages or ship broken versions.
Do you have a full installation or one with Perhaps this issue is related to ibus which was made the default input method in 4.4: |
Yeah, i found that some years ago when I started using Xpra and the pre-installed version didn't work as expected, so I switched to the Xpra repository directly.
Yup, no parameters, just an 'apt-get install xpra' - so it should be a full install, and it has been upgraded as well.
I'll look into that as well. But some changes must have been made between 4.3.4 and 4.4 since it stops working. I could - though - try and remove the installation and do a fresh installation of Xpra, to see if something is missing, which doesn't follow along with a normal upgrade. |
It depends. Many container building tools enable
That link is the prime candidate. |
hmm the ... nope, that doesn't work either, that is weird. Xpra installed the same way on both my physical Linux desktop and the LXC containers. I run LXC containers with Linux as an operating system containerized for some years. I've had no problems running through xpra up to 4.3.4. I tried to execute a Firefox instance on a remote physical Linux host, and I see the same there, all installed the same way, so I',m pretty sure that running Linux as LXC containers is not an issue. All hosts are using the same repo for Xpra.
I've added the console output, though it doesn't mean anything, I'll try and catch the logfiles it states in the output... And the server.log: |
FYI: Do I need to run a container to reproduce the bug or can I just run xpra locally? |
I'll look into that, I've had some issues with GUI representation performance over the network primarily over vpn, which lead me to using rgb as encoding and found it better in all cases. For the shared memory, I'm not sure it will solve anything on that part, as the LXC where my app is running, is running on a seperate physical LXC host (I run Linux dists as a container - but it has nothing to do with docker: https://linuxcontainers.org/ )
No, I have two physical machines over a VPN connection where I also reproduced the issue. So i basically ran xpra locally between two hosts - and both of them upgraded from 4.3.4 to 4.4. It's the same way with my Linux OS container.
I haven't tried with Fedora or any other dist (Debian is a personal perference :-) ) - I can try out Fedora on an unused machine I have. Normally I use a plain Openbox implementation to keep everything super fast and simpel - but I'll se what a full blown Fedora with GNome will handle it. |
Hey, a short update status - trying some things out. I've tried out Fedora 36 with a plain Gnome installation and both with wayland and xorg, that works without any issues. The main difference between Fedora 36 and Debian 11 for Xorg, is that Debian is running on X11R7 and Fedora is on X11R5 - Don't know if that has something to do with it (Though I have no Issue with Xpra 4.3.4). At the moment I'm trying a plain installation Debian 11 with Gnome and wayland and xorg, to see if there is something related to the desktop. I'll get back on that one, as it's installing at the moment. Also, I can see that it is only related to the local Xpra installation on the desktop. My remote host (no matter if it is a physical host or an Virtualized Debian in LXC container) it can run Xpra 4.4 - propably because it only uses the X libraries when the app is starting. I also tried removing Xpra on all hosts, and install it fresh following the procedure on xpra.org, and also removing any existing .xpra directories in my homedir... made no differences... I have an update on the Debian Desktop with Gnome in a moment.... ---- Update 1 ---- ---- Update 2 ---- |
No.
Are you saying that the problem is with the client rather than server?
Are you using openbox as window manager on your client?
1 year's worth of improvements: |
Yes, it is as I can see, Client related, and propably a missing package somewhere. Yes my desktop is Openbox, but I'm pretty sure that that is not the issue in itself. My guess is that in Xpra 4.4 there must be something in use, which propably is missing in my installation, but something that somehow hasn't been used in previous versions... I've been trying to debug and hold up against a plain GNome installation to see if I can find out what's missing. Once I'll find out, I'll leave a note - I know that it's nothing that can be solved in code, but in case others might see similar things, it could be a worth while mentioning what ever package to look for. |
If it is a dependency issue, then we can add the required dependency to the packaging files. FWIW: I'm not seeing problems with my Bookworm VM as client, it is running the default Gnome desktop. No problems either when logging into an OpenBox or mate desktop. |
With 4.4-r0-1 with Mate under Lightdm... (details as per #3645) |
My experience is consistent with @fpoto and @RyWT My latest repro: I upgraded my Raspberry Pi bullseye xfce4 to 5.0 and tried connecting to myself, then minimize/restore.
|
The key handling debug output when working and not working looks the same - xpra is clearly noticing keystrokes. Here is the "no effect" snippet when pressing the 'z' key
|
This looks like a focus issue, I could probably very easily fix this bug if I had clear and reproducible instructions, but so far the VMs I have tested on worked just fine. |
My repro command line did include focus debug. If it's a focus related bug, I would expect the mouse to also be inoperative inside the window, but I can successfully copy selection text out of the window while the keyboard doesn't work. Here is the focus debug message snippet:
|
Roll Window Up followed by Roll Window Down (available in xfce4 window menu) is another way to repro. |
Same for Mate under Lightdm |
As I said above, I've tried a bunch of different window managers, including xfce and mate and couldn't reproduce the problem. |
More variations on my Raspberry Pi running 64-bit Raspberry Pi OS: I created a new pristine user without any customizations and re-tried my repro in various ways. In both LXDE and XFCE, switching desktops, iconify/restore, and roll up/roll down can repro the problem - except for roll up/roll down on LXDE. If we could understand the difference between roll up/roll down implementations between LXDE and XFCE, that might be a clue. I suspect my repro will work on any modern (post bullseye) Debian-derived distro running on real hardware. I don't (yet) do containers or VMs. @totaam I expected you to have a lab full of single board computers for experiments like this. |
That would be great, and I used to have more test systems, but the current funding levels don't allow that (time and space), so virtual machines or containers is what I use for testing. |
Hey all - I just tried something out regarding the VM I build with GNome, I scratched it and kickstarted it the same way my physcial hosts are kickstarted, and as I normally do, I also prepared it with Openbox desktop etc... all ansible stuff, and I see the same issue as with me physcial hosts. The issue remains on the client side. The host serving the application run's fine with 4.4. Just want to let you know. I have no docker images, the host serving my X Apps, runs in LXC and is pure headless, but since it's - in my case - related to the client missing something - I'll keep digging into it that part. There must be a library or package I am missing, which isn't being used in 4.3.4 but which 4.4 very much would like to use :-) |
I have created a virtual machine using Virtualbox (Debian with Mate). It exhibits the bug. To reproduce, I just open a terminal and write The box has a root user with password "debian12" and a "debian12" user with the same password which is in sudoers. AFAICT the only thing that depends on my environment is the "isti.cnr.it" string that I was asked during installation. You can download the image from https://fly.isti.cnr.it/tmp/debian12.ova (3 GB) |
I can reproduce this with the last update to Xpra 4.4 in Xubuntu 22.04 (client and server). If it helps, in a window with xfce-terminal, I'm able to get back the keyboard working just by opening some of the top bar menus... |
Start a remote xterm using xpra. key input works. Switch to another (xfce) workspace. Switch back to the workspace containing the xpra xterm. Key input stops working, i.e. keystrokes no longer have any effect.
Both client and server are running
xpra v4.4-r31576 (g2a6c16e5c) beta
Client running Ubuntu 22.04; Server running Pop OS 22.04
Perhaps it's better described as "when the X window is unmapped and then remapped, keyboard input is no longer working"
Here's debug output, showing that focus is working, and xpra is attempting to send keystrokes
The text was updated successfully, but these errors were encountered: