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

    Error after updating retropie-setup to 4.4.9 (a161774a)

    Scheduled Pinned Locked Moved Help and Support
    retropie-setuperrorupdate
    70 Posts 7 Posters 5.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.
    • D
      DarishZone Banned
      last edited by

      Excuse me, seems last update broken joy2key, is there a fix for that? Thx in advance

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

        @DarishZone Update your RetroPie script - what version do you have ?

        D 1 Reply Last reply Reply Quote 0
        • D
          DarishZone Banned @mitu
          last edited by DarishZone

          @mitu said in Error after updating retropie-setup to 4.4.9 (a161774a):

          @DarishZone Update your RetroPie script - what version do you have ?

          4.4.9

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

            @DarishZone You'll have to be more exact - what problem are you encountering and what's the revision next to the 4.4.9 version ?

            D 1 Reply Last reply Reply Quote 0
            • D
              DarishZone Banned @mitu
              last edited by

              @mitu said in Error after updating retropie-setup to 4.4.9 (a161774a):

              @DarishZone You'll have to be more exact - what problem are you encountering and what's the revision next to the 4.4.9 version ?

              Yeah, it's a text random error during loading screen or black screen (example access retropie setup screen), it seems referring to joy2key, impossible to reproduce but maybe message is stored somewhere on logs.
              I've just update to last version, which is 4.4.9

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

                @DarishZone Do you have any problems navigating the setup with your joystick/gamepad ?

                D 1 Reply Last reply Reply Quote 0
                • D
                  DarishZone Banned @mitu
                  last edited by

                  @mitu said in Error after updating retropie-setup to 4.4.9 (a161774a):

                  @DarishZone Do you have any problems navigating the setup with your joystick/gamepad ?

                  Gamepad works, i don't think is big deal

                  1 Reply Last reply Reply Quote 0
                  • D
                    DarishZone Banned
                    last edited by

                    Also got this error, even if i think is not releated to joy2key but a python script i use for bgm (guessing)
                    Could be useful for someone
                    IMG_20190315_143438.jpg

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

                      @DarishZone The exception message from the picture was mentioned by @Efriim also and we've talked about this in the topic. If you have another error message you see, please add some info about it.

                      @psyke83 I did some small tests, it appears in the close_fdsmethod raises the OSError exception, most likely because of the closure of an already closed fd and it's probably during the TERM signal handler (hence the threading module reference).
                      I re-installed a 4.4 image, updated RP (including the fix from this topic) and the OS only and get this error after the 1st joy2key invocation with just the one SNES iBuffalo controller connected and configured.

                      P D 2 Replies Last reply Reply Quote 0
                      • P
                        psyke83 Global Moderator @mitu
                        last edited by

                        @mitu said in Error after updating retropie-setup to 4.4.9 (a161774a):

                        @DarishZone The exception message from the picture was mentioned by @Efriim also and we've talked about this in the topic. If you have another error message you see, please add some info about it.

                        @psyke83 I did some small tests, it appears in the close_fdsmethod raises the OSError exception, most likely because of the closure of an already closed fd and it's probably during the TERM signal handler (hence the threading module reference).
                        I re-installed a 4.4 image, updated RP (including the fix from this topic) and the OS only and get this error after the 1st joy2key invocation with just the one SNES iBuffalo controller connected and configured.

                        Thanks! I finally managed to reproduce the error, but only by running multiple concurrent instances of joy2key. Regardless, I think that this PR should solve the problem: https://github.com/RetroPie/RetroPie-Setup/pull/2655

                        Please test and let me know if this solves the issue to your satisfaction.

                        P mituM 2 Replies Last reply Reply Quote 1
                        • P
                          psyke83 Global Moderator @psyke83
                          last edited by psyke83

                          @psyke83 said in Error after updating retropie-setup to 4.4.9 (a161774a):

                          @mitu said in Error after updating retropie-setup to 4.4.9 (a161774a):

                          @DarishZone The exception message from the picture was mentioned by @Efriim also and we've talked about this in the topic. If you have another error message you see, please add some info about it.

                          @psyke83 I did some small tests, it appears in the close_fdsmethod raises the OSError exception, most likely because of the closure of an already closed fd and it's probably during the TERM signal handler (hence the threading module reference).
                          I re-installed a 4.4 image, updated RP (including the fix from this topic) and the OS only and get this error after the 1st joy2key invocation with just the one SNES iBuffalo controller connected and configured.

                          Thanks! I finally managed to reproduce the error, but only by running multiple concurrent instances of joy2key. Regardless, I think that this PR should solve the problem: https://github.com/RetroPie/RetroPie-Setup/pull/2655

                          Please test and let me know if this solves the issue to your satisfaction.

                          In case it helps, this is the script I used to reproduce the error:

                          #!/bin/bash
                          SLEEP_TIME=$1
                          [[ -z "$SLEEP_TIME" ]] && SLEEP_TIME=1
                          
                          function joy2keystart()
                          {
                              __joy2key_ppid=$$ ~/RetroPie-Setup/scriptmodules/supplementary/runcommand/joy2key.py /dev/input/jsX kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 &
                          }
                          
                          function joy2keystop()
                          {
                              kill $(pgrep -f joy2key.py) 2>/dev/null
                          }
                          
                          function joy2keytoggle()
                          {
                              joy2keystart
                              sleep "$SLEEP_TIME"
                              joy2keystop
                          }
                          
                          while true; do
                              echo "loop"
                              joy2keytoggle & joy2keytoggle & joy2keytoggle & joy2keytoggle & joy2keytoggle
                          done
                          

                          Note that my i7 laptop required around 3-5 concurrent instances to trigger the warning, but the Pi could do reproduce it with just two.

                          1 Reply Last reply Reply Quote 0
                          • D
                            DarishZone Banned @mitu
                            last edited by

                            @mitu said in Error after updating retropie-setup to 4.4.9 (a161774a):

                            @DarishZone The exception message from the picture was mentioned by @Efriim also and we've talked about this in the topic. If you have another error message you see, please add some info about it.

                            @psyke83 I did some small tests, it appears in the close_fdsmethod raises the OSError exception, most likely because of the closure of an already closed fd and it's probably during the TERM signal handler (hence the threading module reference).
                            I re-installed a 4.4 image, updated RP (including the fix from this topic) and the OS only and get this error after the 1st joy2key invocation with just the one SNES iBuffalo controller connected and configured.

                            My bad, probably i missed the part of topic where you talk about it.
                            Ive got only this and the joy2key error at the moment.

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

                              @psyke83 said in Error after updating retropie-setup to 4.4.9 (a161774a):

                              Please test and let me know if this solves the issue to your satisfaction.

                              That seems to work - there's no more exception shown on the terminal background. Thank you.

                              P 1 Reply Last reply Reply Quote 0
                              • EfriimE
                                Efriim
                                last edited by

                                Yay. So the fix ended up being on line 134? You don't have to explain, I wouldn't understand.

                                Unrelated, is there any chance that the runcommand button response will get fixed?
                                To break it down, it only responds to an input right after the pop-up/launching.png disappears. Making the delay entirely pointless, and just being difficult to invoke.

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  psyke83 Global Moderator @mitu
                                  last edited by

                                  @mitu said in Error after updating retropie-setup to 4.4.9 (a161774a):

                                  @psyke83 said in Error after updating retropie-setup to 4.4.9 (a161774a):

                                  Please test and let me know if this solves the issue to your satisfaction.

                                  That seems to work - there's no more exception shown on the terminal background. Thank you.

                                  Apologies - can you test this PR instead of the previous one? https://github.com/RetroPie/RetroPie-Setup/pull/2656

                                  I think that this is a far more reliable solution that should hopefully clear up all remaining issues, but it needs testing to be sure I didn't overlook something. Thanks.

                                  EfriimE 1 Reply Last reply Reply Quote 0
                                  • EfriimE
                                    Efriim @psyke83
                                    last edited by

                                    @psyke83
                                    I don't know, I managed to copy the edit on the first one with only a few lines. Is there an easier way to test it?

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

                                      @Efriim You'll need to use git:

                                      cd $HOME/RetroPie-Setup
                                      git fetch origin pull/2656/head:test-branch
                                      git checkout test-branch
                                      # install the runcommand to copy files into place
                                      sudo ./retropie_packages.sh runcommand
                                      
                                      # test. To go back to normal repo:
                                      git checkout master
                                      

                                      EDIT: @psyke83 seems to work fine, the exception is - again - gone and I can see a daemonized joy2key in the list of processes. This is on the same PI, I don't have access to an Ubuntu/PC install at hand.
                                      Did a few runs calling the setup script and also running various modules (esthemes, runcommand config, etc.) and didn't catch any obvious errors.

                                      EfriimE 1 Reply Last reply Reply Quote 0
                                      • EfriimE
                                        Efriim @mitu
                                        last edited by

                                        @mitu
                                        I never knew that, It will take some more to learn it.
                                        Thanks for telling me how to set it to normal.
                                        retropie_packages could not find that module, so I installed it using the settings.

                                        And I no longer have the joy2key error, the python2.7 error was harder to get to.

                                        Using the script to reproduce the errors. Did reproduce the error on the second loop.

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

                                          @Efriim said in Error after updating retropie-setup to 4.4.9 (a161774a):

                                          retropie_packages could not find that module, so I installed it using the settings.

                                          Yes, the command is a bit wrong

                                          sudo ./retropie_packages.sh runcommand
                                          

                                          should work instead.

                                          EfriimE 1 Reply Last reply Reply Quote 0
                                          • EfriimE
                                            Efriim @mitu
                                            last edited by Efriim

                                            @mitu
                                            Oh I see,
                                            quick question
                                            I downloaded like a 600mb repository
                                            450mb for ffmpeg.
                                            I know my build will fail because I don't know how, but about how much free space will I need in order to make?
                                            If I have ffmpeg already installed should I be able to use that instead?
                                            And
                                            It appears I ran out of virtual memory first.
                                            But that wasn't my only problem, it wanted to compile for x-11vulkan and I didn't have any build target.

                                            mituM 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.