Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xwaylandvideobrige uses 100% CPU since last world upgrade
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 296

PostPosted: Sun Dec 29, 2024 5:44 pm    Post subject: xwaylandvideobrige uses 100% CPU since last world upgrade Reply with quote

Since the last world upgrade, xwaylandvideobridge uses 100% CPU right after I have logged in into KDE. I am note 100% sure, but I am fairly certain that I haven't started any X11 application yet. I see this phenomena on 3 out of 7 PCs. The 4 remaining PCs behave normally. 2 of the affected PCs use the i915 DRM driver, the 2rd affected PC uses the AMDGPU DRM driver.

I have already tried to re-emerge gui-apps/xwaylandvideobridge, kde-plasma/kwin and x11-base/xwayland without luck.

How can I find out, what keeps xwaylandvideobridge busy?

As a temporary work-around I simply kill xwaylandvideobridge manually after I have logged in into KDE. This makes screen sharing for X11 application impossible, but that is still better than draining the battery. However, this is not a fix and not an work-around even not a temporary one for my sister's laptop.
Back to top
View user's profile Send private message
JimRockford74
n00b
n00b


Joined: 26 Nov 2024
Posts: 8

PostPosted: Mon Dec 30, 2024 1:32 pm    Post subject: Reply with quote

If your on systemd, you can run this to check your logs for errors or warnings
Code:
journalctl -xe | grep xwaylandvideobridge


On OpenRC try these
Code:
grep xwaylandvideobridge /var/log/messages

Code:
tail -f /var/log/messages | grep xwaylandvideobridge


You can also try these two commands to check which X11 applications are trying to launch
This one to check your processes
Code:
top -u <username>


This one to check what are running in the background
Code:
ps aux | grep -i x11

_________________
This is Jim Rockford. I'm either working a case or waiting for something to finish. If you're selling patience, I'm interested. $200 a day plus expenses. Leave your message at the tone. *beep*
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 296

PostPosted: Tue Dec 31, 2024 5:31 pm    Post subject: Reply with quote

"journalctl -xe | grep xwaylandvideobridge" returned
Code:
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: Failed to connect with logd.
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: Failed to read server_socket from /usr/local/bin/AppProtection/.client.conf
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: Failed to connect with logd.
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: Error: Failed to read AppProtection service config from config file: [/usr/local/bin/AppProtection/.client.conf]
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: Failed to connect with logd.
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: sendmsg(): connect() returned -1: errno=111 Verbindungsaufbau abgelehnt msg=ILOCK_STATUS
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: Failed to connect with logd.
Dez 31 18:06:40 matthias-laptop citrix-xwaylandvideobridge[1270]: Error: Failed to connect to AppProtection Service from client
... [repeated a dozen times] ...
Dez 31 18:09:17 matthias-laptop systemd[771]: app-org.kde.xwaylandvideobridge@autostart.service: Consumed 2min 21.564s CPU time, 21.2M memory peak.
My mother needs the Citrix Workspace App for remote work from home. I installed Citrix Workspace App from the tarball outside the Portage package manager. The component "AppProtection" is a daemon which tries to pre-load certain system libraries and replace them by patched versions from Citrix to catch certain system calls which Citrix considers "dangerous". As this created a lot of problems, I uninstalled the component AppProtection again. (Suprisingly, Citrix Workspace also works without it.) Citrix AppProtection also tries to install its own system logger. (*gulp*)

So it is correct that server_socket from /usr/local/bin/AppProtection/.client.conf cannot be read and that sendmsg fails, because /usr/local/bin/AppProtection/ does not exist anymore. However, I wonder why it the entry in journald is called "citrix-xwaylandvideobridge" and where that "citrix" part comes from. I already tried to grep for "citrix" in all directories, but haven't found any leftovers.

So I assume it is safe to say that the problem ist not Gentoo-related, but caused by a 3rd party application. Nonetheless I would be grateful, if someone has any tips how to identify the remaining relics and get rid of them.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22901

PostPosted: Tue Dec 31, 2024 6:21 pm    Post subject: Reply with quote

nagmat84 wrote:
My mother needs the Citrix Workspace App for remote work from home. I installed Citrix Workspace App from the tarball outside the Portage package manager.
This was your first mistake. To ease tracking it later, you should have wrapped it in an ebuild that ran the unpack for you, so that you could have Portage record where all the files went.
nagmat84 wrote:
The component "AppProtection" is a daemon which tries to pre-load certain system libraries and replace them by patched versions from Citrix to catch certain system calls which Citrix considers "dangerous".
This is the probably the wrong way to do such a filter. If Citrix needs to ban certain system calls, the seccomp filter seems like a better fit, is harder to escape, and is less likely to confuse unrelated things on the system.
nagmat84 wrote:
So I assume it is safe to say that the problem ist not Gentoo-related, but caused by a 3rd party application. Nonetheless I would be grateful, if someone has any tips how to identify the remaining relics and get rid of them.
How exactly did you install it in the first place? Was it just tar -xf, or did Citrix supply their own install script (probably that you run through a curlpipesh, because why not pick the worst possible way to do it)? Once we know how big a mess it could have made, we can hunt down what it did.
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 296

PostPosted: Tue Dec 31, 2024 6:53 pm    Post subject: Reply with quote

Hu wrote:
nagmat84 wrote:
I installed Citrix Workspace App from the tarball outside the Portage package manager.
This was your first mistake. To ease tracking it later, you should have wrapped it in an ebuild.
Sorry! I have never learned how to write my own ebuilds. Probably, it's time to read the Gentoo development documentation.
Hu wrote:
nagmat84 wrote:
The component "AppProtection" is a daemon which tries to pre-load certain system libraries and replace them by patched versions from Citrix.
This is the probably the wrong way to do such a filter. The seccomp filter seems like a better fit.
Tell that the Citrix engineers. :) One of the things, Citrix wants to prevent is that someone takes a screenshot or screencast of the remote desktop running inside the Citrix application. So it makes sense, that xwaylandvideobridge runs havoc.
Hu wrote:
How exactly did you install it in the first place?
The tarball is available at https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html. After one has unpacked the tarball, there is a shell script which does the install. If one tries to run the script as a non-root user it first starts, but it tells you that it needs root permission later during the installation routine.[/quote]
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22901

PostPosted: Tue Dec 31, 2024 8:45 pm    Post subject: Reply with quote

If they're relying on a root privileged shell script, then they can make quite a mess. I would advise against running it, but it seems a bit late for that. ;)

The page you linked doesn't seem to have working download links. They have non-expandable blocks that, once the incorrect styles are removed, only contain javascript:void(0) anchors, a common mistake by people who shouldn't be doing website development. Perhaps someone with more patience than I will put up with their poor practices and examine this script for you. Sorry. Otherwise, you could examine it yourself, assuming it isn't too ugly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum