veldenb / plugin.program.moonlight-qt

A launcher and updater for running Moonlight-qt on LibreELEC.
GNU General Public License v3.0
88 stars 12 forks source link

Startup problem on libreelec 10.0, generic x64 #12

Closed beatstick closed 2 years ago

beatstick commented 2 years ago

Hi, this addon seems to have installed correctly, kodi gives no errors. However, trying to start moonlight on libreelec, the OS soft resets and does not start the program.

I checked via ssh, and there is no docker container running anything moonlight related.

veldenb commented 2 years ago

Hi, can you attach your logfile? You can find it here on libreelec: ~/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt.log

beatstick commented 2 years ago

OK, here it is, there does not seem to be much to go on, though:

Platform generic detected...
Custom ALSA audio device: 'hdmi:CARD=NVidia,DEV=0'
--- Starting Moonlight ---
00:00:00 - SDL Info (0): Compiled with SDL 2.0.15
00:00:00 - SDL Info (0): Running with SDL 2.0.15
00:00:00 - Qt Info: No translation available for  "C"
Segmentation fault
veldenb commented 2 years ago

Hard to tell with so little information in the logs, might be crashing due to missing libraries. Have you tried running moonlight-qt AppImage-version using another Linux installation like Debian without LibreElec?

See https://github.com/moonlight-stream/moonlight-qt/releases

veldenb commented 2 years ago

While further investigating the problem might be that Nvidia doesn't support DRM outside of Xorg. You could try comment out the following lines in ~/.kodi/addons/plugin.program.moonlight-qt/resources/bin/bootstrap_moonlight-qt.sh:

# Stop kodi
#systemctl stop kodi

# Start kodi when this script exits
#trap "systemctl start kodi" EXIT

This skips stopping Kodi (and xorg). The plugin will error out with a message but can you check if moonlight starts within Kodi's Xorg-session?

If this starts Moonlight I might be able to detect Xorg and work around the problem.

beatstick commented 2 years ago

Hi, thanks for looking into this.

I've commented out the lines above and started moonlight from kodi's gui.

I am not sure how to show xorg processes, but I did not find any process called moonlight using the top-command.

 1285 root      20   0 2951896 440804  87876 S   6.5   4.4   0:45.11 kodi.bin
   2849 nobody    20   0 1913528  64528  12056 S   1.2   0.6   0:06.53 python3
   1239 root      20   0 1698544  31648  23708 S   0.4   0.3   0:01.47 containerd
   2891 nobody    20   0 4006116 159928  72884 S   0.4   1.6   0:06.86 Radarr
   3584 root      20   0    3652   2428   1892 R   0.4   0.0   0:00.27 top
      1 root      20   0  156472   7548   5740 S   0.0   0.1   0:00.66 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-events_highpri
      8 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq
      9 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_rude_
     10 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_trace
     11 root      20   0       0      0      0 S   0.0   0.0   0:00.02 ksoftirqd/0
     12 root      20   0       0      0      0 I   0.0   0.0   0:00.34 rcu_sched
     13 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/0
     14 root      20   0       0      0      0 I   0.0   0.0   0:00.02 kworker/0:1-cgroup_destroy
     15 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0
     16 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1
     17 root      rt   0       0      0      0 S   0.0   0.0   0:00.10 migration/1
     18 root      20   0       0      0      0 S   0.0   0.0   0:00.02 ksoftirqd/1
     20 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-events_highpri
     21 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/2
     22 root      rt   0       0      0      0 S   0.0   0.0   0:00.10 migration/2
     23 root      20   0       0      0      0 S   0.0   0.0   0:00.04 ksoftirqd/2
     25 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/2:0H-kblockd
     26 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/3
     27 root      rt   0       0      0      0 S   0.0   0.0   0:00.10 migration/3
     28 root      20   0       0      0      0 S   0.0   0.0   0:00.02 ksoftirqd/3
     29 root      20   0       0      0      0 I   0.0   0.0   0:00.01 kworker/3:0-mm_percpu_wq
     30 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/3:0H-events_highpri
     31 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kdevtmpfs
     32 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns
     33 root      20   0       0      0      0 S   0.0   0.0   0:00.00 khungtaskd
     34 root      20   0       0      0      0 S   0.0   0.0   0:00.00 oom_reaper
     35 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 writeback
     36 root      20   0       0      0      0 S   0.0   0.0   0:00.02 kcompactd0
     37 root      39  19       0      0      0 S   0.0   0.0   0:00.00 khugepaged
     39 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/1:1-mm_percpu_wq
     56 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 cryptd
     78 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kblockd
     79 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 blkcg_punt_bio
     80 root      20   0       0      0      0 I   0.0   0.0   0:00.28 kworker/2:1-events_power_efficient
