• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

EmulationStation Kiosk-USB Specific Crash - Can it be Replicated?

Scheduled Pinned Locked Moved Help and Support
kiosk modeemulationstaioncrash
32 Posts 2 Posters 3.3k 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.
  • M
    mitu Global Moderator @hooperre
    last edited by 11 May 2019, 17:43

    @hooperre Maybe Esc or Enter ?

    H 2 Replies Last reply 11 May 2019, 18:50 Reply Quote 0
    • H
      hooperre @mitu
      last edited by 11 May 2019, 18:50

      @mitu I’m fairly certain I’ve tried both as I have a keyboard with it currently. No other way to see that error?

      4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

      1 Reply Last reply Reply Quote 0
      • H
        hooperre @mitu
        last edited by hooperre 5 Dec 2019, 14:35 12 May 2019, 13:35

        @mitu Confirmed. Basically freezes the system. No inputs work.

        4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

        M 1 Reply Last reply 12 May 2019, 15:08 Reply Quote 0
        • M
          mitu Global Moderator @hooperre
          last edited by 12 May 2019, 15:08

          @hooperre Try to login to the system via SSG and run killall dialog when the message is on-screen. I forgot about this option.

          1 Reply Last reply Reply Quote 0
          • H
            hooperre
            last edited by hooperre 13 May 2019, 01:14

            @mitu I basically just see the error screen above a regular terminal as if you exited EmulationStation after using the killall dialog command, but I don't see the actual error message anywhere.

            Only have collections starting with letters. es_log.txt here: https://pastebin.com/hszxWE2V.

            4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

            1 Reply Last reply Reply Quote 0
            • M
              mitu Global Moderator
              last edited by 13 May 2019, 16:25

              OK, time to bring up the big guns. If you have SSH access to the Pi, you can try to get a backtrace from the crash:

              1. Install gdb with
              apt -y install gdb
              
              1. Replace the autostart.sh command to start ES with
              gdb -batch -ex "run" -ex "bt" -ex "quit" /opt/retropie/supplementary/emulationstation/emulationstation 2>&1 > /tmp/es.log
              

              So, instead of the normal autostart.sh which contains just

              emulationstation #auto
              

              you should have

              # emulationstation #auto
              gdb -batch -ex "run" -ex "bt" -ex "quit" /opt/retropie/supplementary/emulationstation/emulationstation 2>&1 > /tmp/es.log
              

              You can find the autostart.sh file in /opt/retropie/configs/all/autostart.sh, do a backup of it just in case.

              Reboot, get the crash message, but don't stop the Pi right away, just SSH in and get the /tmp/es.log file which should contain the crash place in Emulationstation.

              H 1 Reply Last reply 13 May 2019, 17:20 Reply Quote 0
              • H
                hooperre @mitu
                last edited by hooperre 13 May 2019, 17:20

                @mitu

                My autostart.sh appears as follows:

                emulationstation #auto
                gdb -batch -ex "run" -ex "bt" -ex "quit" /opt/retropie/supplementary/emulationstation/emulationstation 2>&1 > /tmp/es.log
                

                I did have to change file permissions to 777 in the created directories above to view them. Am I missing a sudo command anywhere? (sudo gdb doesn't seem to make it work.)

                sudo nano /tmp/es.log shows nothing.

                Am dumb was missing the comment part of # emulationstation #auto on line 1.

                es.log: https://pastebin.com/BpXY8K3A

                4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                M 1 Reply Last reply 13 May 2019, 17:37 Reply Quote 0
                • M
                  mitu Global Moderator @hooperre
                  last edited by 13 May 2019, 17:37

                  @hooperre Well, that's the error right there :|. Let's see how we can solve that.

                  H 1 Reply Last reply 13 May 2019, 18:03 Reply Quote 1
                  • H
                    hooperre @mitu
                    last edited by 13 May 2019, 18:03

                    @mitu Haha hey thanks for sticking with me this far. It's all gibberish to me so hope you can come up with something! :)

                    4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                    1 Reply Last reply Reply Quote 0
                    • M
                      mitu Global Moderator
                      last edited by 20 May 2019, 16:24

                      I did some tests and I can't get a crash because of Kid mode. Would it be possible to make a zip of all the gamelists.xml and collections you have (no ROMs) and upload it somewhere ? You can easily create an archive with

                      # zip the gamelists
                      find $HOME/RetroPie/roms/ .emulationstation/gamelists/ -name gamelist.xml | xargs zip -P retropie -@ gamelist.zip
                      
                      # zip the collections
                      zip -P retropie -r collections.zip $HOME/.emulationstation/collections/
                      
                      H 1 Reply Last reply 21 May 2019, 01:23 Reply Quote 0
                      • H
                        hooperre @mitu
                        last edited by hooperre 21 May 2019, 01:23

                        @mitu got an error on the first line xargs: zip: No such file or directory

                        Second I get -bash: zip: command not found

                        4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                        M 1 Reply Last reply 21 May 2019, 02:42 Reply Quote 0
                        • M
                          mitu Global Moderator @hooperre
                          last edited by 21 May 2019, 02:42

                          @hooperre Ah, I forgot zip is not installed by default. You can install it with

                          apt -y install zip
                          

                          then the commands should work.

                          H 1 Reply Last reply 21 May 2019, 02:57 Reply Quote 0
                          • H
                            hooperre @mitu
                            last edited by 21 May 2019, 02:57

                            @mitu Okay they worked, but I'm not sure where they're located.

                            4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                            M 1 Reply Last reply 21 May 2019, 02:59 Reply Quote 0
                            • M
                              mitu Global Moderator @hooperre
                              last edited by 21 May 2019, 02:59

                              @hooperre In your home folder (/home/pi) probably.

                              1 Reply Last reply Reply Quote 0
                              • H
                                hooperre
                                last edited by hooperre 21 May 2019, 03:01

                                [removed]

                                4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mitu Global Moderator
                                  last edited by 21 May 2019, 03:06

                                  Thanks - you can delete them (they're password protected anyway). I'll give it a shot to see if I can reproduce the error and maybe finding a fix.

                                  1 Reply Last reply Reply Quote 1
                                  • M
                                    mitu Global Moderator
                                    last edited by mitu 27 May 2019, 16:34

                                    @hooperre - good news, I reproduced the crash with your files. Now I only need to find the fix. It seems the crash happens when the Emulationstation tries to populate the Recent auto-collection, if this collection is no longer displayed (disabled from the settings), the crash happens. You don't event need to have other custom collections, just the regular (All/Fav/Recent) enabled.

                                    I'll see how I can debug this further, we'll find a fix for it.

                                    H 1 Reply Last reply 29 May 2019, 04:41 Reply Quote 2
                                    • H
                                      hooperre @mitu
                                      last edited by 29 May 2019, 04:41

                                      @mitu Well done. Thanks for your help and hope it helps someone else out!

                                      4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                      M 1 Reply Last reply 12 Jun 2019, 12:16 Reply Quote 0
                                      • M
                                        mitu Global Moderator @hooperre
                                        last edited by mitu 12 Jun 2019, 12:16

                                        @hooperre A fix has been submitted and accepted, it will appear sometimes in the emulationstation package. If you want to try out the fix, you can install the emulationstation-dev package, which should contain the fix.

                                        H 1 Reply Last reply 13 Jun 2019, 14:48 Reply Quote 1
                                        • H
                                          hooperre @mitu
                                          last edited by 13 Jun 2019, 14:48

                                          @mitu Excellent! I'll give it a shot.

                                          4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received