colinmarc / magic-mirror

A magical game streaming and remote desktop tool for Linux
79 stars 0 forks source link

Steam takes >10s to start up, triggering compositor timeout #16

Closed mtheilm closed 1 month ago

mtheilm commented 4 months ago

Description

magic mirror no longer launches steam at all, throwing the following errors. Running with most recent main commit (869995731ae2c67dd66a87861103480e4b16a079). Bug report attached.

Note that running vkcube-wayland does successfully launch and run.

Client Error

% ./target/release/mmclient "<IP>:9555" steam-gamepad --codec h265 --resolution 1080
2024-05-12T00:59:55.805651Z  WARN mm_client::conn: skipping TLS verification for private server address
2024-05-12T00:59:55.966256Z  INFO mmclient: launching a new session for for app "steam-gamepad"
2024-05-12T00:59:55.966377Z  INFO mmclient: launching session for app "steam-gamepad"
Error: connection timed out

Server Error

$ ./target/release/mmserver --bind "<IP>:9555" -i ../steam-gamepad.toml --bug-report
2024-05-11T20:15:19.071060Z  WARN mmserver: generating bug report files in: "/tmp/magic-mirror-638c03fc-c6b3-4fb4-a51f-a4c6a0c33493"
2024-05-11T20:15:19.120970Z  INFO mmserver::vulkan: selected gpu: "Quadro P1000" (0)
2024-05-11T20:15:19.144242Z  INFO mmserver::vulkan: hardware encoding support: (h264: true, h265: true, av1: false)
2024-05-11T20:15:19.145122Z  INFO mmserver: listening on 100.124.198.118:9555
2024-05-11T20:15:26.883864Z  INFO mmserver::session: launching session session_id=798683 application="steam-gamepad"
2024-05-11T20:15:36.930567Z ERROR mmserver::server::handlers: failed to launch session: timed out waiting for client

Bug Report

bugreport.tar.gz

colinmarc commented 4 months ago

Can you check if you have a steam process orphaned somewhere? ps -ef | grep steam or so?

colinmarc commented 4 months ago

The "client" in this case is steam - this is from the perspective of the wayland compositor. Steam is just hanging there for 10 seconds without doing anything, for some reason. Steam is the worst.

If you look at htop while this is happening, how does CPU look?

mtheilm commented 4 months ago

Steam doesn't appear to be orphaned, and top shows steam running until it times out (is killed?) on the magic mirror side and then disappears. Nothing abnormal re: CPU (xwayland spins up at 4% and mmserver stays down at 1%). FWIW rebooting the server and retrying yields the same. And bumping the ACCEPT timeout to 60s, shockingly, does not fix the issue :)

colinmarc commented 4 months ago

Are there any other steam logs in ~/.local/share/Steam/ or so?

I think the next debugging step would be to attach a monitor to that bad boy and start steam up. :/

colinmarc commented 1 month ago

After some debugging, this appears to be this (bonkers) issue: https://github.com/ValveSoftware/steam-for-linux/issues/10879

Since this is on steam's side and a mitigation inside magic mirror isn't really possible, going to close this.