Stuck at command line prompt (Terminate called after throwing an instance of ’std::out_of_range’) [SOLVED]
-
I have rPi3B+ with the newest version of retropie (I might have missed one update but can’t check the version now since I’m stuck). I have a Controlblock with two Sanwa joysticks and eight buttons each connected. Roms are on a externally powered USB HD. I have the rPi brand SD card and power source. Sound goes from audio out to a small amplifier. Now I’m trying out my nearly finished cab. Yesterday all was fine and everything seemed to work. I powered down from the system menu. Since yesterday I unplugged and replugged some of the controller wires (nothing was wrong I was just afraid the connections would come loose) and reconfigured the controllers, they worked fine in the menus. Today I got some text at the upper left of the screen when trying to start a game, this was after or before the runcommand text box. It said something about sound and mixer elements (or something like that) and any game on any system I tried refused to load. So I decided to restart to see if I would get the easy way out but no. I didn’t watch the system loading output but logged on normally. After that I got to the command prompt (instead of ES like I should have) and now the system is unresponsive to the keyboard. Above the prompt is the asciiart of the retropie logo with uptime, memory etc. At the top of the screen is this:
Terminate called after throwing an instance of ’std::out_of_range’ what():: vector:: _M_range_check: ___n (which is 0) >= this->size() (which is 0) Aborted
Any ideas? Thank you.
-
@m2306 I can help with the no keyboard, ctrl+alt+print screen+r
I had a similar issue, you are either missing some files or permissions or corrupted something.
If you can get to retro pie setup(via command line) install/update from source as that can fix some issues like this. -
@MosaicDragon thanks. I have an old Mac keyboard that doesnt have a printscreen button. I tried holding the other buttons while trying all of the possible keys that could be printscreen but no reaction.
-
-
@mitu Thank you. I have a backup of my image so maybe it’s easier to just flash the card? Do you have any thoughts what those errror messages about sound and out of range means? Just so I don’t end up in the same situation again. I powered down from the menu so I don’t see how my card could get corrupted..
-
@m2306 Those are different messages. You can play with the audio device settings in Emulationstation and get rid of the warnings appearing in the background, but for the actual error, it looks like either a permission problem somewhere or an incorrectly upgraded Emulationstation package. Of course, you can't solve the sound device warnings unless you get ES to start.
If you have a keyboard, try to connect it before the boot and see if you can log in after the error messages are shown and run the RetroPie setup script.EDIT: it might be easier to restore from backup and then re-run the update for Emulationstation to see if you get the same problem afterwards.
-
The problem was caused by the HD (where the roms are) being faulty, it keeps disconnecting. Bought a new disk.
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.