FrogTheFrog / moondeck

A plugin that makes it easier to manage your gamestream sessions from the SteamDeck.
GNU General Public License v3.0
99 stars 3 forks source link

Can't open any games #12

Closed th3impal3r closed 1 year ago

th3impal3r commented 1 year ago

When I click the moon icon it just opens up my Desktop then eventually crashes. I have moonlight configured and it works through steam but I can't seem to get any game to work through moondeck. It does open my desktop then just dies after 10 seconds

FrogTheFrog commented 1 year ago

Heyo, please post the log /tmp/moondeck-runner.log from steam deck after the launch fails.

Clago commented 1 year ago

Heyo, please post the log /tmp/moondeck-runner.log from steam deck after the launch fails.

2023-01-11 21:17:46,239 INFO Resetting runner result
2023-01-11 21:17:46,239 INFO Getting app id
2023-01-11 21:17:46,239 INFO Getting current host settings
2023-01-11 21:17:46,251 INFO Monitors: [Monitor(x=0, y=0, width=1280, height=800, width_mm=100, height_mm=150, name='XWAYLAND0', is_primary=False)]
2023-01-11 21:17:46,251 INFO Will try to apply 1280x800 resolution on host.
2023-01-11 21:17:46,251 INFO Trying to run the game
2023-01-11 21:17:46,253 INFO Establishing connection to Buddy
2023-01-11 21:17:46,292 INFO Checking if GameStream service is running
2023-01-11 21:17:46,303 INFO Waiting for a initial stream conditions to be satisfied
2023-01-11 21:17:46,309 INFO Checking if Moonlight flatpak is installed
2023-01-11 21:17:46,360 INFO Terminating all Moonlight instances if any
2023-01-11 21:17:46,399 INFO Starting Moonlight
2023-01-11 21:17:46,401 INFO Waiting for Steam to be ready to launch games
2023-01-11 21:17:46,406 INFO Notifying Buddy to change resolution
2023-01-11 21:17:46,416 INFO Buddy refused resolution change. Continuing...
2023-01-11 21:17:46,416 INFO Sending request to launch app 1942280
2023-01-11 21:17:47,476 INFO Waiting for app 1942280 to be launched in Steam
2023-01-11 21:17:49,491 INFO Waiting for app or Steam to close
2023-01-11 21:18:09,089 ERROR Moonlight has been closed!
FrogTheFrog commented 1 year ago

Interesting... Can you please shutdown Steam on host and see if that helps? Buddy should be able to start the Steam by itself.

Clago commented 1 year ago

Interesting... Can you please shutdown Steam on host and see if that helps? Buddy should be able to start the Steam by itself.

Failed to find application MoonDeckStream

FrogTheFrog commented 1 year ago

@Clago I assume that you have added MoonDeckStream to Sunshine or GFE, but I've also noticed this issue when migrating from GFE to Sunshine mostly. Could I ask you to do these 2 steps:

  1. Open Moonlight and forget the host (could be multiple entries of the same host) that you're going to using and then re-pair them to the Moonlight client.
  2. If that does not work, go to MoonDeck settings (host selection) and forget every host. Then scan for it again.

Please tell me which option worked for you (if they worked).

th3impal3r commented 1 year ago

(deck@steamdeck ~)$ cat /tmp/moondeck-runner.log 2023-01-11 07:55:34,043 INFO Resetting runner result 2023-01-11 07:55:34,044 INFO Getting app id 2023-01-11 07:55:34,044 INFO Getting current host settings 2023-01-11 07:55:34,055 INFO Monitors: [Monitor(x=0, y=0, width=1280, height=800, width_mm=100, height_mm=150, name='XWAYLAND0', is_primary=False)] 2023-01-11 07:55:34,055 INFO Will try to apply 1280x800 resolution on host. 2023-01-11 07:55:34,055 INFO Trying to run the game 2023-01-11 07:55:34,057 INFO Establishing connection to Buddy 2023-01-11 07:55:34,156 INFO Checking if GameStream service is running 2023-01-11 07:55:34,206 INFO Waiting for a initial stream conditions to be satisfied 2023-01-11 07:55:34,213 INFO Checking if Moonlight flatpak is installed 2023-01-11 07:55:34,272 INFO Terminating all Moonlight instances if any 2023-01-11 07:55:34,331 INFO Starting Moonlight 2023-01-11 07:55:34,332 INFO Waiting for Steam to be ready to launch games 2023-01-11 07:56:04,245 ERROR Stream failed to start! (deck@steamdeck ~)$

