RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Odroid XU4 SDL Problem Emulationstation

    Scheduled Pinned Locked Moved Help and Support
    odroidxu4retropieubuntu
    76 Posts 4 Posters 7.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aaronouthier
      last edited by aaronouthier

      There is no retropie.cfg file in that location. I opened RetroArch.cfg, but couldn't find the string in question.

      I have removed all Retropie packages, and am recompiling now to see if I missed something.

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @aaronouthier
        last edited by

        @aaronouthier said in Odroid XU4 SDL Problem Emulationstation:

        There is no retropie.cfg file in that location.

        You can create the file and add own_sdl2=0 in it, so RetroPie-Setup will use the distro's SDL packages instead of trying to build its own.

        A 1 Reply Last reply Reply Quote 0
        • A
          aaronouthier @mitu
          last edited by

          @mitu Well, I shelved the project for a good 15 days. Back at it again today. Tried your latest idea/suggestion, and...

          It worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

          Now facing a ES Welcome screen!!!

          Halleluiah!!!

          Thanks for all of your help and support in this! Couldn't have done it without you.

          (I kind of wish I had tried it 2 weeks ago ;)

          A 1 Reply Last reply Reply Quote 0
          • A
            aaronouthier @aaronouthier
            last edited by

            @mitu
            At first, I was excited! Until I tried to actually play a game...

            RetroArch started core dumping upon launch. I never did get it to work.

            I found and extracted the core dump, and ran a backtrace:

            Reading symbols from /opt/retropie/emulators/retroarch/bin/retroarch...
            (No debugging symbols found in /opt/retropie/emulators/retroarch/bin/retroarch)
            [New LWP 1771]
            [New LWP 1769]
            [New LWP 1770]
            [New LWP 1773]
            [New LWP 1775]
            [New LWP 1778]
            [New LWP 1776]
            [New LWP 1774]
            [New LWP 1781]
            [New LWP 1779]
            [New LWP 1777]
            [New LWP 1783]
            [New LWP 1780]
            [New LWP 1782]
            [Thread debugging using libthread_db enabled]
            Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
            Core was generated by `/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/'.
            Program terminated with signal SIGSEGV, Segmentation fault.
            #0  0xac148b90 in ?? ()
            --Type <RET> for more, q to quit, c to continue without paging--
            [Current thread is 1 (Thread 0xacabb9c0 (LWP 1771))]
            (gdb) backtrace
            #0  0xac148b90 in  ()
            #1  0xb3e4d77a in XNoOp () at /lib/arm-linux-gnueabihf/libX11.so.6
            #2  0xb5de4f20 in  () at /lib/arm-linux-gnueabihf/libGLESv2.so
            

            Output of Runlog:

            Parameters:
            Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-vecx/vecx_libretro.so --config /opt/retropie/configs/vectrex/retroarch.cfg "/home/retro/RetroPie/roms/vectrex/HyperChase - Auto Race (World).zip" --appendconfig /dev/shm/retroarch.cfg
            /opt/retropie/supplementary/runcommand/runcommand.sh: line 1329:   871 Segmentation fault      (core dumped) /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-vecx/vecx_libretro.so --config /opt/retropie/configs/vectrex/retroarch.cfg "/home/retro/RetroPie/roms/vectrex/HyperChase - Auto Race (World).zip" --appendconfig /dev/shm/retroarch.cfg
            
            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @aaronouthier
              last edited by

              @aaronouthier Are you running from a desktop (X11) session ? The backtrace is not very useful, since the crash seems to happen outside of RetroArch, in the X11 libraries. I'm afraid that without a similar device (which I don't have) I can't be of any more help.

              A 1 Reply Last reply Reply Quote 0
              • A
                aaronouthier @mitu
                last edited by

                @mitu Not running from a desktop session. I don't even know if/how I can. There doesn't appear to be a Window Manager installed. I don't know if enough pieces are available to run a full X11 environment.

                I did check the libraries listed, and both are symlinks, as follows:

                lrwxrwxrwx 1 root root 15 Oct  2  2023 /lib/arm-linux-gnueabihf/libX11.so.6 -> libX11.so.6.4.0
                
                /lib/arm-linux-gnueabihf/libGLESv2.so -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so
                

                The 2nd of those seems a bit bizarre? That shared Library points to a library with a different name. Is that expected/normal?

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @aaronouthier
                  last edited by

                  @aaronouthier said in Odroid XU4 SDL Problem Emulationstation:

                  [..]

                  The 2nd of those seems a bit bizarre? That shared Library points to a library with a different name. Is that expected/normal?

                  Yes, it's not bizarre. Try installing a desktop environment, start a fullscren xterm and run emulationstation from it. See if you get the same crash with RetroArch or other emulators.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    aaronouthier @mitu
                    last edited by

                    @mitu
                    I opened an xterm, and from there ran emulationstation, but it gives me a black screen, no image appears. I am getting a signal to my TV though.

                    When I kill the emulationstation process, it goes back to X11 desktop with the xterm.

                    I am including the latest contents of es_log.txt:

                    Mar 21 12:21:24 lvl2:   EmulationStation - v2.11.2rp, built Mar 15 2025 - 10:33:02
                    Mar 21 12:21:24 lvl2:   Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamenames.xml"...
                    Mar 21 12:21:24 lvl2:   Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamebioses.xml"...
                    Mar 21 12:21:24 lvl2:   Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamedevices.xml"...
                    Mar 21 12:21:24 lvl2:   Creating window...
                    Mar 21 12:21:25 lvl2:   Created window successfully.
                    Mar 21 12:21:25 lvl2:   GL vendor:
                    Mar 21 12:21:25 lvl2:   GL renderer:
                    Mar 21 12:21:25 lvl2:   GL version:
                    Mar 21 12:21:25 lvl2:   Checking available OpenGL extensions...
                    Mar 21 12:21:25 lvl2:    ARB_texture_non_power_of_two: MISSING
                    Mar 21 12:21:25 lvl1:   Tried to enable vsync, but failed! (Negative swap interval unsupported in this GL)
                    Mar 21 12:21:25 lvl2:   Loading system config file /etc/emulationstation/es_systems.cfg...
                    Mar 21 12:21:25 lvl1:   System "arcade" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "channelf" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "coleco" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "fba" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "fds" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "gamegear" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "gb" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "gba" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "gbc" has no games! Ignoring it.
                    Mar 21 12:21:26 lvl1:   System "mame-libretro" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "mastersystem" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "megadrive" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "msx" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "neogeo" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "nes" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "ngp" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "ngpc" has no games! Ignoring it.
                    Mar 21 12:21:27 lvl1:   System "pcengine" has no games! Ignoring it.
                    Mar 21 12:21:28 lvl1:   System "psx" has no games! Ignoring it.
                    Mar 21 12:21:28 lvl2:   Parsing XML file "/home/retro/.emulationstation/gamelists/retropie/gamelist.xml"...
                    Mar 21 12:21:28 lvl1:   System "sega32x" has no games! Ignoring it.
                    Mar 21 12:21:28 lvl1:   System "segacd" has no games! Ignoring it.
                    Mar 21 12:21:28 lvl1:   System "sg-1000" has no games! Ignoring it.
                    Mar 21 12:21:28 lvl1:   System "snes" has no games! Ignoring it.
                    Mar 21 12:21:28 lvl1:   System "vectrex" has no games! Ignoring it.
                    Mar 21 12:21:28 lvl1:   System "zxspectrum" has no games! Ignoring it.
                    Mar 21 12:23:11 lvl2:   EmulationStation cleanly shutting down.
                    

                    Yes, I am aware that no games are available.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      aaronouthier @aaronouthier
                      last edited by

                      @mitu
                      Seem to be having issues with GL now?

                      I recently moved the board to a 4k TV however, so I can try editing config.ini to force a more reasonable resolution.

                      1 Reply Last reply Reply Quote 0
                      • A
                        aaronouthier
                        last edited by

                        It seems that the distro-released SDL2 binary doesn't have support for the built-in Mali GPU on this board.

                        Revered back to RetroPie's source install. Now-Recompiling Core and Main packages.

                        1 Reply Last reply Reply Quote 0
                        • A
                          aaronouthier
                          last edited by

                          Wiped the Install for a fresh 22.04 LTS. Following the docs very closely but will add the __platform var this time to the initial retropie-setup command.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.