veldenb commented 2 years ago

Could you try the attached version of the plugin and send the log-file? plugin.program.moonlight-qt-main.zip

beatstick commented 2 years ago

cat moonlight-qt.log

Platform generic detected...
Custom ALSA audio device: 'hdmi:CARD=NVidia,DEV=0'
--- Starting Moonlight ---
00:00:00 - SDL Info (0): Compiled with SDL 2.0.15
00:00:00 - SDL Info (0): Running with SDL 2.0.15
00:00:00 - Qt Info: No translation available for  "C"
00:00:00 - Qt Info: No existing credentials found
00:00:00 - Qt Info: Wrote new identity credentials to settings
Segmentation fault
veldenb commented 2 years ago

What hardware do you use? Is it possible to swap the nvidia card for some other gpu?

beatstick commented 2 years ago

The hardware is a Hp-Prodesk i5 4570 cpu and an nvidia gt1030 gpu. The GPU is only half-size, I don't have a replacement for that one. I could try running another linux distro from a usb stick this weekend (when the wife and kids are not home) to see if this is a libreelec specific problem, like you suggested before.

If I install or dual boot another distro, I might be able to run most games natively on this machine. But I thought this moonlight stuff was an interesting idea to try out. I would like to see if the input lag is a hindrance in playing games this way.

veldenb commented 2 years ago

It would be helpful if you could run the AppImage-version, it would be easier to diagnose the problem.

J-o-h-n-s commented 2 years ago

Same problem, also running generic x64. Runing on old macbook pro.

Tried running with commented lines, doesn't help. Goes to connact screen, then goes straitght back where we were in KODI, instead of relaunching it. Will leave logs under, and try with the AppImg on a "normal" distro now.

