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

    New bug/crash from 15 days with new ES release

    Scheduled Pinned Locked Moved Help and Support
    emulationstaioncrashbuginputmanagerretropie-setup
    53 Posts 10 Posters 15.1k 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.
    • pjftP
      pjft @Sano
      last edited by

      @sano My bet is that it is indeed related to ES input management via SDL or the underlying OS drivers, and has been there for a while now. But without hard evidence it's hard to narrow down what may be affecting this.

      1 Reply Last reply Reply Quote 0
      • SanoS
        Sano
        last edited by Sano

        According to @bmn001 post, it was only happening when he powered off his controllers after exiting a game, but before full ES reload.

        Just a guess, could be totally wrong but that seems logical :
        Without knowing the code, we could assume that the function crashing (AddJostckByDeviceIndex ?) has problem if a BT device disappears right before the call.
        If it's right, that could at least tend to prove that 7 months ago this function only was called during ES launch, and is now called on a more regular basis.

        Edit : of course this won't narrow the bug reasons, but would prove it was already existing, and explain why it seems to happen more frequently...

        1 Reply Last reply Reply Quote 0
        • pjftP
          pjft
          last edited by

          This is only called in Window::init(), specifically in InputManager::getInstance()->init();.

          This function is called at launch, and every time returning from a game back into ES (where we re-initialize the Window object).

          The code is:

          int numJoysticks = SDL_NumJoysticks();
          for(int i = 0; i < numJoysticks; i++)
          {
          	addJoystickByDeviceIndex(i);
          }
          

          and then the assertion is

          assert(id >= 0 && id < SDL_NumJoysticks());
          

          So, reading the code:

          • id is always >= 0 (it is the iin the cycle)
          • so this must be failing because, at some point, id is >= to the SDL_NumJoysticks() returned.

          Now, this is an awful thing to test or review, as the cycle by definition on runs for i = 0to i < SDL_NumJoysticks() so it means that sometime during the cycle the number of joysticks being returned by SDL is being reduced.

          An extra layer of logging there would certainly help troubleshoot this.

          Also, if one of you experiencing this could SSH into the Pi after it crashes and retrieve the content of ~/.emulationstation/es_log.txt (or, actually, after restarting, ~/.emulationstation/es_log.txt.bak should be the backup of the previous session if you're on 2.6.0) it may be helpful.

          1 Reply Last reply Reply Quote 1
          • HexH
            Hex
            last edited by

            @pjft I think this is a one time thing. The bluetooth controller must have disconnected at the exact time when it was processing this loop and caused a crash. If @darknior can reproduce this even once then we might be able to bisect it.

            Sent from 20,000 leagues under the sea.

            Powersaver Emulation station : https://github.com/hex007/EmulationStation
            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

            pjftP 1 Reply Last reply Reply Quote 0
            • pjftP
              pjft @Hex
              last edited by

              @hex my suggestion is that this is not really new, though, but certainly keen on hearing more about it.

              1 Reply Last reply Reply Quote 0
              • HexH
                Hex
                last edited by

                ES mostly runs on a single thread and this entire process runs sequentially. So PS actually doesnt interrupt this

                Sent from 20,000 leagues under the sea.

                Powersaver Emulation station : https://github.com/hex007/EmulationStation
                ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                1 Reply Last reply Reply Quote 0
                • C
                  ChauncyBlack
                  last edited by

                  @pjft Power savings doesn't seem to have an effect either way. The hang state repeats regardless.

                  In response to sano's suspicion that it may be SDL related, I do recall seeing some sort of SDL-related error when installing the retropie setup script. From the install logs:

                  dpkg: dependency problems prevent configuration of libsdl2-2.0-0:armhf:
                  libsdl2-2.0-0:armhf depends on libxcursor1 (>> 1.1.2); however:
                  Package libxcursor1 is not installed.
                  libsdl2-2.0-0:armhf depends on libxi6 (>= 2:1.2.99.4); however:
                  Package libxi6 is not installed.
                  libsdl2-2.0-0:armhf depends on libxinerama1; however:
                  Package libxinerama1 is not installed.
                  libsdl2-2.0-0:armhf depends on libxrandr2 (>= 2:1.2.99.3); however:
                  Package libxrandr2 is not installed.
                  libsdl2-2.0-0:armhf depends on libxss1; however:
                  Package libxss1 is not installed.
                  libsdl2-2.0-0:armhf depends on libxxf86vm1; however:
                  Package libxxf86vm1 is not installed.

                  dpkg: error processing package libsdl2-2.0-0:armhf (--install):
                  dependency problems - leaving unconfigured
                  dpkg: dependency problems prevent configuration of libsdl2-dev:armhf:
                  libsdl2-dev:armhf depends on libsdl2-2.0-0 (= 2.0.5+5rpi); however:
                  Package libsdl2-2.0-0:armhf is not configured yet.
                  libsdl2-dev:armhf depends on libgl1-mesa-dev; however:
                  Package libgl1-mesa-dev is not installed.
                  libsdl2-dev:armhf depends on libx11-dev; however:
                  Package libx11-dev is not installed.

                  dpkg: error processing package libsdl2-dev:armhf (--install):
                  dependency problems - leaving unconfigured
                  Processing triggers for libc-bin (2.19-18+deb8u10) ...
                  Processing triggers for man-db (2.7.5-1~bpo8+1) ...
                  Errors were encountered while processing:
                  libsdl2-2.0-0:armhf
                  libsdl2-dev:armhf

                  Could these be at all related?

                  1 Reply Last reply Reply Quote 0
                  • HexH
                    Hex
                    last edited by

                    @ChauncyBlack Your bugs are not related please open a new thread

                    Sent from 20,000 leagues under the sea.

                    Powersaver Emulation station : https://github.com/hex007/EmulationStation
                    ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                    1 Reply Last reply Reply Quote 0
                    • C
                      ChauncyBlack
                      last edited by

                      Contents of es_log.txt.bak (es_log.txt was identical)

                      lvl2: EmulationStation - v2.6.1rp, built Aug 25 2017 - 23:15:46
                      lvl2: Creating surface...
                      lvl2: Created window successfully.
                      lvl2: Added known joystick Logitech Logitech Cordless RumblePad 2 (instance ID: 0, device index: 0)
                      lvl2: Added known joystick Logitech Logitech Cordless RumblePad 2 (instance ID: 1, device index: 1)
                      lvl2: Checking available OpenGL extensions...
                      lvl2: ARB_texture_non_power_of_two: MISSING
                      lvl2: Loading system config file /etc/emulationstation/es_systems.cfg...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/amstradcpc/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/amstradcpc/../carbon.xml")
                      could not find file ""
                      lvl1: System "amstradcpc" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/arcade/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/arcade/../carbon.xml")
                      could not find file ""
                      lvl1: System "arcade" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atari2600/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/atari2600/../carbon.xml")
                      could not find file ""
                      lvl1: System "atari2600" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atari7800/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/atari7800/../carbon.xml")
                      could not find file ""
                      lvl1: System "atari7800" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atarilynx/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/atarilynx/../carbon.xml")
                      could not find file ""
                      lvl1: System "atarilynx" has no games! Ignoring it.
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/fba/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/fba/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/fba/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/fds/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/fds/../carbon.xml")
                      could not find file ""
                      lvl1: System "fds" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gamegear/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/gamegear/../carbon.xml")
                      could not find file ""
                      lvl1: System "gamegear" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gb/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/gb/../carbon.xml")
                      could not find file ""
                      lvl1: System "gb" has no games! Ignoring it.
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/gba/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gba/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/gba/../carbon.xml")
                      could not find file ""
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/gbc/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gbc/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/gbc/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/mame/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/mame/../carbon.xml")
                      could not find file ""
                      lvl1: System "mame-libretro" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/mame/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/mame/../carbon.xml")
                      could not find file ""
                      lvl1: System "mame-mame4all" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/mastersystem/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/mastersystem/../carbon.xml")
                      could not find file ""
                      lvl1: System "mastersystem" has no games! Ignoring it.
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/megadrive/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/megadrive/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/megadrive/../carbon.xml")
                      could not find file ""
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/n64/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/n64/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/n64/../carbon.xml")
                      could not find file ""
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/neogeo/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/neogeo/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/neogeo/../carbon.xml")
                      could not find file ""
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/nes/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/nes/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/nes/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/ngp/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/ngp/../carbon.xml")
                      could not find file ""
                      lvl1: System "ngp" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/ngpc/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/ngpc/../carbon.xml")
                      could not find file ""
                      lvl1: System "ngpc" has no games! Ignoring it.
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/pcengine/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/pcengine/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/pcengine/../carbon.xml")
                      could not find file ""
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/psx/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/psx/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/psx/../carbon.xml")
                      could not find file ""
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/retropie/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/retropie/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/retropie/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/sega32x/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/sega32x/../carbon.xml")
                      could not find file ""
                      lvl1: System "sega32x" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/segacd/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/segacd/../carbon.xml")
                      could not find file ""
                      lvl1: System "segacd" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/sg-1000/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/sg-1000/../carbon.xml")
                      could not find file ""
                      lvl1: System "sg-1000" has no games! Ignoring it.
                      lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/snes/gamelist.xml"...
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/snes/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/snes/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/vectrex/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/vectrex/../carbon.xml")
                      could not find file ""
                      lvl1: System "vectrex" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/zxspectrum/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/zxspectrum/../carbon.xml")
                      could not find file ""
                      lvl1: System "zxspectrum" has no games! Ignoring it.
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-allgames/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/auto-allgames/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-favorites/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/auto-favorites/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-lastplayed/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/auto-lastplayed/../carbon.xml")
                      could not find file ""
                      lvl1: Warning from theme "/etc/emulationstation/themes/carbon/custom-collections/theme.xml"
                      (from included file "/etc/emulationstation/themes/carbon/custom-collections/../carbon.xml")
                      could not find file ""
                      lvl2: EmulationStation cleanly shutting down.

                      pjftP 1 Reply Last reply Reply Quote 0
                      • pjftP
                        pjft @ChauncyBlack
                        last edited by

                        @chauncyblack Thanks. Could you share this log when it has frozen? I'd expect to find some log entries on joysticks disconnecting or connecting, and their IDs, towards the end before it crashes. This log seems to pertain to a session that successfully finished.

                        Similar to the ones at the beginning:

                        lvl2: Added known joystick Logitech Logitech Cordless RumblePad 2 (instance ID: 0, device index: 0)
                        lvl2: Added known joystick Logitech Logitech Cordless RumblePad 2 (instance ID: 1, device index: 1)
                        
                        1 Reply Last reply Reply Quote 0
                        • C
                          ChauncyBlack
                          last edited by

                          @pjft Will do. I had already rebooted it after the last hang, so it might be a few hours (or tomorrow) before I can get the logs from a currently hung system.

                          @Hex New thread opened per your suggestion, on the chance that my errors are totally unrelated.

                          1 Reply Last reply Reply Quote 0
                          • darkniorD
                            darknior @Hex
                            last edited by

                            @hex said in New bug/crash from 15 days with new ES release:

                            Do not connect any bluetooth devices while testing. I will not need logs as the error is an assert failing. So I can study it based on if it fails due to PS.

                            You want i launch ES without Power Saver like before and no BT Keyboard and no x360 Pad ?

                            Can you tell me if you have screensaver enabled? and of what type?

                            Yes i have the @pjft Video Screensaver.

                            Life is game, just play it !

                            1 Reply Last reply Reply Quote 0
                            • HexH
                              Hex
                              last edited by

                              Ok set the screensaver to dim and no bluetooth devices connected.

                              Sent from 20,000 leagues under the sea.

                              Powersaver Emulation station : https://github.com/hex007/EmulationStation
                              ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                              darkniorD 1 Reply Last reply Reply Quote 0
                              • darkniorD
                                darknior @Hex
                                last edited by

                                @hex ok i will do this this night, it take some hours to crash.

                                Life is game, just play it !

                                1 Reply Last reply Reply Quote 0
                                • C
                                  ChauncyBlack
                                  last edited by

                                  @pjft trailing end of new es_log.txt from hang state:
                                  lvl1: Warning from theme "/etc/emulationstation/themes/carbon/snes/theme.xml"
                                  (from included file "/etc/emulationstation/themes/carbon/snes/../carbon.xml")
                                  could not find file ""
                                  lvl1: Warning from theme "/etc/emulationstation/themes/carbon/vectrex/theme.xml"
                                  (from included file "/etc/emulationstation/themes/carbon/vectrex/../carbon.xml")
                                  could not find file ""
                                  lvl1: System "vectrex" has no games! Ignoring it.
                                  lvl1: Warning from theme "/etc/emulationstation/themes/carbon/zxspectrum/theme.xml"
                                  (from included file "/etc/emulationstation/themes/carbon/zxspectrum/../carbon.xml")
                                  could not find file ""
                                  lvl1: System "zxspectrum" has no games! Ignoring it.
                                  lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-allgames/theme.xml"
                                  (from included file "/etc/emulationstation/themes/carbon/auto-allgames/../carbon.xml")
                                  could not find file ""
                                  lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-favorites/theme.xml"
                                  (from included file "/etc/emulationstation/themes/carbon/auto-favorites/../carbon.xml")
                                  could not find file ""
                                  lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-lastplayed/theme.xml"
                                  (from included file "/etc/emulationstation/themes/carbon/auto-lastplayed/../carbon.xml")
                                  could not find file ""
                                  lvl1: Warning from theme "/etc/emulationstation/themes/carbon/custom-collections/theme.xml"
                                  (from included file "/etc/emulationstation/themes/carbon/custom-collections/../carbon.xml")
                                  could not find file ""
                                  lvl1: OptionListComponent too narrow!
                                  lvl1: OptionListComponent too narrow!
                                  lvl1: OptionListComponent too narrow!
                                  lvl1: OptionListComponent too narrow!
                                  lvl1: OptionListComponent too narrow!

                                  The es_log.txt.bak indicated a clean shutdown.

                                  pjftP 1 Reply Last reply Reply Quote 0
                                  • HexH
                                    Hex
                                    last edited by Hex

                                    @ChauncyBlack Please post your problem in another thread and do not spam this one

                                    mention me and pjft in the new thread so we can follow it.

                                    Sent from 20,000 leagues under the sea.

                                    Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                    ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                    pjftP 1 Reply Last reply Reply Quote 0
                                    • pjftP
                                      pjft @Hex
                                      last edited by

                                      @hex are we sure it's not the same problem? I asked him to post here. We can follow in a separate thread, of course.

                                      1 Reply Last reply Reply Quote 0
                                      • pjftP
                                        pjft @ChauncyBlack
                                        last edited by

                                        @chauncyblack I don't see anything there related to controllers, sadly. Let's follow up on a separate thread unless you are getting the same crash @darknior is having. Thanks.

                                        1 Reply Last reply Reply Quote 0
                                        • HexH
                                          Hex
                                          last edited by

                                          @pjft : @ChauncyBlack 's error comes from themes while @darknior 's error stems from Joysticks. Seems independent hence my request

                                          Sent from 20,000 leagues under the sea.

                                          Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                          ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                          pjftP 1 Reply Last reply Reply Quote 0
                                          • pjftP
                                            pjft @Hex
                                            last edited by

                                            @hex Oh, sorry. I'm not sure what suggests that it is a themes related issue in any way, but I might have missed something in this thread then.

                                            We'll follow up separately then.

                                            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.