th3impal3r commented 1 year ago

i have tried shutting down steam and letting buddy open it up it is the same situation

th3impal3r commented 1 year ago

i also tried removing the host from moonlight and moondeck, and redid the pairing, still no dice. It looks like moonlight works fine but when moondeck kicks off any steam related games its unable to start.

th3impal3r commented 1 year ago

in moonlight, it does show as moondeckstream is running when it bails out. hope this helps, LMK what else i can do!

FrogTheFrog commented 1 year ago

It seems that in your case, the Stream helper fails to start. Next to the Buddy executable there should be 2 logs, can you post the stream.log?

Also what version of sunshine are you running?

th3impal3r commented 1 year ago

[21:04:08.377] WARNING qt.tlsbackend.ossl: Failed to load libssl/libcrypto. [21:04:08.637] INFO buddy.server: Server started listening at port 59999 this is the only log i see.

and the latest sunshine i just installed it yesterday

FrogTheFrog commented 1 year ago

Please do the following:

  1. Manually start MoonDeckStream.exe.
  2. Verify that it is running in task manager and then just kill it.
  3. Kill sunshinesrv process and start the sunshine manually.
  4. Try streaming again.
th3impal3r commented 1 year ago

still same issue, i added debugging logs to buddy

[08:31:39.233] WARNING qt.tlsbackend.ossl: Failed to load libssl/libcrypto. [08:31:39.289] DEBUG buddy.os: Steam exec path: "c:/program files (x86)/steam/steam.exe" [08:31:39.290] DEBUG buddy.os: Running appID change detected (via global key): 0 [08:31:39.294] DEBUG buddy.os: Steam is running! [08:31:39.346] INFO buddy.server: Server started listening at port 59999 [08:31:47.921] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/apiVersion"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"version\":2}" [08:31:47.928] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/pairingState/85874da8-a5b3-4bbd-9764-3aef04636539"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Paired\"}" [08:31:48.144] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/pcState"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Normal\"}" [08:31:48.535] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:48.663] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:49.673] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:50.681] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:51.857] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:52.865] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:53.871] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:54.881] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:55.900] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:56.917] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:57.939] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:58.952] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}" [08:31:59.957] DEBUG buddy.main: Request: QHttpServerRequest((Url: QUrl("https://192.168.1.56:59999/hostInfo"))(Headers: ("Host": "192.168.1.56:59999"), ("authorization": "basic ODU4NzRkYTgtYTViMy00YmJkLTk3NjQtM2FlZjA0NjM2NTM5"), ("Accept": "/"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.1.53"))(BodySize: 0)) | "" Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"NotStreaming\"}"

FrogTheFrog commented 1 year ago

Since you have debug logs enabled, just verify that when you manually start and kill MoonDeckStream.exe, you can see debug log entries about stream starting and ending.

FrogTheFrog commented 1 year ago

That aside, we could take this discussion over to discord. Would be faster, unless you don't want to.

th3impal3r commented 1 year ago

oh that seems great. can you meet say 4:30 pm PST, what is your discord or a channel. Thanks!

FrogTheFrog commented 1 year ago

Yeah, I'm afraid I will be asleep at that time :smile:. It will be like 2:30 am for me...

Please verify what I asked about the debug logs. I have an inkling that it has something to do with Sunshine, but don't want to join to conclusion too soon...

