Hyperion crashes on my HTPC when stopping a movie/tv show or if it comes to an end.
I have an HTPC running Kodi and a Raspberry Pi 3 hooked up to the LEDs around the TV.
I run the hyperion ambilight addon on the HTPC. Pi 3 runs Libreelec and then the LED setup made with Hypercon.
The setup has worked great for years although I recently did some updates which may have cause the issue I now have although I can't work out what could be causing it.
Changes were:
replace the original Pi 1 driving the LEDs with a Pi 3. The Pi 1 crashed .... was using a USB stick to speed up the OS and that died so decided to upgrade to the Pi 3 as it was sitting around doing nothing.
the HTPC Kodi install became corrupted and so I had to do a reset of Libreelec and re-setup as well as an SSD replacing the original HD (Kodi was getting slow to boot).
If I stop a movie/tv show etc or it comes to an end then Hyperion crashes on the HTPC with an on screen popup. There is no communication to drive the LEDs from the HTPC to the Pi after the crash. I can reboot the HTPC and everything is good again until I stop the show or it comes to an end.
When hyperion crashes on the HTPC I can still use the Android phone app to communicate with the Pi and set LED colour etc. etc..
Here is the kodi.log entry after Hyperion crashes with its traceback from the HTPC:
2021-03-29 17:53:53.343 T:140156795352832 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: Hyperion server error:
Traceback (most recent call last):
File "/storage/.kodi/addons/script.service.hyperion/addon.py", line 49, in <module>
next_state = state.execute()
File "/storage/.kodi/addons/script.service.hyperion/resources/lib/state.py", line 92, in execute
self.clear_priority()
File "/storage/.kodi/addons/script.service.hyperion/resources/lib/state.py", line 82, in clear_priority
self._hyperion.clear(self._settings.priority)
File "/storage/.kodi/addons/script.service.hyperion/resources/lib/hyperion/Hyperion.py", line 111, in clear
self.__sendMessage(request)
File "/storage/.kodi/addons/script.service.hyperion/resources/lib/hyperion/Hyperion.py", line 144, in __sendMessage
raise RuntimeError("Hyperion server error: " + reply.error)
RuntimeError: Hyperion server error:
-->End of Python script error report<--
2021-03-29 17:53:53.414 T:140156795352832 WARNING: CPythonInvoker(2, /storage/.kodi/addons/script.service.hyperion/addon.py): the python script "/storage/.kodi/a
If you want/need any other config or setup info I will quite happily pull it together.
Thanks for any and all pointers, cheers, Duncan