Platform generic detected... Custom ALSA audio device: 'hdmi:CARD=HDMI,DEV=0' --- Starting Moonlight --- 00:00:00 - SDL Info (0): Compiled with SDL 2.0.21 00:00:00 - SDL Info (0): Running with SDL 2.0.21 00:00:00 - Qt Info: No translation available for "C" 00:00:01 - Qt Warning: qrc:/gui/main.qml:12:1: QML ApplicationWindow: ToolTip must be attached to an Item 00:00:02 - Qt Info: Found "gamecontrollerdb.txt" at "/storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-home/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt" 00:00:02 - SDL Info (0): Loaded 175 new gamepad mappings 00:00:02 - SDL Info (0): V-sync disabled libva info: VA-API version 1.11.0 libva info: Trying to open /usr/lib/dri/r600_drv_video.so libva info: Found init function __vaDriverInit_1_11 libva info: va_openDriver() returns 0 00:00:02 - SDL Info (0): Initialized VAAPI 1.11 00:00:02 - SDL Info (0): Driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1) 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x3231564e -> nv12. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x30313050 -> p010le. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x36313050 -> unknown. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x30323449 -> yuv420p. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x32315659 -> yuv420p. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x56595559 -> unknown. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x32595559 -> yuyv422. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x59565955 -> uyvy422. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x41524742 -> bgra. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x41424752 -> rgba. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x58524742 -> bgr0. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Format 0x58424752 -> rgb0. 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] VAAPI driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1). 00:00:02 - FFmpeg: [AVHWDeviceContext @ 0x7f37e006f2c0] Driver not found in known nonstandard list, using standard behaviour. 00:00:02 - SDL Info (0): VAAPI driver supports exporting DRM PRIME surface handles 00:00:02 - SDL Info (0): Using VAAPI accelerated renderer on x11 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] nal_unit_type: 7(SPS), nal_ref_idc: 3 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] nal_unit_type: 8(PPS), nal_ref_idc: 3 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Format vaapi_vld chosen by get_format(). 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Format vaapi_vld requires hwaccel initialisation. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Considering format 0x3231564e -> nv12. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Picked nv12 (0x3231564e) as best match for yuv420p. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x1. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Direct mapping disabled: deriving image does not work: 1 (operation failed). 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x2. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x3. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x4. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x5. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x6. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x7. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x8. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x9. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0xa. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0xb. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0xc. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0xd. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0xe. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0xf. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x10. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x11. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x12. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x13. 00:00:02 - FFmpeg: [AVHWFramesContext @ 0x7f37e0431300] Created surface 0x14. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Considering format 0x3231564e -> nv12. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Picked nv12 (0x3231564e) as best match for yuv420p. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Decode context initialised: 0x15/0x16. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Reinit context to 1280x720, pix_fmt: vaapi_vld 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Param buffer (type 0, 672 bytes) is 0x17. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Param buffer (type 1, 240 bytes) is 0x18. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 0 param buffer (3128 bytes) is 0x19. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 0 data buffer (75 bytes) is 0x1a. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 1 param buffer (3128 bytes) is 0x1b. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 1 data buffer (80 bytes) is 0x1c. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 2 param buffer (3128 bytes) is 0x1d. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 2 data buffer (85 bytes) is 0x1e. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 3 param buffer (3128 bytes) is 0x1f. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Slice 3 data buffer (97 bytes) is 0x20. 00:00:02 - FFmpeg: [h264 @ 0x7f37e039de40] Decode to surface 0x14. 00:00:02 - SDL Info (0): FFmpeg-based video decoder chosen 00:00:03 - Qt Info: Found "gamecontrollerdb.txt" at "/storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-home/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt" 00:00:03 - SDL Info (0): Loaded 175 new gamepad mappings ioctl (GFEATURE): Input/output error 00:00:08 - Qt Info: Processing new PC at "192.168.10.103:47989" from user with IPv6 address "" 00:00:08 - Qt Info: Executing request: "http://192.168.10.103:47989/serverinfo?uniqueid=0123456789ABCDEF&uuid=af5e4c03ca0a4ae6ad404a319a6eabba" 00:00:08 - Qt Debug: Current Moonlight version: "3.2.0" 00:00:08 - Qt Info: Gamepad mappings are up to date 00:00:08 - Qt Info: Executing request: "https://192.168.10.103:47984/serverinfo?uniqueid=0123456789ABCDEF&uuid=baaf50f79e8d46e3abe355c16651b9a1" 00:00:08 - Qt Info: Discovered mDNS host: "DESKTOP-69K9E28.local." 00:00:08 - Qt Info: Latest supported GFE server: "99.99.99.99" 00:00:08 - Qt Info: "DESKTOP-69K9E28" is now at "192.168.10.103:47989" 00:00:08 - Qt Debug: Found update manifest match for current platform 00:00:08 - Qt Debug: Latest version of Moonlight for this platform is: "3.2.0" 00:00:08 - Qt Debug: Update manifest version equal to current version 00:00:08 - Qt Info: Found "ModeSeven.ttf" at ":/data/ModeSeven.ttf" 00:00:08 - Qt Info: "DESKTOP-69K9E28" is now online at "192.168.10.103:47989" 00:00:08 - Qt Info: Resolved "DESKTOP-69K9E28.local." to QHostAddress("192.168.10.103") 00:00:08 - Qt Info: Resolved "DESKTOP-69K9E28.local." to QHostAddress("fe80::1540:fd8a:6afb:1eba") 00:00:08 - Qt Info: Server GPU: "NVIDIA GeForce GTX 960" 00:00:08 - Qt Info: Server GFE version: "3.25.0.84" 00:00:08 - SDL Info (0): Video bitrate: 10000 kbps 00:00:09 - SDL Info (0): Desired audio buffer: 240 samples (960 bytes) 00:00:09 - SDL Info (0): Obtained audio buffer: 240 samples (960 bytes) 00:00:09 - SDL Info (0): Audio channel count: 2 00:00:09 - SDL Info (0): Audio channel mask: 3 00:00:09 - SDL Info (0): V-sync disabled libva info: VA-API version 1.11.0 libva info: Trying to open /usr/lib/dri/r600_drv_video.so libva info: Found init function vaDriverInit_1_11 libva info: va_openDriver() returns 0 00:00:09 - SDL Info (0): Initialized VAAPI 1.11 00:00:09 - SDL Info (0): Driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1) 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x3231564e -> nv12. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x30313050 -> p010le. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x36313050 -> unknown. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x30323449 -> yuv420p. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x32315659 -> yuv420p. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x56595559 -> unknown. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x32595559 -> yuyv422. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x59565955 -> uyvy422. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x41524742 -> bgra. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x41424752 -> rgba. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x58524742 -> bgr0. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Format 0x58424752 -> rgb0. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] VAAPI driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1). 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0037180] Driver not found in known nonstandard list, using standard behaviour. 00:00:09 - SDL Info (0): VAAPI driver supports exporting DRM PRIME surface handles 00:00:09 - SDL Info (0): Using VAAPI accelerated renderer on x11 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Decoding VPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Decoding SPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Decoding VUI 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Decoding PPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Format vaapi_vld chosen by get_format(). 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Format vaapi_vld requires hwaccel initialisation. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] HEVC profile Main is found. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] No support for codec hevc profile 1. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Failed setup for format vaapi_vld: hwaccel initialisation returned error. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Format vaapi_vld not usable, retrying get_format() without it. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0311300] Error parsing NAL unit #3. 00:00:09 - SDL Warn (0): Test decode failed (avcodec_send_packet): Operation not permitted libva info: VA-API version 1.11.0 libva info: Trying to open /usr/lib/dri/r600_drv_video.so libva info: Found init function vaDriverInit_1_11 libva info: va_openDriver() returns 0 00:00:09 - SDL Info (0): Initialized VAAPI 1.11 00:00:09 - SDL Info (0): Driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1) 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x3231564e -> nv12. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x30313050 -> p010le. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x36313050 -> unknown. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x30323449 -> yuv420p. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x32315659 -> yuv420p. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x56595559 -> unknown. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x32595559 -> yuyv422. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x59565955 -> uyvy422. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x41524742 -> bgra. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x41424752 -> rgba. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x58524742 -> bgr0. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Format 0x58424752 -> rgb0. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] VAAPI driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1). 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e03025c0] Driver not found in known nonstandard list, using standard behaviour. 00:00:09 - SDL Info (0): Using direct rendering with VAEntrypointVideoProc 00:00:09 - SDL Info (0): Using VAAPI accelerated renderer on x11 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Decoding VPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Decoding SPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Decoding VUI 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Decoding PPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Format vaapi_vld chosen by get_format(). 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Format vaapi_vld requires hwaccel initialisation. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] HEVC profile Main is found. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] No support for codec hevc profile 1. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Failed setup for format vaapi_vld: hwaccel initialisation returned error. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Format vaapi_vld not usable, retrying get_format() without it. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0027f40] Error parsing NAL unit #3. 00:00:09 - SDL Warn (0): Test decode failed (avcodec_send_packet): Operation not permitted 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e019bb00] Successfully created a VDPAU device (G3DVL VDPAU Driver Shared Library version 1.0) on X11 display :0.0 00:00:09 - SDL Info (0): Driver: G3DVL VDPAU Driver Shared Library version 1.0 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e038d000] Successfully created a VDPAU device (G3DVL VDPAU Driver Shared Library version 1.0) on X11 display :0.0 00:00:09 - SDL Info (0): Driver: G3DVL VDPAU Driver Shared Library version 1.0 00:00:09 - SDL Info (0): Using VDPAU accelerated renderer 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Decoding VPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Decoding SPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Decoding VUI 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Decoding PPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Format vdpau chosen by get_format(). 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Format vdpau requires hwaccel initialisation. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Failed setup for format vdpau: hwaccel initialisation returned error. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Format vdpau not usable, retrying get_format() without it. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0028040] Error parsing NAL unit #3. 00:00:09 - SDL Warn (0): Test decode failed (avcodec_send_packet): Operation not permitted 00:00:09 - SDL Info (0): Using SDL renderer 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] nal_unit_type: 21(CRA_NUT), nuh_layer_id: 0, temporal_id: 0 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Decoding VPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Decoding SPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Main profile bitstream 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Decoding VUI 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Decoding PPS 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Format yuv420p chosen by get_format(). 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Output frame with POC 3. 00:00:09 - FFmpeg: [hevc @ 0x7f37e0742b80] Decoded frame with POC 3. 00:00:09 - SDL Info (0): FFmpeg-based video decoder chosen 00:00:09 - SDL Info (0): V-sync disabled libva info: VA-API version 1.11.0 libva info: Trying to open /usr/lib/dri/r600_drv_video.so libva info: Found init function __vaDriverInit_1_11 libva info: va_openDriver() returns 0 00:00:09 - SDL Info (0): Initialized VAAPI 1.11 00:00:09 - SDL Info (0): Driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1) 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x3231564e -> nv12. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x30313050 -> p010le. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x36313050 -> unknown. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x30323449 -> yuv420p. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x32315659 -> yuv420p. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x56595559 -> unknown. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x32595559 -> yuyv422. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x59565955 -> uyvy422. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x41524742 -> bgra. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x41424752 -> rgba. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x58524742 -> bgr0. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x58424752 -> rgb0. 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] VAAPI driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1). 00:00:09 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Driver not found in known nonstandard list, using standard behaviour. 00:00:09 - SDL Info (0): VAAPI driver supports exporting DRM PRIME surface handles 00:00:09 - SDL Info (0): Using VAAPI accelerated renderer on x11 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] nal_unit_type: 7(SPS), nal_ref_idc: 3 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] nal_unit_type: 8(PPS), nal_ref_idc: 3 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Format vaapi_vld chosen by get_format(). 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Format vaapi_vld requires hwaccel initialisation. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Considering format 0x3231564e -> nv12. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Picked nv12 (0x3231564e) as best match for yuv420p. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x1. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Direct mapping disabled: deriving image does not work: 1 (operation failed). 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x2. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x3. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x4. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x5. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x6. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x7. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x8. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x9. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0xa. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0xb. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0xc. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0xd. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0xe. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0xf. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x10. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x11. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x12. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x13. 00:00:09 - FFmpeg: [AVHWFramesContext @ 0x7f37e03282c0] Created surface 0x14. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Considering format 0x3231564e -> nv12. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Picked nv12 (0x3231564e) as best match for yuv420p. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Decode context initialised: 0x15/0x16. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Reinit context to 1280x720, pix_fmt: vaapi_vld 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Param buffer (type 0, 672 bytes) is 0x17. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Param buffer (type 1, 240 bytes) is 0x18. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 0 param buffer (3128 bytes) is 0x19. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 0 data buffer (75 bytes) is 0x1a. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 1 param buffer (3128 bytes) is 0x1b. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 1 data buffer (80 bytes) is 0x1c. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 2 param buffer (3128 bytes) is 0x1d. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 2 data buffer (85 bytes) is 0x1e. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 3 param buffer (3128 bytes) is 0x1f. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Slice 3 data buffer (97 bytes) is 0x20. 00:00:09 - FFmpeg: [h264 @ 0x7f37e023eac0] Decode to surface 0x14. 00:00:09 - SDL Info (0): FFmpeg-based video decoder chosen 00:00:09 - SDL Info (0): Desired audio buffer: 240 samples (960 bytes) 00:00:09 - SDL Info (0): Obtained audio buffer: 240 samples (960 bytes) 00:00:09 - Qt Info: Found "gamecontrollerdb.txt" at "/storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-home/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt" 00:00:09 - SDL Info (0): Loaded 175 new gamepad mappings 00:00:09 - SDL Info (0): V-sync disabled libva info: VA-API version 1.11.0 libva info: Trying to open /usr/lib/dri/r600_drv_video.so libva info: Found init function __vaDriverInit_1_11 libva info: va_openDriver() returns 0 00:00:10 - SDL Info (0): Initialized VAAPI 1.11 00:00:10 - SDL Info (0): Driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1) 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x3231564e -> nv12. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x30313050 -> p010le. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x36313050 -> unknown. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x30323449 -> yuv420p. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x32315659 -> yuv420p. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x56595559 -> unknown. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x32595559 -> yuyv422. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x59565955 -> uyvy422. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x41524742 -> bgra. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x41424752 -> rgba. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x58524742 -> bgr0. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Format 0x58424752 -> rgb0. 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] VAAPI driver: Mesa Gallium driver 21.0.3 for AMD TURKS (DRM 2.50.0 / 5.10.76, LLVM 11.0.1). 00:00:10 - FFmpeg: [AVHWDeviceContext @ 0x7f37e0307dc0] Driver not found in known nonstandard list, using standard behaviour. 00:00:10 - SDL Info (0): VAAPI driver supports exporting DRM PRIME surface handles 00:00:10 - SDL Info (0): Using VAAPI accelerated renderer on x11 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] nal_unit_type: 7(SPS), nal_ref_idc: 3 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] nal_unit_type: 8(PPS), nal_ref_idc: 3 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] nal_unit_type: 5(IDR), nal_ref_idc: 3 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Format vaapi_vld chosen by get_format(). 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Format vaapi_vld requires hwaccel initialisation. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Considering format 0x3231564e -> nv12. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Picked nv12 (0x3231564e) as best match for yuv420p. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x1. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Direct mapping disabled: deriving image does not work: 1 (operation failed). 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x2. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x3. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x4. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x5. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x6. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x7. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x8. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x9. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0xa. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0xb. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0xc. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0xd. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0xe. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0xf. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x10. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x11. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x12. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x13. 00:00:10 - FFmpeg: [AVHWFramesContext @ 0x7f37e07466c0] Created surface 0x14. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Considering format 0x3231564e -> nv12. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Picked nv12 (0x3231564e) as best match for yuv420p. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Decode context initialised: 0x15/0x16. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Reinit context to 1280x720, pix_fmt: vaapi_vld 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Param buffer (type 0, 672 bytes) is 0x17. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Param buffer (type 1, 240 bytes) is 0x18. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 0 param buffer (3128 bytes) is 0x19. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 0 data buffer (75 bytes) is 0x1a. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 1 param buffer (3128 bytes) is 0x1b. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 1 data buffer (80 bytes) is 0x1c. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 2 param buffer (3128 bytes) is 0x1d. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 2 data buffer (85 bytes) is 0x1e. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 3 param buffer (3128 bytes) is 0x1f. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Slice 3 data buffer (97 bytes) is 0x20. 00:00:10 - FFmpeg: [h264 @ 0x7f37e0019080] Decode to surface 0x14. 00:00:10 - SDL Info (0): FFmpeg-based video decoder chosen 00:00:10 - Qt Info: Found "gamecontrollerdb.txt" at "/storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-home/.cache/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt" 00:00:10 - SDL Info (0): Loaded 175 new gamepad mappings 00:00:10 - Qt Info: Processing new PC at "192.168.10.103:47989" from mDNS with IPv6 address "" 00:00:10 - Qt Info: Executing request: "http://192.168.10.103:47989/serverinfo?uniqueid=0123456789ABCDEF&uuid=a01e3b88be854bd38aa008a79409235d" 00:00:10 - Qt Info: Executing request: "https://192.168.10.103:47984/serverinfo?uniqueid=0123456789ABCDEF&uuid=97c982ad37aa43f2a7157faed9b175d6" 00:00:11 - SDL Info (0): Found host supported resolution: 1920x1080 00:00:11 - Qt Info: Executing request: "https://192.168.10.103:47984/launch?uniqueid=0123456789ABCDEF&uuid=7b6de62435034d669d1e14ed25d7fe4b&appid=1088017781&mode=1920x1080x60&additionalStates=1&sops=1&rikey=f69102ffecf766e9974d59b7466cb23d&rikeyid=-1764851110&localAudioPlayMode=0&surroundAudioInfo=196610&remoteControllersBitmap=1&gcmap=1" 00:00:16 - Qt Info: Launch response: "<?xml version=\"1.0\" encoding=\"UTF-16\"?><root protocol_version=\"0.1\" query=\"launch\" status_code=\"200\" status_message=\"OK\">108019201060ok8acaf1a53dc47d66738f29845c1097bfokrtsp://192.168.10.103:480100" 00:00:16 - Qt Info: Found matching interface: "wlan0" "E0:F8:47:07:C8:94" QFlags(IsUp|IsRunning|CanBroadcast|CanMulticast) 00:00:16 - Qt Info: Interface Type: QNetworkInterface::Wifi 00:00:16 - Qt Info: Interface MTU: 1500 00:00:16 - SDL Info (0): RTSP port: 48010 00:00:16 - SDL Info (0): Initializing platform... 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Resolving host name... 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Initializing audio stream... 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Starting RTSP handshake... 00:00:16 - SDL Info (0): Audio port: 48000 00:00:16 - SDL Info (0): Video port: 47998 00:00:16 - SDL Info (0): Control port: 47999 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Initializing control stream... 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Initializing video stream... 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Initializing input stream... 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Starting control stream... 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Starting video stream... 00:00:16 - SDL Info (0): Video stream is 1920x1080x60 (format 0x1) 00:00:16 - SDL Info (0): done 00:00:16 - SDL Info (0): Starting audio stream... 00:00:17 - SDL Info (0): Received first video packet after 0 ms 00:00:17 - SDL Info (0): Desired audio buffer: 240 samples (960 bytes) 00:00:17 - SDL Info (0): Obtained audio buffer: 240 samples (960 bytes) 00:00:17 - SDL Info (0): Audio stream has 2 channels 00:00:17 - SDL Info (0): done 00:00:17 - SDL Info (0): Starting input stream... 00:00:17 - SDL Info (0): Received first audio packet after 0 ms 00:00:17 - SDL Info (0): Initial audio resync period: 660 milliseconds 00:00:17 - SDL Info (0): done 00:00:17 - SDL Info (0): Qt UI screen is at (0,0) 00:00:17 - SDL Info (0): SDL found matching display 0 00:00:17 - SDL Info (0): Video decode unit queue overflow 00:00:17 - SDL Info (0): Waiting for IDR frame 00:00:17 - SDL Info (0): Waiting for IDR frame 00:00:17 - SDL Info (0): Waiting for IDR frame 00:00:17 - SDL Info (0): Waiting for IDR frame 00:00:17 - SDL Info (0): Waiting for IDR frame 00:00:17 - SDL Info (0): Waiting for IDR frame 00:00:17 - SDL Info (0): IDR frame request sent Segmentation fault

