Closed philhzss closed 1 year ago
Heyo. Can you please enable the debug logs for buddy and paste the log here?
As for the gamebar, I have no idea what this is 🤔 . Maybe Windows tries to hijack Steam protocol or something?
Sure, here you go! I also just tried to delete all hosts on Moonlight (Steam Deck), on MoonDeck (Deck), and deleted the pairing between Sunshine and my Deck. Sadly it didn't change anything.
Oh, and if it makes a difference. There's quite a big delay. I select the shortcut on the Deck, then it says "Starting MoonDeckStream", then it kicks me out, says "Failed to launch Steam app via Buddy", and then about ~10 secs later, BPM appears, and then another 10 secs later, the game launches. It's like if its too slow for MoonDeck to realise it launched?? But if I recall correctly, on my old PC with GFE it was instant, as soon as I'd hit the shorctut on the Deck, the game would launch on the PC. Here's the log!
[15:28:21.036] INFO buddy.utils: Log location: "C:/ProgramData/Programs/MoonDeckBuddy/bin/moondeckbuddy.log"
[15:28:21.036] INFO buddy.main: startup.
[15:28:21.092] INFO buddy.server: Server started listening at port 59999
[15:28:21.092] INFO buddy.main: startup finished.
[15:28:21.092] DEBUG buddy.shared: getAppName() >> "MoonDeckBuddy"
[15:28:21.092] DEBUG buddy.shared: getLogDir() >> "C:/ProgramData/Programs/MoonDeckBuddy/bin"
[15:28:21.094] DEBUG buddy.shared: getLogName() >> "moondeckbuddy.log"
[15:28:21.094] DEBUG buddy.shared: getLogPath() >> "C:/ProgramData/Programs/MoonDeckBuddy/bin/moondeckbuddy.log"
[15:28:21.094] DEBUG buddy.shared: getSettingsDir() >> "C:/ProgramData/Programs/MoonDeckBuddy/bin"
[15:28:21.094] DEBUG buddy.shared: getSettingsName() >> "settings.json"
[15:28:21.095] DEBUG buddy.shared: getSettingsPath() >> "C:/ProgramData/Programs/MoonDeckBuddy/bin/settings.json"
[15:28:21.095] DEBUG buddy.shared: getAutoStartDir() >> "C:/Users/phili/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
[15:28:21.095] DEBUG buddy.shared: getAutoStartPath() >> "C:/Users/phili/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/MoonDeckBuddy.lnk"
[15:28:21.095] DEBUG buddy.shared: getAutoStartExec() >> "C:/ProgramData/Programs/MoonDeckBuddy/bin/MoonDeckBuddy.exe"
[15:28:21.095] DEBUG buddy.os: Steam exec path: "p:/program files (x86)/steam/steam.exe"
[15:28:21.095] DEBUG buddy.os: Steam is running!
[15:28:21.095] DEBUG buddy.os: Handling Steam start.
[15:28:44.208] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/apiVersion"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"version\":3}"
[15:28:44.230] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pairingState/b74d7954-a315-4b13-9bd4-5ddc976000ca"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Paired\"}"
[15:28:44.244] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pcState"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Normal\"}"
[15:28:48.252] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/apiVersion"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"version\":3}"
[15:28:48.260] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pairingState/b74d7954-a315-4b13-9bd4-5ddc976000ca"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Paired\"}"
[15:28:48.269] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pcState"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Normal\"}"
[15:28:49.299] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/apiVersion"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"version\":3}"
[15:28:49.303] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pairingState/b74d7954-a315-4b13-9bd4-5ddc976000ca"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Paired\"}"
[15:28:49.310] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pcState"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.1"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Normal\"}"
[15:28:54.670] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/apiVersion"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"version\":3}"
[15:28:54.692] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pairingState/b74d7954-a315-4b13-9bd4-5ddc976000ca"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Paired\"}"
[15:28:54.734] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/pcState"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"state\":\"Normal\"}"
[15:28:54.800] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/hostInfo"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"Streaming\"}"
[15:28:54.821] DEBUG buddy.os: Trying to change resolution.
[15:28:54.969] DEBUG buddy.os: Changed resolution for "\\\\.\\DISPLAY1"
[15:28:54.969] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY2"
[15:28:54.970] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY3"
[15:28:54.970] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY4"
[15:28:54.970] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY5"
[15:28:54.970] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY6"
[15:28:54.971] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY7"
[15:28:54.971] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY8"
[15:28:54.971] DEBUG buddy.os: Failed to get display settings for "\\\\.\\DISPLAY9"
[15:28:54.971] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/changeResolution"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"), ("Content-Length": "30"), ("Content-Type": "application/json"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 30)) | "{\"width\": 1280, \"height\": 800}"
Response: QHttpServerResponder::StatusCode::Ok | "{\"result\":true}"
[15:28:55.216] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/hostInfo"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 0)) | ""
Response: QHttpServerResponder::StatusCode::Ok | "{\"steamIsRunning\":true,\"steamRunningAppId\":0,\"steamTrackedUpdatingAppId\":null,\"streamState\":\"Streaming\"}"
[15:28:55.227] DEBUG buddy.os: Trying to hide cursor.
[15:29:26.240] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/launchSteamApp"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"), ("Content-Length": "19"), ("Content-Type": "application/json"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 19)) | "{\"app_id\": 1167630}"
Response: QHttpServerResponder::StatusCode::Ok | "{\"result\":true}"
[15:29:27.297] DEBUG buddy.os: Running appID change detected (via global key): 1167630
[15:29:27.297] DEBUG buddy.os: App 1167630 "running" value change detected: true
[15:29:41.853] DEBUG buddy.os: Running appID change detected (via global key): 0
[15:29:41.853] DEBUG buddy.os: App 1167630 "running" value change detected: false
What I see is the lack of logs in here:
[15:29:27.297] DEBUG buddy.os: Running appID change detected (via global key): 1167630
[15:29:27.297] DEBUG buddy.os: App 1167630 "running" value change detected: true
<LOGS MISSING>
[15:29:41.853] DEBUG buddy.os: Running appID change detected (via global key): 0
[15:29:41.853] DEBUG buddy.os: App 1167630 "running" value change detected: false
MoonDeck is supposed to ask every 1 sec whether the game is running or not, but it seems it is not doing it 🤔
Can you grab the MoonDeck logs from Decky? I need the runner log: /tmp/moondeck-runner.log
(or something like that).
Sidenote: I fixed the ms-gamebar thing by reinstalling Xbox Gamebar and just turning it off. I didn't want it so I had uninstalled it, I guess Windows didn't like that.
Here's the log from the Deck;
2023-07-06 12:09:00,948 INFO Resetting runner result
2023-07-06 12:09:00,948 INFO Getting app id
2023-07-06 12:09:00,948 INFO Getting current host settings
2023-07-06 12:09:00,949 INFO Will try to apply 2560x1440 (90000 kbps) resolution on host.
2023-07-06 12:09:00,949 INFO Trying to run the game using the app MoonDeckStream
2023-07-06 12:09:00,950 INFO Establishing connection to Buddy
2023-07-06 12:09:01,005 INFO Checking if GameStream service is running
2023-07-06 12:09:01,027 INFO Waiting for a initial stream conditions to be satisfied
2023-07-06 12:09:01,045 INFO Notifying Buddy to change resolution
2023-07-06 12:09:01,058 INFO Checking if Moonlight flatpak is installed
2023-07-06 12:09:01,319 INFO Terminating all Moonlight instances if any
2023-07-06 12:09:01,372 INFO Starting Moonlight
2023-07-06 12:09:01,374 INFO Waiting for Steam to be ready to launch games
2023-07-06 12:09:01,375 INFO Starting to save Moonlight output.
2023-07-06 12:09:01,387 INFO Sending request to launch app 1167630
2023-07-06 12:09:06,887 ERROR Failed to launch Steam app via Buddy!
But wait a second, something is wrong. I just noticed that my MoonDeckBuddy log was not updating.. thought it was strange. Went to Task Manager, found MoonDeckBuddy and MoonDeckStream, selected "show location", and it seems I have Buddy installed twice in two places?!?
One is in C:\Users\phili\AppData\Local\Programs\MoonDeckBuddy\bin
Another one in C:\ProgramData\Programs\MoonDeckBuddy\bin
Which is strange because even though I did try to reinstall it at some point, I thought I had always used the default location to install. I will delete all instances of Buddy from my PC and try to reinstall in one place only, standby.....
Sadly, same result. The logs are also the same, just reran it and now here are logs generated at the same time, moondeckbuddy.log:
[12:19:07.570] DEBUG buddy.main:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/launchSteamApp"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"), ("Content-Length": "19"), ("Content-Type": "application/json"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 19)) | "{\"app_id\": 1167630}"
Response: QHttpServerResponder::StatusCode::Ok | "{\"result\":true}"
[12:19:08.663] DEBUG buddy.os: Running appID change detected (via global key): 1167630
[12:19:08.663] DEBUG buddy.os: App 1167630 "running" value change detected: true
[12:19:17.729] DEBUG buddy.os: Running appID change detected (via global key): 0
[12:19:17.729] DEBUG buddy.os: App 1167630 "running" value change detected: false
[12:19:23.093] DEBUG buddy.os: Stream has ended.
moondeck-runner.log:
2023-07-06 12:18:31,992 INFO Resetting runner result
2023-07-06 12:18:31,992 INFO Getting app id
2023-07-06 12:18:31,992 INFO Getting current host settings
2023-07-06 12:18:31,992 INFO Will try to apply 2560x1440 (90000 kbps) resolution on host.
2023-07-06 12:18:31,992 INFO Trying to run the game using the app MoonDeckStream
2023-07-06 12:18:31,994 INFO Establishing connection to Buddy
2023-07-06 12:18:32,083 INFO Checking if GameStream service is running
2023-07-06 12:18:32,097 INFO Waiting for a initial stream conditions to be satisfied
2023-07-06 12:18:32,102 INFO Notifying Buddy to change resolution
2023-07-06 12:18:32,112 INFO Checking if Moonlight flatpak is installed
2023-07-06 12:18:32,176 INFO Terminating all Moonlight instances if any
2023-07-06 12:18:32,225 INFO Starting Moonlight
2023-07-06 12:18:32,227 INFO Waiting for Steam to be ready to launch games
2023-07-06 12:18:32,228 INFO Starting to save Moonlight output.
2023-07-06 12:18:39,409 INFO Sending request to launch app 1167630
2023-07-06 12:18:44,928 ERROR Failed to launch Steam app via Buddy!
I also noticed that after the Deck shows the Desktop for one second and closes (with the error Failed to launch Steam app via Buddy), then 10-15 seconds later BPM and the game open, if I quit the game and return to regular Steam, MoonDeckStream.exe is still running in Task Manager, I have to close it myself. Still does not work though, even after manually closing it
Please find this file on decky https://github.com/FrogTheFrog/moondeck/blob/main/defaults/python/lib/logger.py (somewhere in /home/deck/homebrew/*/moondeck) and set the log level from INFO to DEBUG. Try streaming again and then paste the runner log.
2023-07-06 13:25:10,026 DEBUG Using selector: EpollSelector
2023-07-06 13:25:10,026 INFO Resetting runner result
2023-07-06 13:25:10,027 INFO Getting app id
2023-07-06 13:25:10,027 INFO Getting current host settings
2023-07-06 13:25:10,027 INFO Will try to apply 2560x1440 (90000 kbps) resolution on host.
2023-07-06 13:25:10,028 INFO Trying to run the game using the app MoonDeckStream
2023-07-06 13:25:10,029 INFO Establishing connection to Buddy
2023-07-06 13:25:10,184 INFO Checking if GameStream service is running
2023-07-06 13:25:10,295 INFO Waiting for a initial stream conditions to be satisfied
2023-07-06 13:25:10,321 INFO Notifying Buddy to change resolution
2023-07-06 13:25:10,343 INFO Checking if Moonlight flatpak is installed
2023-07-06 13:25:10,396 INFO Terminating all Moonlight instances if any
2023-07-06 13:25:10,438 INFO Starting Moonlight
2023-07-06 13:25:10,440 INFO Waiting for Steam to be ready to launch games
2023-07-06 13:25:10,442 INFO Starting to save Moonlight output.
2023-07-06 13:25:16,993 INFO Sending request to launch app 1167630
2023-07-06 13:25:22,977 DEBUG Timeout while executing request:
2023-07-06 13:25:23,036 ERROR Failed to launch Steam app via Buddy!
There is not much difference. Timeout while executing request:
It does take quite some time before Steam switches to BPM. If I recall correctly, it used to instantly open the game on my other PC when I was using GFE, before the Deck even showed "Loading MoonDeckStream", the game was launching. Perhaps there's something wrong with the PC
What this tells me that MoonDeck does not receive a response from the host, however the host can receive requests.
In quick access menu, does it show that the Buddy is online?
Yes, it shows that both GameStream and Buddy are Online.
I tried reinstalling Buddy on the PC a few times, it didn't help. Perhaps I should try deleting everything and starting from scratch? Uninstalling Moonlight from the Deck, uninstalling MoonDeck, removing Sunshine and MoonDeckBuddy from the PC, etc
I don't think it will help uninstalling Sunshine as it's completely unrelated. I looks like some sort of a network issue to me... The MoonDeck simply does not receive a response that Buddy is sending out:
Request: QHttpServerRequest((Url: QUrl("https://192.168.4.23:59999/launchSteamApp"))(Headers: ("Host": "192.168.4.23:59999"), ("authorization": "basic Yjc0ZDc5NTQtYTMxNS00YjEzLTliZDQtNWRkYzk3NjAwMGNh"), ("Accept": "*/*"), ("Accept-Encoding": "gzip, deflate"), ("User-Agent": "Python/3.10 aiohttp/3.8.3"), ("Content-Length": "19"), ("Content-Type": "application/json"))(RemoteHost: QHostAddress("::ffff:192.168.4.3"))(BodySize: 19)) | "{\"app_id\": 1167630}"
Response: QHttpServerResponder::StatusCode::Ok | "{\"result\":true}"
Try uninstalling Buddy, manually removing whatever is left and go to the firewall settings and remove anything related to Buddy so that it can be re-added.
That didn't work, also tried completely disabling the Windows Firewall temporarily and it also didn't work.
However, I might be on to something. I just tried force closing NVIDIA whatever in the taskbar (the button that allows access to GeForce Experience and NVIDIA control panel, and now I'm getting a different error? Its just saying "Moonlight has been closed", and the game/BPP does not launch anymore.
GFE has been turned off during all this time... I'm curious as to why its doing this now. Ill check Moonlight directly. Standby
I think something is wrong with Sunshine. I can stream my desktop fine, but when I select MoonDeckStream (manually in Moonlight on the Deck), it tries to load and kicks me out. I tried adding a game directly in Sunshine (Teardown), and I saw my desktop for a few secs, then it kicked me out, then the game launched? Similar to the problems I'm having with MoonDeck, but now happening directly in Moonlight on the Deck.
I will keep updating you here, let me know if you have other ideas, but I'm fairly sure there is nothing wrong with MoonDeck, it's something with my setup here. Working on it
GFE stream thingy (shield or something) needs to be disabled if you're using Sunshine as they will fight over the same ports. If you do that and still have issues then please paste the Sunshine logs from the web UI.
(I'm going to sleep now btw)
GFE shield thing (Gamestream / NVIDIA shield) is turned off but I still have GeForce experience installed, perhaps the next step would be to uninstall that? I turned on DEBUG on Sunshine and tried to launch again via MoonDeck shortcut. The log is quite long, there was a lot of "refresh" lines (from Sunshine webui refreshing in my browser) so I tried to clean it up a bit to make it more useful for you. Do you see anything special here?
Hmm, noticed a few references to AMD in there, I don't know Sunshine so perhaps it doesn't mean anything. But my AMD CPU has a built in GPU.. I don't even think that would support sunshine/streaming, but do you think its related to the problem?
Just to clarify what I did here, I completely uninstalled Sunshine and reinstalled from scratch. Gave the machine a different name than before to avoid confusion. Removed old machine from Moonlight on Deck, added new one. Remove Buddy and repaired it after reinstalling. Added MoonDeckStream to the sunshine applications page. Tried to run the game "Teardown" from the Deck using MoonDeck's shortcut. It did as usual; showed my Desktop for 2-3 seconds on the Deck, then closed with the "Failed to launch Steam from Buddy" message, then about 10 seconds later BPM opened on the desktop, and 10 secs after that, Teardown finally opened.
Thank you for time, I know this is taking a lot of it. I'll keep trying tomorrow (going to sleep now) or this weekend and will let you know if I discover anything
The log is long so I tried to collapse it, if you can open it for some reason let me know and I will repaste it.
Just clarify, launching Desktop directly via Moonlight works or do you get kicked out?
Lauching Desktop directly via Moonlight actually works, I do not get kicked out. Launching "MoonDeckStream" directly from Moonlight also "works".. not sure if MoonDeckStream opens, but I mean I see the Desktop and do not get kicked out. Interestingly, the "Steam" shortcut (that comes with Sunshine) doesn't seem to launch Steam nor BPM, I just get shown the Desktop, and do not get kicked out.
Finally, even more interestingly, selecting the shortcut for the game I added to test (Teardown) does the same thing as buddy. It shows the Desktop for about 10 secs, then I get kicked out. Then, another 10-15 secs later, Teardown opens on the PC. It's like if it takes waaaay too long for it to open apps, and it timesout?
This is how I setup the Teardown test shortcut, I think it's ok?
Disable DEBUG logs for sunshine and run the Teardown via Moonlight, then please paste the logs. There should be an error if it's not happy about something.
It just goes for "process terminated"
[2023:07:08:14:12:49]: Info: Registered Sunshine mDNS service
[2023:07:08:14:22:34]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:07:08:14:22:34]: Info: Trying encoder [nvenc]
[2023:07:08:14:22:35]: Info:
Device Description : NVIDIA GeForce RTX 3080 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002208
Device Video Mem : 12100 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 32336 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:07:08:14:22:35]: Info: Desktop resolution [2560x1440]
[2023:07:08:14:22:35]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:07:08:14:22:35]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.149414,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:07:08:14:22:35]: Info: SDR color coding [Rec. 601]
[2023:07:08:14:22:35]: Info: Color range: [JPEG]
[2023:07:08:14:22:35]: Info:
Device Description : NVIDIA GeForce RTX 3080 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002208
Device Video Mem : 12100 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 32336 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:07:08:14:22:35]: Info: Desktop resolution [2560x1440]
[2023:07:08:14:22:35]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:07:08:14:22:35]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.149414,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:07:08:14:22:36]: Info: SDR color coding [Rec. 601]
[2023:07:08:14:22:36]: Info: Color range: [JPEG]
[2023:07:08:14:22:36]: Info:
Device Description : NVIDIA GeForce RTX 3080 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002208
Device Video Mem : 12100 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 32336 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:07:08:14:22:36]: Info: Desktop resolution [2560x1440]
[2023:07:08:14:22:36]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:07:08:14:22:36]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.149414,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:07:08:14:22:36]: Info: SDR color coding [Rec. 709]
[2023:07:08:14:22:36]: Info: Color range: [JPEG]
[2023:07:08:14:22:36]: Info:
[2023:07:08:14:22:36]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:07:08:14:22:36]: Info:
[2023:07:08:14:22:36]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:07:08:14:22:36]: Info: Executing: [P:\program files (x86)\steam\steamapps\common\Teardown\teardown.exe] in ["P:\"]
[2023:07:08:14:22:36]: Info: P:\program files (x86)\steam\steamapps\common\Teardown\teardown.exe running with PID 3172
[2023:07:08:14:22:36]: Info: CLIENT CONNECTED
[2023:07:08:14:22:37]: Info:
Device Description : NVIDIA GeForce RTX 3080 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002208
Device Video Mem : 12100 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 32336 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:07:08:14:22:37]: Info: Desktop resolution [2560x1440]
[2023:07:08:14:22:37]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:07:08:14:22:37]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.149414,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:07:08:14:22:37]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:07:08:14:22:37]: Info: SDR color coding [Rec. 601]
[2023:07:08:14:22:37]: Info: Color range: [MPEG]
[2023:07:08:14:22:52]: Info: Process terminated
I'll try to see how I can get Moonlight logs from the Deck, in case something is there. Just noticed, Moonlight (on Deck) even shows "quitting teardown" right before it disconnects me, and then the PC just launches teardown (once Moonlight is disconnected). It's almost like if I was forcing it to close myself. I do further testing, will keep you posted! Thank you
Okay progress; if I add a random not-game non-steam application to Sunshine (for example Notepad++), everything is fine, it opens instantly, no problem. I don't get kicked out from Moonlight either. I'm thinking slow app launches make Moonlight timeout.
I also noticed that double clicking a Steam game exe (double clicking teardown.exe) takes 10-15 secs before the game opens. However, if I just click "play" on the game's page in my library in Steam, it opens immediately.
It's like if something is wrong with Steam??!
I have fixed the "slow launching shortcuts" by completely disabling my AMD integrated GPU in the BIOS, believe it or not.... Standby for more info!!! https://www.reddit.com/r/Steam/comments/eujhe8/steam_shortcuts_are_slow/
SOLVED!!!!!!!!!!
Everything works now!!!
Sorry for bugging you with this because it had nothing to do with Buddy nor MoonDeck after all. I hope I didn't waste too much of your time. The solution, as weird as it sounds, was to disabled the integrated GPU completely. I thought it didn't matter that it was not "disabled" because I am plugged into my GPU on the PC. But it was causing a strange bug where Steam shortcuts were launching so slow that everything was timing out. Now that it is disabled, they launch quickly.. so everything is alright.
I'm glad you managed to solve it! Will inform Sunshine team about this, maybe they can add it to the wiki :)
Thank you for your support and help!!!!
You may not need to disable the integrated gpu if you set Sunshine to specifically use the AMD one. If you don't set one we (Sunshine) probe all the encoders.
No but I think this is actually a Steam problem, without having Sunshine running, launching Steam shortcuts (from the Desktop, from anywhere except Steam) takes 10-15 secs before the game launches. However launching the game directly through Steam makes it launch instantly. Disabling the integrated GPU fixes this.. I feel like something is wrong with Steam? Sunshine/Moonlight might be just timing out because a 15 sec delay to launch a program is too slow, but that would be Steam's fault anyway right?
Just so you know, I had the same issue
I tried to set the gpu in sunshine as @ReenigneArcher suggested. It didn't fix the issue.
The only fix was to disable the integrated gpu.
So this is only happening when using moondeck and it’s not an issue with moondeck? I had to disable the iGPU but I’d rather not. I’m splitting my PC to be used in multiple instances and having that extra bandwidth with the iGPU is essential.
So this is only happening when using moondeck and it’s not an issue with moondeck? I had to disable the iGPU but I’d rather not. I’m splitting my PC to be used in multiple instances and having that extra bandwidth with the iGPU is essential.
You have 3 options:
What is a PR?
Pull Request - you make changes to the code/docs/whatever and create PR. Then I review it and merge it into the main branch.
Understood. Wish I knew how. I’ll shut up now and just wait for someone else to fix it one day.
Hey FrogTheFrog,
New PC, old one died so trying to re-setup MoonDeck. Decided to finally ditch GFE and going with Sunshine this time. I think I've set up everything right, but I'm getting a strange popup on my PC, when I try to launch a game from the Deck:
No idea if it's related to the Xbox Gamebar or something? I have that all turned off (as far as I know, it's a recent build and fresh Windows install).
The weird thing is, other than that popup, Steam launches, the game launches, and I even get to see the game for a split second on the Deck, before the error "Failed to launch Steam via Buddy" shows up. The game is then running on the host, if I just open the Moonlight app (on the Deck), I can join into the game MoonDeck launched and it works.
Does anything make sense, do you know if I did something wrong in the setup? Here's buddy's log, don't think it will help you much though
Thank you!! This is my first time using Sunshine so I might have missed something. The streaming does seem to work though, its just something weird with the shortcut-launcher