plugin.program.moonlight-qt icon indicating copy to clipboard operation
plugin.program.moonlight-qt copied to clipboard

Moonlight won't start

Open vanMacG opened this issue 1 year ago • 9 comments

I can't start into moonlight anymore. It worked "before", but I can't remember what exactly changed...

Here is the log-output from /storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt.log

Platform rpi (armv7l) running libreelec 12.0 detected...
Loading LibreELEC profile for setting up environment...
Using custom libraries from /storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt/lib...
Using Qt library from /storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt/lib/qt5...
Running without window manager...
Detected resolution 1920,1080...
Using Qt scale factor 0.9...
Using Kodi hooks for libreelec...
--- Starting Moonlight ---
./moonlight-qt: error while loading shared libraries: libmmal.so: cannot open shared object file: No such file or directory

The changes to /flash/distroconfig.txt are applied:

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present Team LibreELEC (https://libreelec.tv)

# WARNING: DO NOT EDIT THIS FILE - IT WILL BE OVERWRITTEN WHEN UPGRADING!
display_auto_detect=1
dtoverlay=vc4-fkms-v3d,cma-384
dtoverlay=
disable_overscan=1
disable_fw_kms_setup=1

LibreELEC: 12.0.1 Plattform: Raspberry Pi 3

vanMacG avatar Oct 25 '24 08:10 vanMacG

Did you recently upgrade moonlight or reinstalled the plug-in? It might be due to changes in the latest moonlight version.

veldenb avatar Oct 25 '24 08:10 veldenb

I upgraded to LibreELEC 12.0.1 and I think it worked after that, but I'm not sure. moonlight-qt was not updated. Issue was with plugin 0.4.4, update to 0.4.5 today, but no change. I can try to update/reinstall moonlight, but didn't want to change too much the first time.

vanMacG avatar Oct 25 '24 08:10 vanMacG

I reinstalled moonlight, but the error is still the same.

I searched around a bit and found that MMAL is not supported anymore by RPi? Issue is about 64bit, but one of the latest comments is that 32bit also is no longer supported. I can't find libmmal.so anywhere in my LibreElec-setup.

Is this a consequence from using fkms because RPi3, or why I'm the only one getting this error...?

vanMacG avatar Oct 26 '24 13:10 vanMacG

I'm not an expert on this topic, the RPi 3 is not officially supported by moonlight so there is not much more I can do than recommending these steps: https://github.com/veldenb/plugin.program.moonlight-qt#raspberry-pi-3 . If that doesn't work I think you should stick to LE11 unless someone finds a workaround.

veldenb avatar Oct 28 '24 13:10 veldenb

I'm with a similar issue, but on x86_64, tested both with Generic and Generic-legacy:

Nov 25 13:02:32 coeus systemd[1]: Started run-rf3eb2ce293b94d3fb08d561bfa5845fb.service.
Nov 25 13:02:32 coeus systemd-run[3584]: Running as unit: run-rf3eb2ce293b94d3fb08d561bfa5845fb.service; invocation ID: f070b44f71334cb78b31375236458cc6
Nov 25 13:02:32 coeus bash[3588]: Platform generic (x86_64) running libreelec 13.0 detected...
Nov 25 13:02:32 coeus bash[3588]: Loading LibreELEC profile for setting up environment...
Nov 25 13:02:32 coeus bash[3588]: Using custom libraries from /storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt/lib...
Nov 25 13:02:32 coeus bash[3588]: Using Qt library from /storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt/lib/qt5...
Nov 25 13:02:32 coeus bash[3588]: Running with window manager...
Nov 25 13:02:32 coeus bash[3588]: Using Kodi hooks for libreelec...
Nov 25 13:02:32 coeus systemd[1]: Stopping kodi.service...
Nov 25 13:02:34 coeus systemd[1]: kodi.service: Deactivated successfully.
Nov 25 13:02:34 coeus systemd[1]: Stopped kodi.service.
Nov 25 13:02:34 coeus systemd[1]: kodi.service: Consumed 4.147s CPU time, 252.6M memory peak.
Nov 25 13:02:34 coeus bash[3588]: --- Starting Moonlight ---
Nov 25 13:02:34 coeus bash[3588]: ./moonlight-qt: error while loading shared libraries: libswscale.so.8: cannot open shared object file: No such file or directory
Nov 25 13:02:34 coeus systemd[1]: Starting kodi.service...
Nov 25 13:02:34 coeus systemd[1]: Started kodi.service.
Nov 25 13:02:34 coeus systemd[1]: run-rf3eb2ce293b94d3fb08d561bfa5845fb.service: Deactivated successfully.
Nov 25 13:02:34 coeus (kodi.sh)[3639]: kodi.service: Referenced but unset environment variable evaluates to an empty string: KODI_DEBUG
Nov 25 13:02:34 coeus kodi.sh[3668]: libva info: VA-API version 1.22.0
Nov 25 13:02:34 coeus kodi.sh[3668]: libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so
Nov 25 13:02:34 coeus kodi.sh[3668]: libva info: Found init function __vaDriverInit_1_22
Nov 25 13:02:34 coeus kodi.sh[3668]: libva info: va_openDriver() returns 0
Nov 25 13:02:34 coeus kernel: input input9: unable to receive magic message: -121

mdkcore0 avatar Nov 25 '24 16:11 mdkcore0

I'm with a similar issue, but on x86_64, tested both with Generic and Generic-legacy:

Is fixed in latest version, see also https://github.com/veldenb/plugin.program.moonlight-qt/issues/78 Update the plug-in and updating moonlight-qt should fix the starting issue for generic builds.

veldenb avatar Nov 26 '24 10:11 veldenb

Is fixed in latest version, see also #78 Update the plug-in and updating moonlight-qt should fix the starting issue for generic builds.

oh, I was just updating using the "update moonlight to the latest version" button, manually installing the update worked, thanks!

mdkcore0 avatar Nov 26 '24 18:11 mdkcore0

I had the same problem as @vanMacG, the moonlight-qt plugin is not working on a RasperryPi 3 with LibreELEC 12.

It seems that the rpi / armv7l version of this plugin is pulling the libraries from the arm32v7/debian:bullseye-slim docker image (while the rpi_aarch64 version is using the arm64v8/debian:bookworm-slim image). But the latest version of moonlight-qt works for me on a RaspberryPi 3 with the 32-bit Raspbian bookworm, so I modified the resources/build/rpi/Dockerfile file in the downloaded zip to pull the libraries from arm32v7/debian:bookworm-slim and the plugin installed moonlight-qt without errors. This way moonlight-qt is working for on a RaspberryPi 3 with LibreELEC 12.

marcoce7 avatar Jan 06 '25 18:01 marcoce7

Thank you very much @marcoce7 ! I made the changes to the Dockerfile like in your PR #86 and rebuild moonlight-qt. Now everything works again ❤️

vanMacG avatar Jan 12 '25 11:01 vanMacG

Should be fixed now in the v0.4.6 release.

veldenb avatar Mar 15 '25 19:03 veldenb

Today I upgraded libreelec to 12.2, plugin.program.moonlight-qt to 0.5.0, and rebuild moonlight-qt. It doesn't start again, error message is similar to the original error:

LibreELEC project: RPi version 12.2
LibreELEC arch: RPi2.arm
Platform rpi (armv7l) running libreelec 12.2 detected...
Loading LibreELEC profile for setting up environment...
Using custom libraries from /storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt/lib...
Using Qt library from /storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt/moonlight-qt/lib/qt6...
Running without window manager...
Detected resolution 1920,1080...
Using Qt scale factor 0.64...
Using Kodi hooks for libreelec...
--- Starting Moonlight ---
./moonlight-qt: error while loading shared libraries: libavcodec.so.59: cannot open shared object file: No such file or directory

build.log:

LibreELEC project: RPi version 12.2
LibreELEC arch: RPi2.arm
Platform rpi (armv7l) running libreelec 12.2 detected...
Building libreelec armv7l...
Building armv7l with rpi using arch arm...
Sending build context to Docker daemon  2.505kB

Step 1/6 : ARG DEBIAN_RELEASE=bookworm
Step 2/6 : FROM debian:${DEBIAN_RELEASE}-slim
bookworm-slim: Pulling from library/debian

@marcoce7 Do you have similar issue with newest versions?

vanMacG avatar Sep 28 '25 13:09 vanMacG

This is fixed in v0.5.2:

./moonlight-qt: error while loading shared libraries: libavcodec.so.59: cannot open shared object file: No such file or directory

veldenb avatar Oct 06 '25 18:10 veldenb