moonlight-stream / moonlight-android

GameStream client for Android
GNU General Public License v3.0
3.16k stars 503 forks source link

[Issue]: Connection termination #1361

Open kart972 opened 2 weeks ago

kart972 commented 2 weeks ago

Describe the bug

I'm encounter an bug when I'm trying to connect to my linux machine using Samsung tab s8 through moonlight, I'm only able to connect briefly for 2 seconds. During those a few moments I can interact with computer but after that connection is terminated. Strange this is that I can connect with my pixel phone perfectly fine to this computer, and another strange this is that I can connect to other devices with this tablet but when I'm trying to connect to my machine with tablet it gets terminated. I tried to install other linux distro, also no luck. Also Another strange behavior that I observe is that if i try to connect often, after some attempt I can't ping my device although they are on the save local network

Steps to reproduce

Install latest version of sunshine on Lenovo Legions with linux. Try to connect with Samsung device with latest android version

Affected games

-

Other Moonlight clients

PC

Moonlight adjusted settings

Yes

Moonlight adjusted settings (please complete the following information)

lower stream size

Moonlight default settings

Yes

Gamepad-related connection issue

Yes

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

14

Device model

Samsung tab S8

Server PC OS version

Manjaro

Server PC GeForce Experience version

-

Server PC Nvidia GPU driver version

550.54.14

Server PC antivirus and firewall software

None

Screenshots

No response

Relevant log output

[2024:04:28:10:05:09]: Info: Sunshine version: 0.23.1
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2024:04:28:10:05:09]: Info: Detecting monitors
[2024:04:28:10:05:09]: Info: Detected monitor 0: eDP-1, connected: true
[2024:04:28:10:05:09]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:04:28:10:05:09]: Info: Trying encoder [nvenc]
[2024:04:28:10:05:09]: Info: Screencasting with KMS
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:09]: Info: System tray created
[2024:04:28:10:05:09]: Info: Screencasting with KMS
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:09]: Info: Encoder [nvenc] failed
[2024:04:28:10:05:09]: Info: Trying encoder [vaapi]
[2024:04:28:10:05:09]: Info: Screencasting with KMS
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:09]: Info: Found connector ID [78]
[2024:04:28:10:05:09]: Info: Found cursor plane [65]
[2024:04:28:10:05:09]: Error: Couldn't query entrypoints: the requested VAProfile is not supported
[2024:04:28:10:05:09]: Warning: Monitor  doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:09]: Info: Found connector ID [78]
[2024:04:28:10:05:09]: Info: Found cursor plane [65]
[2024:04:28:10:05:09]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:09]: Info: Color depth: 8-bit
[2024:04:28:10:05:09]: Info: Color range: [JPEG]
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x562619778600] No usable encoding profile found.
[2024:04:28:10:05:09]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x56261977f540] No usable encoding profile found.
[2024:04:28:10:05:09]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2024:04:28:10:05:09]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:09]: Info: Color depth: 8-bit
[2024:04:28:10:05:09]: Info: Color range: [JPEG]
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x56261977f540] No usable encoding profile found.
[2024:04:28:10:05:09]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x562619778600] No usable encoding profile found.
[2024:04:28:10:05:09]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2024:04:28:10:05:09]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:09]: Info: Color depth: 8-bit
[2024:04:28:10:05:09]: Info: Color range: [JPEG]
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x562619778600] No usable encoding profile found.
[2024:04:28:10:05:09]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x56261977f540] No usable encoding profile found.
[2024:04:28:10:05:09]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2024:04:28:10:05:09]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:09]: Info: Color depth: 8-bit
[2024:04:28:10:05:09]: Info: Color range: [JPEG]
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x562619778600] No usable encoding profile found.
[2024:04:28:10:05:09]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
[2024:04:28:10:05:09]: Error: [h264_vaapi @ 0x5626198a2200] No usable encoding profile found.
[2024:04:28:10:05:09]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2024:04:28:10:05:09]: Info: Encoder [vaapi] failed
[2024:04:28:10:05:09]: Info: Trying encoder [software]
[2024:04:28:10:05:09]: Info: Screencasting with KMS
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:09]: Info: Found connector ID [78]
[2024:04:28:10:05:09]: Info: Found cursor plane [65]
[2024:04:28:10:05:09]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:09]: Info: Color depth: 8-bit
[2024:04:28:10:05:09]: Info: Color range: [JPEG]
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] profile High, level 4.2, 4:2:0, 8-bit
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] frame I:1     Avg QP:31.00  size:  1203
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] mb I  I16..4: 99.9%  0.0%  0.0%
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] 8x8 transform intra:0.0%
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] i16 v,h,dc,p: 97%  0%  3%  0%
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 75% 12%  0%  0%  0%  0% 12%
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] i8c dc,h,v,p: 100%  0%  0%  0%
[2024:04:28:10:05:09]: Info: [libx264 @ 0x562619778600] kb/s:577.44
[2024:04:28:10:05:09]: Info: Screencasting with KMS
[2024:04:28:10:05:09]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:09]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:09]: Info: Found connector ID [78]
[2024:04:28:10:05:09]: Info: Found cursor plane [65]
[2024:04:28:10:05:09]: Info: 
[2024:04:28:10:05:09]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:04:28:10:05:09]: Info: 
[2024:04:28:10:05:09]: Info: Found H.264 encoder: libx264 [software]
[2024:04:28:10:05:09]: Info: Configuration UI available at [https://localhost:47990]
[2024:04:28:10:05:09]: Error: Failed to create client: Daemon not running
[2024:04:28:10:05:17]: Warning: Couldn't discover any IPv4 UPNP devices
[2024:04:28:10:05:20]: Info: Opening UI from system tray
[2024:04:28:10:05:20]: Info: Opened url [https://localhost:47990]
[2024:04:28:10:05:21]: Info: Web UI: [127.0.0.1] -- not authorized
[2024:04:28:10:05:44]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:04:28:10:05:44]: Info: Trying encoder [nvenc]
[2024:04:28:10:05:44]: Info: Screencasting with KMS
[2024:04:28:10:05:44]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:44]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:44]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:44]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:44]: Info: Screencasting with KMS
[2024:04:28:10:05:44]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:44]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:44]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:44]: Error: Couldn't find monitor [0]
[2024:04:28:10:05:45]: Info: Encoder [nvenc] failed
[2024:04:28:10:05:45]: Info: Trying encoder [vaapi]
[2024:04:28:10:05:45]: Info: Screencasting with KMS
[2024:04:28:10:05:45]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:45]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:45]: Info: Found connector ID [78]
[2024:04:28:10:05:45]: Info: Found cursor plane [65]
[2024:04:28:10:05:45]: Error: Couldn't query entrypoints: the requested VAProfile is not supported
[2024:04:28:10:05:45]: Warning: Monitor  doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2024:04:28:10:05:45]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:45]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:45]: Info: Found connector ID [78]
[2024:04:28:10:05:45]: Info: Found cursor plane [65]
[2024:04:28:10:05:45]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:45]: Info: Color depth: 8-bit
[2024:04:28:10:05:45]: Info: Color range: [JPEG]
[2024:04:28:10:05:45]: Error: [h264_vaapi @ 0x7f92a859cd00] No usable encoding profile found.
[2024:04:28:10:05:45]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
[2024:04:28:10:05:45]: Error: [h264_vaapi @ 0x7f92a8698340] No usable encoding profile found.
[2024:04:28:10:05:45]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2024:04:28:10:05:45]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:45]: Info: Color depth: 8-bit
[2024:04:28:10:05:45]: Info: Color range: [JPEG]
[2024:04:28:10:05:45]: Error: [h264_vaapi @ 0x7f92a859cd00] No usable encoding profile found.
[2024:04:28:10:05:45]: Info: Retrying with fallback configuration options for [h264_vaapi] after error: Function not implemented
[2024:04:28:10:05:45]: Error: [h264_vaapi @ 0x7f92a8378640] No usable encoding profile found.
[2024:04:28:10:05:45]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2024:04:28:10:05:45]: Info: Encoder [vaapi] failed
[2024:04:28:10:05:45]: Info: Trying encoder [software]
[2024:04:28:10:05:45]: Info: Screencasting with KMS
[2024:04:28:10:05:45]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:45]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:45]: Info: Found connector ID [78]
[2024:04:28:10:05:45]: Info: Found cursor plane [65]
[2024:04:28:10:05:45]: Info: SDR color coding [Rec. 601]
[2024:04:28:10:05:45]: Info: Color depth: 8-bit
[2024:04:28:10:05:45]: Info: Color range: [JPEG]
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] profile High, level 4.2, 4:2:0, 8-bit
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] frame I:1     Avg QP:31.00  size:  1203
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] mb I  I16..4: 99.9%  0.0%  0.0%
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] 8x8 transform intra:0.0%
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] i16 v,h,dc,p: 97%  0%  3%  0%
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 75% 12%  0%  0%  0%  0% 12%
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] i8c dc,h,v,p: 100%  0%  0%  0%
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a8a73b00] kb/s:577.44
[2024:04:28:10:05:45]: Info: Screencasting with KMS
[2024:04:28:10:05:45]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:45]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:45]: Info: Found connector ID [78]
[2024:04:28:10:05:45]: Info: Found cursor plane [65]
[2024:04:28:10:05:45]: Info: 
[2024:04:28:10:05:45]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:04:28:10:05:45]: Info: 
[2024:04:28:10:05:45]: Info: Found H.264 encoder: libx264 [software]
[2024:04:28:10:05:45]: Info: Executing Do Cmd: [xrandr --output HDMI-1 --mode 1920x1080]
[2024:04:28:10:05:45]: Info: Executing [Desktop]
[2024:04:28:10:05:45]: Info: CLIENT CONNECTED
[2024:04:28:10:05:45]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:45]: Info: Screencasting with KMS
[2024:04:28:10:05:45]: Info: /dev/dri/card0 -> amdgpu
[2024:04:28:10:05:45]: Info: Found monitor for DRM screencasting
[2024:04:28:10:05:45]: Info: Found connector ID [78]
[2024:04:28:10:05:45]: Info: Found cursor plane [65]
[2024:04:28:10:05:45]: Info: SDR color coding [Rec. 709]
[2024:04:28:10:05:45]: Info: Color depth: 8-bit
[2024:04:28:10:05:45]: Info: Color range: [MPEG]
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a00021c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024:04:28:10:05:45]: Info: [libx264 @ 0x7f92a00021c0] profile High, level 3.2, 4:2:0, 8-bit
[2024:04:28:10:05:45]: Info: Setting default sink to: [sink-sunshine-stereo]
[2024:04:28:10:05:45]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2024:04:28:10:05:52]: Info: CLIENT DISCONNECTED
[2024:04:28:10:05:52]: Info: Setting default sink to: [alsa_output.pci-0000_05_00.6.analog-stereo]
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] frame I:2     Avg QP:29.89  size: 12536
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] frame P:432   Avg QP: 4.30  size:  2966
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] mb I  I16..4: 85.8% 13.3%  0.8%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] mb P  I16..4:  0.4%  0.0%  0.0%  P16..4: 10.4%  0.0%  0.0%  0.0%  0.0%    skip:89.1%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] 8x8 transform intra:8.0% inter:8.5%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] coded y,uvDC,uvAC intra: 17.8% 6.7% 6.1% inter: 4.1% 1.1% 0.9%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] i16 v,h,dc,p: 67% 29%  3%  0%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 23% 30%  8%  3%  3%  4%  3% 13%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 37% 18%  2%  3%  2%  3%  2%  5%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] i8c dc,h,v,p: 83% 12%  5%  0%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] Weighted P-Frames: Y:0.0% UV:0.0%
[2024:04:28:10:05:52]: Info: [libx264 @ 0x7f92a00021c0] kb/s:1444.80

Additional context

No response