FrogTheFrog commented 1 year ago

Also they have just released the Sunshine 0.17.0, please verify that you got that one instead of 0.16.0, because I has similar issues with 0.16.0 due to a bug.

FrogTheFrog commented 1 year ago

That aside you can find a lot of plugins on the decky's discord page (the link is the readme). That's where you can also find me.

sketchy-vlad commented 1 year ago

alright awesome, i will play around with it later tonight, then if no go ill jump on discord in the morning tomorrow around 8:30 am PST, and will update you. Thanks!

th3impal3r commented 1 year ago

so it doesn't look like moon deck stream is starting by itself, if i start it then kill it, and use moonlight to open a stream, nothing happens. but if i manually open the moondeckstream it works

th3impal3r commented 1 year ago

also another issue is that controller from steam deck does not seem to work when entering game through moondeck

FrogTheFrog commented 1 year ago

so it doesn't look like moon deck stream is starting by itself, if i start it then kill it, and use moonlight to open a stream, nothing happens. but if i manually open the moondeckstream it works

That is Sunshine failing to start MoonDeckStream most likely due to a corrupted system path. Please just verify that you're on 0.17.0.

FrogTheFrog commented 1 year ago

also another issue is that controller from steam deck does not seem to work when entering game through moondeck

Do you have controller support if you open Moonlight as non-Steam shortcut in game mode, launch Desktop and then launch some game?

sketchy-vlad commented 1 year ago

no i dont have controller support, what would be best to use here?

and i am 100% on the .17 i just reinstalled it to test it out

sketchy-vlad commented 1 year ago

but if i use moonlight directly and go to my desktop and click a non steam game it seems to register the controller (most times) :D

FrogTheFrog commented 1 year ago

Ugh, let's change the approach a little here, just to rule out other stuff.

Could you kill the Sunshine service, enable the Nvidia's gamestream and add MoonDeckStream.exe? The re-pair moonlight again and try launching the game via MoonDeck?

sketchy-vlad commented 1 year ago

@FrogTheFrog got it working!! I tried with game stream and it was flawless. I uninstalled sunshine and reinstalled and it now works. maybe some weird configuration on its end.

FrogTheFrog commented 1 year ago

Ah, they did mention that if you are migrating from 0.16 to 0.17, you need to uninstall it completely due to how big the changes are to everything. @th3impal3r maybe this is also the case for you?

FrogTheFrog commented 1 year ago

Closing the issue due to inactivity.

XenHat commented 10 months ago

I'm currently experiencing this issue. I'm leaving for vacation so I may not reply for a little while.

Edit: moondeck.log moondeck-runner.log

Observed behavior:

What I have tried:

FrogTheFrog commented 10 months ago

I'm currently experiencing this issue. I'm leaving for vacation so I may not reply for a little while.

Edit: moondeck.log moondeck-runner.log

Please enable debug logs under Runner Settings in MoonDeck. Then give me the runner log again.

XenHat commented 10 months ago

That was with the debug option enabled. 😕

FrogTheFrog commented 10 months ago

Then I'll need sunshine logs and Buddy (with debug enable) logs (during this launch process).

Also, I'm going to sleep now, so don't expect a reply for a while :/

XenHat commented 10 months ago

Okay, I'll prepare the logs when I can and post them here in a new reply.

XenHat commented 10 months ago

sunshine.log moondeckbuddy.log moondeck-runner-after-steam-restart.log

FrogTheFrog commented 10 months ago

sunshine.log moondeckbuddy.log moondeck-runner-after-steam-restart.log

I dunno what to say... The Sunshine just does not even try to start the app MoonDeckStream. Can you do manually?

Also please give me the moondeck-runner-moonlight.log

XenHat commented 10 months ago

ah hell... I knew i forgot something. i forgot to configure the command to launch moondeckstream. I'm an idiot!

Problem solved after adding the command to the preset. Oops! 😨