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

    "_M_construct null not valid" upon bootup, started after a year of no issues.

    Scheduled Pinned Locked Moved Help and Support
    error on loadboot crash
    17 Posts 5 Posters 1.9k 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.
    • B
      BazzCatt
      last edited by

      Hi, all has anyone come across a way to fix this?

      I've used a Pi 3B for over a year, with no issues, updating regularly; it reports using Linux 4.19.42-v7+. I have just updated all core binaries, and most other binaries - the last update I did was over 1 month ago - and I also did something else: I've always used EmulationStation dev version, updating it from source. Today, I noticed that it had a binary, too, so I updated from that.

      I rebooted, and now, after the Retropie logo - probably just when ES is supposed to start loading - the Pi throws out this:

      terminate called after throwing an instance of 'std::logic_error'
        what():  basic_string::_M_construct null not valid
      Aborted
      

      I cannot do anything else afterwards - I see the prompt, pi@retropie:~ $, with a blinking cursor, but it does not react to any key being pressed...

      I can log on to Retropie Manager, and I can browse the Retropie bios / configs / roms / splashcreens directories via the network connections in Windows...

      Has anyone come across this error?

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

        That's weird, the experimental section shouldn't have binary packages built by default, though I see the option now for emulationstation-dev and other package. If I install from binary, then I get the same error - but not if I install from source.

        My advice is to install the main emulationstation package back - there's little difference now between -dev and the stable versions - or re-install from source the -dev package.

        BuZzB 1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators @mitu
          last edited by BuZz

          @mitu I have recently built binaries for all experimental packages. I didn't mention it here sorry. I think I mentioned it on twitter. I did this due to long compile times for MAME etc.

          Not sure why ES Dev binary is broken. Will check.

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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

            @BuZz said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

            Not sure why ES Dev binary is broken. Will check.

            Looks like an ABI mis-match. Well, that means lr-mess is installable from binary :).

            BuZzB 1 Reply Last reply Reply Quote 0
            • BuZzB
              BuZz administrators @mitu
              last edited by

              @mitu if there's is an abi mismatch it may affect that too.. I crosscompiled so I'll check/fix/rebuild everything. Sorry about this.

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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

                @BuZz It might be something else, I'll try to run through a debugger to see where it stops.

                BuZzB 1 Reply Last reply Reply Quote 1
                • BuZzB
                  BuZz administrators @mitu
                  last edited by

                  @mitu thanks.

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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

                    It's crashing when trying to allocate a string, somewhere in the standard C++ lib

                    ...
                    #6  0x76a2a4d4 in std::__throw_logic_error(char const*) () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
                    No symbol table info available.
                    #7  0x0006b1f8 in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag) [clone .isra.43] ()
                    No symbol table info available.
                    #8  0x0006b2b0 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) [clone .isra.40] ()
                    No symbol table info available.
                    #9  0x00060e48 in main ()
                    

                    I don't see an updates in Raspbian since the build date (27.05) that could affect the standard libraries, only some ffmpeg libs.

                    1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators
                      last edited by BuZz

                      Maybe my libraries are mismatched on my cross compiler since other recent updates. Will check over the weekend.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      1 Reply Last reply Reply Quote 0
                      • BuZzB
                        BuZz administrators
                        last edited by

                        I rebuilt it and I think it's ok now. Not sure what happened. Please can someone test ?

                        As @mitu said though, the stable version was recently updated so probably not a great need for the Dev version.

                        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                        1 Reply Last reply Reply Quote 1
                        • B
                          BazzCatt
                          last edited by BazzCatt

                          I'm kind of hesitant to check the binary again, but what I did to fix that was:

                          • run retropie manager (always enable that! :D) from a windows browser
                          • disable booting to emu station in configuration
                          • reboot the pi to prompt - it did not hang
                          • uninstall es dev, reinstall regular binary

                          That fixed it. I also tried es-dev from the source, and the pi is running correctly with it.

                          (By the way, I noticed that there are now so many binaries available in the experimental section that perhaps its menu could use the addition of the "update from binary" option, like the other menus do!)

                          BuZzB W 3 Replies Last reply Reply Quote 1
                          • BuZzB
                            BuZz administrators @BazzCatt
                            last edited by

                            @BazzCatt good spot with the update from binary option. I'll add it.

                            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                            1 Reply Last reply Reply Quote 0
                            • W
                              WhackAMole @BazzCatt
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • W
                                WhackAMole @BazzCatt
                                last edited by

                                @BazzCatt said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

                                I'm kind of hesitant to check the binary again, but what I did to fix that was:

                                • run retropie manager (always enable that! :D) from a windows browser
                                • disable booting to emu station in configuration
                                • reboot the pi to prompt - it did not hang
                                • uninstall es dev, reinstall regular binary

                                That fixed it. I also tried es-dev from the source, and the pi is running correctly with it.

                                (By the way, I noticed that there are now so many binaries available in the experimental section that perhaps its menu could use the addition of the "update from binary" option, like the other menus do!)

                                I'm getting this problem too and this is the only thread I can find on it : /

                                Any chance someone could translate this fix in to layman's for a newbie?

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

                                  @WhackAMole said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

                                  Any chance someone could translate this fix in to layman's for a newbie?

                                  The only applicable advice in the above topic is

                                  uninstall es dev, reinstall regular binary

                                  Try re-installing your EmulationStation package, either from binary or from source.

                                  G 1 Reply Last reply Reply Quote 0
                                  • G
                                    goferffxi @mitu
                                    last edited by

                                    @mitu said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

                                    @WhackAMole said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

                                    Any chance someone could translate this fix in to layman's for a newbie?

                                    The only applicable advice in the above topic is

                                    uninstall es dev, reinstall regular binary

                                    Try re-installing your EmulationStation package, either from binary or from source.

                                    So,, I tried the advice here from both Binary and source. I even removed all exp packages just to ensure it wasn't anything in there. The error still appears and now i've decided to attempt a complete rebuild from Raspbian up. I am also increasing SD capacity from 16gb to 32 GB to ensure space isn't an issue.

                                    G 1 Reply Last reply Reply Quote 0
                                    • G
                                      goferffxi @goferffxi
                                      last edited by

                                      @goferffxi said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

                                      @mitu said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

                                      @WhackAMole said in "_M_construct null not valid" upon bootup, started after a year of no issues.:

                                      Any chance someone could translate this fix in to layman's for a newbie?

                                      The only applicable advice in the above topic is

                                      uninstall es dev, reinstall regular binary

                                      Try re-installing your EmulationStation package, either from binary or from source.

                                      So,, I tried the advice here from both Binary and source. I even removed all exp packages just to ensure it wasn't anything in there. The error still appears and now i've decided to attempt a complete rebuild from Raspbian up. I am also increasing SD capacity from 16gb to 32 GB to ensure space isn't an issue.
                                      So, I did a basic install and then removed all main packages then proceeded to reinstall the main packages from source. See what happens there

                                      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.