veldenb commented 2 years ago

Will leave logs under, and try with the AppImg on a "normal" distro now.

Running the AppImage version of moonlight would be helpful to determine if it is a library issue or an upstream moonlight-qt issue.

J-o-h-n-s commented 2 years ago

Running flawlessly when building from source as described at https://github.com/moonlight-stream/moonlight-qt on fresh install of Ubuntu 20.04 LTS on the same pc.

Not certain if this is what you ment by running the AppImg?

veldenb commented 2 years ago

The plugin downloads the AppImage (Linux, no installation required) from https://github.com/moonlight-stream/moonlight-qt/releases/tag/v3.2.0

Does that version run on your hardware using a normal (not libreelec) installation?

J-o-h-n-s commented 2 years ago

AppImage also launces, pairs, and connects with no problem.

My theory is that there are some dependencies missing, qould you perhaps add installing these to the docker script? the required ones for Debian/Ubuntu based systems are:

libegl1-mesa-dev libgl1-mesa-dev libopus-dev libqt5svg5-dev libsdl2-dev libsdl2-ttf-dev libssl-dev libavcodec-dev libva-dev libvdpau-dev libxkbcommon-dev qt5-default qt5-qmake qtbase5-dev qtdeclarative5-dev qtquickcontrols2-5-dev wayland-protocols qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-window2 qml-module-qtquick2

veldenb commented 2 years ago

They look like dependencies for compiling. Can you try running the appImage with ldd?

ldd ./Moonlight-3.2.0-x86_64.AppImage

It should dump a list with loaded libraries.

bonswouar commented 2 years ago

I'm having a Segfault too, on libreelect 10 generic x64, although not when I start Moonlight but when I try to connect to a game (a bit after "Starting RDSP handshake", I can't read the next message as it's too quick)

Here is my log:

00:00:20 - SDL Info (0): Audio stream has 2 channels
00:00:20 - SDL Info (0): done
00:00:20 - SDL Info (0): Starting input stream...
00:00:20 - SDL Info (0): done
00:00:20 - SDL Info (0): Received first audio packet after 0 ms
00:00:20 - SDL Info (0): Initial audio resync period: 915 milliseconds
00:00:20 - SDL Info (0): Qt UI screen is at (0,0)
00:00:20 - SDL Info (0): SDL found matching display 0
00:00:20 - SDL Info (0): Received first video packet after 0 ms
Segmentation fault

I've tried without success to run the AppImage (I didn't know libreelec could flawlessly run those?) :

error: XDG_RUNTIME_DIR not set in the environment.
00:00:00 - SDL Info (0): Compiled with SDL 2.0.21
00:00:00 - SDL Info (0): Running with SDL 2.0.21
00:00:00 - Qt Info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
00:00:00 - Qt Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted

And with debug on:

error: XDG_RUNTIME_DIR not set in the environment.
00:00:00 - SDL Info (0): Compiled with SDL 2.0.21
00:00:00 - SDL Info (0): Running with SDL 2.0.21
00:00:00 - Qt Debug: QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms" ...
00:00:00 - Qt Debug: QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so"
00:00:00 - Qt Warning: Found metadata in lib /tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}

00:00:00 - Qt Debug: Got keys from plugin meta data ("xcb")
00:00:00 - Qt Debug: QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_MoonlirSBlUQ/usr/bin/platforms" ...
00:00:00 - Qt Debug: Cannot load library /tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so: (libxcb.so.1: cannot open shared object file: No such file or directory)
00:00:00 - Qt Warning: QLibraryPrivate::loadPlugin failed on "/tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so: (libxcb.so.1: cannot open shared object file: No such file or directory)"
00:00:00 - Qt Info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
00:00:00 - Qt Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted

And finally running ldd on this AppImage only returns this weird error:

$   not a dynamic executable

And I didn't try to build it from source but I believe there would be some libraries missing anyway?

P.S. I hope this is related to OP's problem, I can create a new issue if needed

veldenb commented 2 years ago

I tried the plugin on a Intel NUC today, same problem. Seems to be something with video decoding because the rest works fine. I guess some incompatibility. Will take some time to figure this out since the segmentation fault doesn't give a lot of information.

