Development Support [RetroAchievements]

  • Hi All,

    Wondering if i can get some support from someone on the LE team. Currently trying to implement RetroAchievements which alongside new dialogs are fully working for NES roms. It looks like Garbears test builds show the functionality as all working across Ubuntu, Windows etc. However when popping an achievement on LibreElec the game seems to crash - It looks like this also could affect Mac but given i'm vibe coding the heck out of this i'm keen on getting any support to might make this go a little quicker.


    RetroAchievements: Full integration and in-game OSD dialogs for achievements and leaderboards by sunlollyking · Pull Request #147 · garbear/xbmc


    Happy to answer any questions or help diagnose. The build is here https://github.com/garbear/xbmc/r…c8715365.img.gz

  • I'd recommend building kodi, game.libretro and rcheevos with debug info and also enable the address sanitizer.

    You can pass in the needed options as environment variables when building LE, but personally I prefer to create a .libreelec/options file with them. eg:

    Code
    DEBUG="kodi game.libretro rcheevos"
    DEBUG_SANITIZER_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"

    Then do a full clean image and game.libretro addon build.

    The undefined behavior sanitizer can also be helpful - see the gcc docs https://gcc.gnu.org/onlinedocs/gcc…on-Options.html

    Another possibility is to run kodi with valgrind - it's a lot slower than the address sanitizer but may give additional info.

    To include valgrind in the image you need to enable it:

    Code
    VALGRIND="yes"

    and then manually start kodi with valgrind kodi --standalone -fs --audio-backend=alsa+pulseaudio

    Depending on where exactly it's crashing you may need to enable debug info for additional packages.

    so long,

    Hias