Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moonlight won't start #83

Open
vanMacG opened this issue Oct 25, 2024 · 9 comments
Open

Moonlight won't start #83

vanMacG opened this issue Oct 25, 2024 · 9 comments

Comments

@vanMacG
Copy link

vanMacG commented Oct 25, 2024

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

@veldenb
Copy link
Owner

veldenb commented Oct 25, 2024

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

@vanMacG
Copy link
Author

vanMacG commented Oct 25, 2024

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
Copy link
Author

vanMacG commented Oct 26, 2024

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...?

@veldenb
Copy link
Owner

veldenb commented Oct 28, 2024

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.

@mdkcore0
Copy link

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

@veldenb
Copy link
Owner

veldenb commented Nov 26, 2024

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

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

@mdkcore0
Copy link

mdkcore0 commented Nov 26, 2024

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!

@marcoce7
Copy link

marcoce7 commented Jan 6, 2025

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.

@vanMacG
Copy link
Author

vanMacG commented Jan 12, 2025

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 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants