mcobit/retrosmc

emulationstation segfaulting from launcher

Opened this issue · 5 comments

I was getting a
/usr/bin/emulationstation: line 13: 1557 Segmentation fault $es_bin “$@”

When trying to launch from the OSMC addon. Was launching fine when I called the retropie.sh script over ssh. Seems emulationstation does not work nicely when it is launched from certain directories (presumably ones it can’t write to). I worked around this by adding a

cd /home/osmc

just below the shbang of the retropie.sh script.

Running latest OSMC 2018.12

I can confirm this, because I had the same issue after updating emulationstation to V2.8.1RP.
hakuya's workaround fixed it for me, too. Thank you.

I see same issue, but I'm new in OSMC and all these stuff. Can someone please describe in details how to "add cd /home/osmc just below the shbang of the retropie.sh script."
Thank you.

Edit the file \home\osmc\RetroPie\scripts\retropie.sh and add a new line at line 20 just below the line echo '#!/bin/bash (shbang means the "#!" string). So line 19 - 21 should look like this:

echo '#!/bin/bash
cd /home/osmc

es_bin="/opt/retropie/supplementary/emulationstation/emulationstation"

This solution also helped in my case, where emulationstation was not starting via launcher plugin, and starting normally when retropie.sh sript was executed directly on linux.

Damn, why i came here only after Uninstalling it all!!? Thx!