FrogTheFrog / moondeck

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

"Check your firewall and port forwarding rules for rport(s): UDP 47999" #59

Closed poach3r closed 3 weeks ago

poach3r commented 4 weeks ago

Hello, after launching a game on my Steam Deck I receive this error, however I have allowed 47999/udp in firewalld and I'm able to access https://:/apiVersion on both my PC and my Steam Deck.

The following are my sunshine logs:

[2024:08:18:22:42:08]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:08:18:22:42:08]: Info: Trying encoder [nvenc]
[2024:08:18:22:42:08]: Info: Screencasting with X11
[2024:08:18:22:42:08]: Info: SDR color coding [Rec. 601]
[2024:08:18:22:42:08]: Info: Color depth: 8-bit
[2024:08:18:22:42:08]: Info: Color range: [JPEG]
[2024:08:18:22:42:08]: Info: SDR color coding [Rec. 601]
[2024:08:18:22:42:08]: Info: Color depth: 8-bit
[2024:08:18:22:42:08]: Info: Color range: [JPEG]
[2024:08:18:22:42:08]: Info: SDR color coding [Rec. 601]
[2024:08:18:22:42:08]: Info: Color depth: 8-bit
[2024:08:18:22:42:08]: Info: Color range: [JPEG]
[2024:08:18:22:42:08]: Warning: [av1_nvenc @ 0x7f6c0801e8c0] Codec not supported
[2024:08:18:22:42:08]: Error: [av1_nvenc @ 0x7f6c0801e8c0] Provided device doesn't support required NVENC features
[2024:08:18:22:42:08]: Error: Could not open codec [av1_nvenc]: Function not implemented
[2024:08:18:22:42:08]: Info: Screencasting with X11
[2024:08:18:22:42:08]: Info: SDR color coding [Rec. 709]
[2024:08:18:22:42:08]: Info: Color depth: 10-bit
[2024:08:18:22:42:08]: Info: Color range: [JPEG]
[2024:08:18:22:42:08]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2024:08:18:22:42:09]: Info: 
[2024:08:18:22:42:09]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:08:18:22:42:09]: Info: 
[2024:08:18:22:42:09]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:08:18:22:42:09]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:08:18:22:42:09]: Info: Executing: [/home/poacher/Applications/MoonDeckBuddy.AppImage --exec MoonDeckStream] in ["/home/poacher/Applications"]
[2024:08:18:22:42:09]: Info: App exited with code [256]
[2024:08:18:22:42:10]: Info: Process terminated
[2024:08:18:22:42:10]: Info: Setting default sink to: [sink-sunshine-stereo]
[2024:08:18:22:42:10]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2024:08:18:22:42:10]: Info: Setting default sink to: [alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo]
[2024:08:18:22:42:20]: Error: Initial Ping Timeout
[2024:08:18:22:47:41]: Info: Executing: [/home/poacher/Applications/MoonDeckBuddy.AppImage --exec MoonDeckStream] in ["/home/poacher/Applications"]
[2024:08:18:22:47:41]: Info: App exited with code [256]
[2024:08:18:22:47:42]: Info: Process terminated
[2024:08:18:22:47:42]: Info: Setting default sink to: [sink-sunshine-stereo]
[2024:08:18:22:47:42]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2024:08:18:22:47:42]: Info: Setting default sink to: [alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo]
[2024:08:18:22:47:52]: Error: Initial Ping Timeout
FrogTheFrog commented 3 weeks ago

MoonDeckStream exits with code 256, try running the same command as Sunshine and figure out why does it exit.

poach3r commented 3 weeks ago

I'm not sure what you mean by this but I did check the logs for MoonDeckBuddy and MoonDeckStream and MoonDeckBuddy had some errors.

MoonDeckBuddy:

[11:54:08.366] INFO     buddy.utils: Log location: "/tmp/moondeckbuddy.log"
[11:54:08.366] INFO     buddy.main: startup. Version: 1.6.1
[11:54:08.379] INFO     buddy.os: registry.vdf file path set to "/home/poacher/.steam/registry.vdf"
[11:54:08.379] INFO     buddy.os: Steam binary path set to "/usr/bin/steam"
[11:54:08.424] INFO     buddy.server: Server started listening at port 59999
[11:54:08.424] INFO     buddy.main: startup finished.
[11:54:09.384] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:09.384] INFO     buddy.os: Steam exec path: "/usr/bin/steam"
[11:54:09.750] WARNING  qt.qpa.input.events: scroll event from unregistered device 18
[11:54:14.638] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:19.693] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:24.690] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:29.687] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:34.690] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:39.689] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:44.687] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:49.687] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:54.685] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not... Rechecking in 5 seconds.
[11:54:59.686] WARNING  buddy.os: Steam PID from registry.vdf indicates that the Steam process is running, but it's not...
[14:19:38.362] WARNING  qt.qpa.input.events: scroll event from unregistered device 6
[14:19:38.362] WARNING  qt.qpa.input.events: scroll event from unregistered device 7
[14:19:38.362] WARNING  qt.qpa.input.events: scroll event from unregistered device 8
[14:19:38.363] WARNING  qt.qpa.input.events: scroll event from unregistered device 10
[14:19:38.363] WARNING  qt.qpa.input.events: scroll event from unregistered device 11
[14:19:38.363] WARNING  qt.qpa.input.events: scroll event from unregistered device 12
[14:19:38.363] WARNING  qt.qpa.input.events: scroll event from unregistered device 15
[14:19:38.364] WARNING  qt.qpa.input.events: scroll event from unregistered device 16
[14:19:38.364] WARNING  qt.qpa.input.events: scroll event from unregistered device 18
[14:20:06.272] WARNING  qt.qpa.input.events: scroll event from unregistered device 6
[14:20:06.273] WARNING  qt.qpa.input.events: scroll event from unregistered device 11
[14:20:06.274] WARNING  qt.qpa.input.events: scroll event from unregistered device 12
[14:20:06.278] WARNING  qt.qpa.input.events: scroll event from unregistered device 18
[14:20:06.279] WARNING  qt.qpa.input.events: scroll event from unregistered device 16
[14:20:06.280] WARNING  qt.qpa.input.events: scroll event from unregistered device 10
[14:20:06.282] WARNING  qt.qpa.input.events: scroll event from unregistered device 7
[14:20:06.282] WARNING  qt.qpa.input.events: scroll event from unregistered device 8
[14:20:06.305] WARNING  qt.qpa.input.events: scroll event from unregistered device 15

MoonDeckStream:

[14:20:24.443] INFO     buddy.utils: Log location: "/tmp/moondeckstream.log"
[14:20:24.443] INFO     buddy.stream: startup. Version: 1.6.1
[14:20:24.444] INFO     buddy.stream: startup finished.
FrogTheFrog commented 3 weeks ago

Either Sunshine is killing it or MoonDeckStream is dying for whatever reason:

[2024:08:18:22:47:41]: Info: Executing: [/home/poacher/Applications/MoonDeckBuddy.AppImage --exec MoonDeckStream] in ["/home/poacher/Applications"]
[2024:08:18:22:47:41]: Info: App exited with code [256] <------ should not exit immediately with this random error code 
poach3r commented 3 weeks ago

Do you have any ideas on how to troubleshoot it?

FrogTheFrog commented 3 weeks ago

Do you have any ideas on how to troubleshoot it?

Maybe wrap the /home/poacher/Applications/MoonDeckBuddy.AppImage --exec MoonDeckStream command in the shell script and try echoing output from MoonDeckStream into some file this way? I don't really know what could be wrong.

poach3r commented 3 weeks ago

It seems I didn't properly read the installation guide and it was an issue with Steam being installed via Flatpak, sorry for wasting your time.