J-o-h-n-s commented 2 years ago

Sorry for late reply, also getting "not a dynamic executable" with ldd

J-o-h-n-s commented 2 years ago

I'm having a Segfault too, on libreelect 10 generic x64, although not when I start Moonlight but when I try to connect to a game (a bit after "Starting RDSP handshake", I can't read the next message as it's too quick)

Here is my log:

00:00:20 - SDL Info (0): Audio stream has 2 channels
00:00:20 - SDL Info (0): done
00:00:20 - SDL Info (0): Starting input stream...
00:00:20 - SDL Info (0): done
00:00:20 - SDL Info (0): Received first audio packet after 0 ms
00:00:20 - SDL Info (0): Initial audio resync period: 915 milliseconds
00:00:20 - SDL Info (0): Qt UI screen is at (0,0)
00:00:20 - SDL Info (0): SDL found matching display 0
00:00:20 - SDL Info (0): Received first video packet after 0 ms
Segmentation fault

I've tried without success to run the AppImage (I didn't know libreelec could flawlessly run those?) :

error: XDG_RUNTIME_DIR not set in the environment.
00:00:00 - SDL Info (0): Compiled with SDL 2.0.21
00:00:00 - SDL Info (0): Running with SDL 2.0.21
00:00:00 - Qt Info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
00:00:00 - Qt Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted

And with debug on:

error: XDG_RUNTIME_DIR not set in the environment.
00:00:00 - SDL Info (0): Compiled with SDL 2.0.21
00:00:00 - SDL Info (0): Running with SDL 2.0.21
00:00:00 - Qt Debug: QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms" ...
00:00:00 - Qt Debug: QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so"
00:00:00 - Qt Warning: Found metadata in lib /tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}

00:00:00 - Qt Debug: Got keys from plugin meta data ("xcb")
00:00:00 - Qt Debug: QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_MoonlirSBlUQ/usr/bin/platforms" ...
00:00:00 - Qt Debug: Cannot load library /tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so: (libxcb.so.1: cannot open shared object file: No such file or directory)
00:00:00 - Qt Warning: QLibraryPrivate::loadPlugin failed on "/tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/.mount_MoonlirSBlUQ/usr/plugins/platforms/libqxcb.so: (libxcb.so.1: cannot open shared object file: No such file or directory)"
00:00:00 - Qt Info: Could not load the Qt platform plugin "xcb" in "" even though it was found.
00:00:00 - Qt Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted

And finally running ldd on this AppImage only returns this weird error:

$ not a dynamic executable`

And I didn't try to build it from source but I believe there would be some libraries missing anyway?

P.S. I hope this is related to OP's problem, I can create a new issue if needed

This is the same issue as i'm having. Not when launching moonlight, but when connecting to a game

veldenb commented 2 years ago

I've updated the x86 installer. Can you try if this version works better? https://github.com/veldenb/plugin.program.moonlight-qt/releases/download/v0.1.4/plugin.program.moonlight-qt.zip

I noticed a launch failed message from Kodi but moonlight did start on my NUC.

veldenb commented 2 years ago

Should be fixed in latest releases. Closing for now, feel free to re-open if necessary.

bonswouar commented 2 years ago

Should be fixed in latest releases. Closing for now, feel free to re-open if necessary.

I've just installed the last release and I'm still having the segfaul just after "Received first video packet after 0 ms". I wish there was more details in the logs..

If you need me to test something please don't hesitate

(I apparently can't reopen this issue)

veldenb commented 2 years ago

@bonswouar have you tried updating moonlight using the configuration menu? The plugin needs to create a new moonlight build before the fix becomes effective.

bonswouar commented 2 years ago

@veldenb Oh that makes sense, sorry, it totally works now that I've updated the docker container, thanks!

EDIT: Totally unrelated, it would be nice to have some controller support outside of games (for example to click on a popup or whatever), but I'm not sure it's possible?

veldenb commented 2 years ago

@bonswouar you mean this?

"Gamepad shortcuts: Start (press and hold) - Toggle mouse mode" ?

It's already in Moonlight :)

bonswouar commented 2 years ago

@veldenb Woh they thought of everything, amazing! :) I haven't used Moonlight much yet, gonna leave this here just in case somebody is looking for gamepad controls: https://wiki.batocera.org/systems:moonlight#moonlight_shortcuts

Now I have to stop spamming this issue ;)