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

0.1.92 crashes after install and causes Kodi to boot in safe mode #934

Closed
martijk opened this issue Jul 10, 2023 · 6 comments
Closed

0.1.92 crashes after install and causes Kodi to boot in safe mode #934

martijk opened this issue Jul 10, 2023 · 6 comments

Comments

@martijk
Copy link

martijk commented Jul 10, 2023

Current Behavior

After installation Kodi crashes, tries to start a number of times and eventually starts in safe mode.

Steps to Reproduce (for bugs)

Install 0.1.92 from zip of from the add-on repo.

Context

It works with version 0.1.91, but fails with 0.1.92. I've removed and reinstalled both from zip and from the add-on repo, both with the same effect. Installing 0.1.91 again fixes the issue.

For those looking for a quick solution: I've removed the plugin in safe mode over ssh by executing rm -rf /storage/.kodi.FAILED/addons/plugin.video.elementum/; reboot.

Your Environment

  • Version used:
    0.1.92
  • Environment name and version:
    LibreElec 11.0.1 on RPi 4

Log

2023-07-10 21:10:05.184 T:1496  warning <general>: [plugin.video.elementum] elementumd: starting elementumd
2023-07-10 21:10:05.185 T:1495  warning <general>: [plugin.video.elementum] elementum: starting jsonrpc service
2023-07-10 21:10:05.185 T:1484     info <general>: JSONRPC Server: New connection added
2023-07-10 21:10:05.185 T:1496  warning <general>: [plugin.video.elementum] Kodi's JSON-RPC service is available, starting up...
2023-07-10 21:10:05.186 T:1484     info <general>: JSONRPC Server: Disconnection detected
2023-07-10 21:10:05.189 T:1496  warning <general>: [plugin.video.elementum] Binary detection. Version: v0.1.92, Source: /storage/.kodi/addons/plugin.video.elementum/resources/bin/linux_armv7/elementum, Destination: /storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7/elementum
2023-07-10 21:10:05.190 T:1496  warning <general>: [plugin.video.elementum] Deleting stale files set()
2023-07-10 21:10:05.190 T:1496  warning <general>: [plugin.video.elementum] Binary detection: [ Source: /storage/.kodi/addons/plugin.video.elementum/resources/bin/linux_armv7/elementum, Destination: /storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7/elementum ]
2023-07-10 21:10:05.190 T:1496  warning <general>: [plugin.video.elementum] Binary dir: /storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7, item: /storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7/elementum 
2023-07-10 21:10:05.198 T:1496  warning <general>: [plugin.video.elementum] elementumd: start args: ['/storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7/elementum', '-remotePort=65221', '-localPort=65220'], kw: {'stdout': -1, 'stderr': -2, 'cwd': '/storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7', 'env': {'HISTFILESIZE': '200', 'HOSTNAME': 'woonkamer', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7:/usr/lib:/storage/.kodi/addons/script.module.certifi/lib:/storage/.kodi/addons/script.module.chardet/lib:/storage/.kodi/addons/script.module.future/lib:/storage/.kodi/addons/script.module.idna/lib:/storage/.kodi/addons/script.module.inputstreamhelper/lib:/storage/.kodi/addons/script.module.requests/lib:/storage/.kodi/addons/script.module.urllib3/lib:/storage/.kodi/addons/script.openweathermap.maps/lib:/usr/lib/pulseaudio', 'HOME': '/storage', 'PS1': '\\[\\e[1;32m\\]\\h\\[\\e[1;32m\\]:\\[\\e[1;34m\\]\\w \\[\\e[0m\\]\\$ ', 'SYSTEMD_EXEC_PID': '1455', 'KODI_HOME': '/usr/share/kodi/', 'JOURNAL_STREAM': '7:24393', 'MALLOC_MMAP_THRESHOLD_': '8192', 'TERM': 'linux', 'KODI_ARGS': '', 'PATH': '/usr/bin:/usr/sbin', 'INVOCATION_ID': 'f7e404d5ecd942ce94afb9eadff2bc7a', 'KODI_AE_SINK': 'ALSA+PULSE', 'LOCPATH': '/storage/.cache/locpath', 'LANG': 'C.UTF-8', 'SYSTEMD_COLORS': '0', 'KODI_TEMP': '/storage/.kodi/temp', 'PWD': '/', 'EDITOR': 'nano', 'KODI_BIN_HOME': '/usr/lib/kodi', 'OS': 'Linux', 'TZ': ':Europe/Amsterdam', 'LIRC_SOCKET_PATH': '/var/run/lirc/lircd', 'PYTHONOPTIMIZE': '1'}, 'close_fds': True}
2023-07-10 21:10:05.198 T:1496  warning <general>: [plugin.video.elementum] elementumd: Forcing library startup
2023-07-10 21:10:05.199 T:1496  warning <general>: [plugin.video.elementum] elementumd: loading shared library from /storage/.kodi/userdata/addon_data/plugin.video.elementum/bin/linux_armv7/elementum.so

I can retrace my steps and provide a more detailed log if needed.

@elgatito
Copy link
Owner

@martijk Strange that RPI4 could not run library for armv7.
Interesting to know what causes it, but probably you won't be able to get details easily.

New build of 0.1.92 is now prepared, try to re-download it.

@SubEdict
Copy link

Using 0.1.92 since the update 4 hours ago (happened between episodes lol), took 3 seconds, the firewall needed approval, accepted, and I was able to continue watching as if nothing happen.

*Did notice something new: From the Task Manager, Elementum no longer exists as a service, only Kodi.exe ...Is it normal now?
PC Win 7/10 x64

@SecT0uch
Copy link

SecT0uch commented Jul 10, 2023

I experience the same issue with LibreElec running on Odroid N2+

Edit: New 0.1.92 build fixed it

@elgatito
Copy link
Owner

@SubEdict That is because it forced to start as a shared library, not as a separate binary. Re-download and re-install 0.1.92 and it will work as previously. Usually you won't notice any difference.

@elgatito
Copy link
Owner

I feel that it is an issue with a shared library and Rpi4, much alike this one - golang/go#58548
So it probably needs some changes in compilation process to run properly on Rpi4.
But to do that - Rpi4 is required and trying to resolve it playing with libtorrent-go docker image.

Closing this one, as there is nothing I, personally, can do.
If someone wants to try a fix on his own - I can reopen this issue and help with instructions on how to re-create docker images.

@martijk
Copy link
Author

martijk commented Jul 13, 2023

I've not tested it yet, hence no reaction from my side, but looking at the changes I'm fully convinced that it will not crash anymore. Thanks!

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