loki-47-6F-64 / sunshine

Host for Moonlight Streaming Client
GNU General Public License v3.0
1.77k stars 152 forks source link

Sunshine crashes when connecting with moonlight. #254

Open MaxandreOgeret opened 3 years ago

MaxandreOgeret commented 3 years ago

I am trying to use sunshine to get a remote desktop from my ubuntu desktop to my ubuntu laptop.

I have installed sunshine with the right deb package and I run moonlight from the last version AppImage.

Sunshine log :

Click to expand ``` ✘ maxandre.ogeret@PC-895  ~  sunshine [2021:10:27:13:43:38]: Info: Found [1] outputs [2021:10:27:13:43:38]: Info: Virtual Desktop: 2560x1440 [2021:10:27:13:43:38]: Info: XrandR: available [2021:10:27:13:43:38]: Info: -- Output -- [2021:10:27:13:43:38]: Info: Resolution: 2560x1440 [2021:10:27:13:43:38]: Info: Offset: 0x0 [2021:10:27:13:43:39]: Error: Environment variable WAYLAND_DISPLAY has not been defined [2021:10:27:13:43:39]: Info: Detecting connected monitors [2021:10:27:13:43:39]: Info: ////////////////////////////////////////////////////////////////// [2021:10:27:13:43:39]: Info: // // [2021:10:27:13:43:39]: Info: // Testing for available encoders, this may generate errors. // [2021:10:27:13:43:39]: Info: // You can safely ignore those errors. // [2021:10:27:13:43:39]: Info: // // [2021:10:27:13:43:39]: Info: ////////////////////////////////////////////////////////////////// [2021:10:27:13:43:39]: Info: Trying encoder [nvenc] [2021:10:27:13:43:39]: Info: Screencasting with NvFBC [2021:10:27:13:43:40]: Info: Color coding [Rec. 601] [2021:10:27:13:43:40]: Info: Color range: [JPEG] [2021:10:27:13:43:40]: Error: Couldn't create cuda stream: cudaErrorUnsupportedPtxVersion:the provided PTX was compiled with an unsupported toolchain. [2021:10:27:13:43:40]: Error: Couldn't destroy session handle: The context is not bound [2021:10:27:13:43:40]: Info: Screencasting with NvFBC [2021:10:27:13:43:41]: Info: Color coding [Rec. 601] [2021:10:27:13:43:41]: Info: Color range: [JPEG] [2021:10:27:13:43:41]: Error: Couldn't create cuda stream: cudaErrorUnsupportedPtxVersion:the provided PTX was compiled with an unsupported toolchain. [2021:10:27:13:43:41]: Error: Couldn't destroy session handle: The context is not bound [2021:10:27:13:43:41]: Info: Screencasting with NvFBC [2021:10:27:13:43:42]: Info: Color coding [Rec. 601] [2021:10:27:13:43:42]: Info: Color range: [JPEG] [2021:10:27:13:43:42]: Error: Couldn't create cuda stream: cudaErrorUnsupportedPtxVersion:the provided PTX was compiled with an unsupported toolchain. [2021:10:27:13:43:42]: Error: Couldn't destroy session handle: The context is not bound [2021:10:27:13:43:42]: Info: Screencasting with NvFBC [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] [2021:10:27:13:43:43]: Error: Couldn't create cuda stream: cudaErrorUnsupportedPtxVersion:the provided PTX was compiled with an unsupported toolchain. [2021:10:27:13:43:43]: Info: Encoder [nvenc] failed [2021:10:27:13:43:43]: Error: Couldn't destroy session handle: The context is not bound [2021:10:27:13:43:43]: Info: Trying encoder [vaapi] [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Error: Could not open codec [h264_vaapi]: Invalid argument [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Error: Could not open codec [h264_vaapi]: Invalid argument [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Error: Could not open codec [hevc_vaapi]: Function not implemented [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Error: Could not open codec [hevc_vaapi]: Function not implemented [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Error: Could not open codec [hevc_vaapi]: Function not implemented [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 601] libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Error: Could not open codec [hevc_vaapi]: Function not implemented [2021:10:27:13:43:43]: Info: Screencasting with KMS [2021:10:27:13:43:43]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Info: Color coding [Rec. 709] libva info: VA-API version 1.7.0 [2021:10:27:13:43:43]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:43]: Info: [2021:10:27:13:43:43]: Info: ////////////////////////////////////////////////////////////// [2021:10:27:13:43:43]: Info: // // [2021:10:27:13:43:43]: Info: // Ignore any errors mentioned above, they are not relevant // [2021:10:27:13:43:43]: Info: // // [2021:10:27:13:43:43]: Info: ////////////////////////////////////////////////////////////// [2021:10:27:13:43:43]: Info: [2021:10:27:13:43:43]: Info: Found encoder vaapi: [h264_vaapi] [2021:10:27:13:43:43]: Info: Configuration UI available at [https://localhost:47990] [2021:10:27:13:43:43]: Info: Adding avahi service Sunshine [2021:10:27:13:43:44]: Info: Avahi service Sunshine successfully established. [2021:10:27:13:43:44]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:44]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:46]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:47]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:49]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:49]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:49]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:49]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:49]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:49]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:51]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:51]: Error: Couldn't discover any UPNP devices [2021:10:27:13:43:54]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:54]: Info: /CN=NVIDIA GameStream Client -- verfied [2021:10:27:13:43:54]: Info: CLIENT CONNECTED [2021:10:27:13:43:55]: Info: Screencasting with KMS [2021:10:27:13:43:55]: Info: Found monitor for DRM screencasting libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [2021:10:27:13:43:55]: Info: Color coding [Rec. 601] libva info: VA-API version 1.7.0 [2021:10:27:13:43:55]: Info: Color range: [MPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [1] 7812 abort (core dumped) sunshine ```

While sunshine hangs, moonlight ouputs the following message :

(...)
Waiting for IDR frame
Control stream received unexpected disconnect event.
(...)
TheElixZammuto commented 3 years ago

Does the same problem appear when setting the software encoder instead of the VAAPI-one?