Skip to content
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

xpra shadow server dies and drives 400% CPU #2905

Closed
totaam opened this issue Oct 16, 2020 · 5 comments
Closed

xpra shadow server dies and drives 400% CPU #2905

totaam opened this issue Oct 16, 2020 · 5 comments
Labels
bug Something isn't working shadow v3.0.x

Comments

@totaam
Copy link
Collaborator

totaam commented Oct 16, 2020

Issue migrated from trac ticket # 2905

component: server | priority: major

2020-10-16 11:28:14: stdedos created the issue


Server v3.0.12-r27620 started with:

"Xpra-Python3-x86_64_4.1-27676\xpra_cmd" shadow ssh://user@ip/0 --ssh="plink -ssh -agent" -d ssh --env=XPRA_SHADOW_REFRESH_DELAY=200 --title="@title@ on @@/@server-display@" --opengl=no --bandwidth-limit=6Mbps --desktop-scaling=0.75 --webcam=no --speaker=off --microphone=off --pulseaudio=no

args=--ssh="plink -ssh -agent" -d ssh --env=XPRA_SHADOW_REFRESH_DELAY=200 --title="@title@ on @@/@server-display@" --opengl=no --bandwidth-limit=6Mbps --desktop-scaling=0.75 --webcam=no --speaker=off --microphone=off --pulseaudio=no
XPRA_CUSTOM_TITLE_BAR=0
XPRA_EXECUTABLE=Xpra-Python3-x86_64_4.1-27676
XPRA_NETWORK_ADAPTER_TYPE=wifi
XPRA_SCROLL_ENCODING=0

2020-10-16 13:25:23,032 parse_ssh_string(plink -ssh -agent)
2020-10-16 13:25:24,148 Xpra GTK3 client version 4.1-27676 64-bit
2020-10-16 13:25:24,153  running on Microsoft Windows 10
2020-10-16 13:25:25,612 GStreamer version 1.18.0 for Python 3.8.6 64-bit
2020-10-16 13:25:26,174 created named pipe 'Xpra\5392'
2020-10-16 13:25:26,514 keyboard layout code 0x409
2020-10-16 13:25:26,514 identified as 'United States - English' : us
2020-10-16 13:25:26,643 executing ssh command: "plink" "-ssh" "-agent" "-l" "sntentos" "-T" "172.16.57.121" "sh -c 'if [ -x $XDG_RUNTIME_DIR/xpra/run-xpra ]; then $XDG_RUNTIME_DIR/xpra/run-xpra _proxy_shadow_start ":0" "--opengl=no" "--title=@title@ on @@/@server-display@" "--bandwidth-limit=6Mbps" "--ssh=plink -ssh -agent" "--desktop-scaling=0.75" "--debug=ssh" "--speaker=off" "--env=XPRA_SHADOW_REFRESH_DELAY=200";elif which "xpra" > /dev/null 2>&1; then xpra _proxy_shadow_start ":0" "--opengl=no" "--title=@title@ on @@/@server-display@" "--bandwidth-limit=6Mbps" "--ssh=plink -ssh -agent" "--desktop-scaling=0.75" "--debug=ssh" "--speaker=off" "--env=XPRA_SHADOW_REFRESH_DELAY=200";elif [ -x /usr/local/bin/xpra ]; then /usr/local/bin/xpra _proxy_shadow_start ":0" "--opengl=no" "--title=@title@ on @@/@server-display@" "--bandwidth-limit=6Mbps" "--ssh=plink -ssh -agent" "--desktop-scaling=0.75" "--debug=ssh" "--speaker=off" "--env=XPRA_SHADOW_REFRESH_DELAY=200";elif [ -x ~/.xpra/run-xpra ]; then ~/.xpra/run-xpra _proxy_shadow_start ":0" "--opengl=no" "--title=@title@ on @@/@server-display@" "--bandwidth-limit=6Mbps" "--ssh=plink -ssh -agent" "--desktop-scaling=0.75" "--debug=ssh" "--speaker=off" "--env=XPRA_SHADOW_REFRESH_DELAY=200";elif [ -x Xpra_cmd.exe ]; then Xpra_cmd.exe _proxy_shadow_start ":0" "--opengl=no" "--title=@title@ on @@/@server-display@" "--bandwidth-limit=6Mbps" "--ssh=plink -ssh -agent" "--desktop-scaling=0.75" "--debug=ssh" "--speaker=off" "--env=XPRA_SHADOW_REFRESH_DELAY=200";else echo "no run-xpra command found"; exit 1; fi'"
2020-10-16 13:25:26,719 Warning: libqrencode not found
2020-10-16 13:25:26,905  keyboard settings: layout=us
2020-10-16 13:25:26,916  desktop size is 4160x1440 with 1 screen:
2020-10-16 13:25:26,918   Default (1100x381 mm - DPI: 96x96) workarea: 4160x1400
2020-10-16 13:25:26,920     Generic PnP Monitor 1600x900 at 0x534 (309x174 mm - DPI: 131x131) workarea: 1600x860 at 0x534
2020-10-16 13:25:26,921     C32JG5x 2560x1440 at 1600x0 (697x392 mm - DPI: 93x93) workarea: 2560x1400 at 1600x0
2020-10-16 13:25:26,921  downscaled to 75%, virtual screen size: 5547x1920
2020-10-16 13:25:26,922   Default (1100x381 mm - DPI: 128x128) workarea: 5547x1867
2020-10-16 13:25:26,923     Generic PnP Monitor 2133x1200 at 0x712 (309x174 mm - DPI: 175x175) workarea: 2133x1147 at 0x712
2020-10-16 13:25:26,924     C32JG5x 3413x1920 at 2133x0 (697x392 mm - DPI: 124x124) workarea: 3413x1867 at 2133x0

And it was connected, and left idle. After some time, I assume it died (lost the client log), and it drove both itself (and a vmware-virtual box (!!)) both to 400% CPU.

Server gave the #2904 when it was asked to give xpra-info.

Find attached "new" xpra-info and the display.log

@totaam
Copy link
Collaborator Author

totaam commented Oct 16, 2020

2020-10-16 11:28:21: stdedos uploaded file redact-xpra-info-server-ABSURD-CPU.log (37.0 KiB)

@totaam
Copy link
Collaborator Author

totaam commented Oct 16, 2020

2020-10-16 11:28:29: stdedos uploaded file redact-xpra-info-server.log (22.4 KiB)

@totaam
Copy link
Collaborator Author

totaam commented Dec 28, 2020

If you can reproduce this, please enable full debug:

xpra control $DISPLAY debug enable all

And post the server log. It must be doing something..

@totaam
Copy link
Collaborator Author

totaam commented Dec 28, 2020

2020-12-28 17:09:41: stdedos commented


Accurately for every start :-p

I guess I can start it (from client) with xpra shadow ssh://1.2.3.4/:0 --debug=all?
Of course, I still need to install the new v3 and test it before anything ...

@totaam
Copy link
Collaborator Author

totaam commented Dec 29, 2020

I guess I can start it (from client) with xpra shadow ssh://1.2.3.4/:0 --debug=all?

Yes.

@totaam totaam added v3.0.x bug Something isn't working shadow labels Jan 22, 2021
@totaam totaam closed this as completed Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shadow v3.0.x
Projects
None yet
Development

No branches or pull requests

1 participant