2015-12-09, 06:53
Hey guys, im using this addon in a very simple way and its been working wonderfully... however I've run into a small snag.
On boot & on stop of video i run this script (play.sh):
The idea is the mp3 provides a little ambient background music while navigating through the menus or when its just sitting idle. (the actual script is a little more involved in randomly picking an mp3 from a local directory)
when the mp3 is done a "stop" is detected and the script runs again and keeps playing (i think this is where my problem is coming from)... after a while i get the following error:
and thats the end, my loop stops running because there is no longer an "end/stop" to trigger the script being run again.
the odd part is i can play a normal movie/tv show... its just my script that fails out until i reboot. Ive googled around and my error points to swap file issues? but im not able to figure out how that applies?
Any pointers? thanks?
On boot & on stop of video i run this script (play.sh):
Code:
#!/bin/bash
kodi-send -a "PlayMedia(my_mp3_file.mp3)";
The idea is the mp3 provides a little ambient background music while navigating through the menus or when its just sitting idle. (the actual script is a little more involved in randomly picking an mp3 from a local directory)
when the mp3 is done a "stop" is detected and the script runs again and keeps playing (i think this is where my problem is coming from)... after a while i get the following error:
Code:
OSError: [Errno 12] Cannot allocate memory
the odd part is i can play a normal movie/tv show... its just my script that fails out until i reboot. Ive googled around and my error points to swap file issues? but im not able to figure out how that applies?
Any pointers? thanks?