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 crashes when 8bitdo wireless adaptor connected with no controller

    Scheduled Pinned Locked Moved Help and Support
    retropie erroremulationstationretropie
    4 Posts 2 Posters 679 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.
    • H
      HappySpaceInvdr
      last edited by

      Posting this here to see if its just me before reporting on GitHub...

      Summary

      Emulationstation crashes with the following error if an 8bitdo USB adaptor is connected but the controller you usually use with it is powered off.

      Retropie version: 8611c7cc42bf14336607f533f20f1ff2c7e91f2d
      Emulationstation version: V2.10.2RP

      Pre-requisite before testing

      1. Start Emulationstation with no controllers attached
      2. Emulationstation displays the “no controllers” screen.
      3. Plug in the 8Bitdo wireless USB adaptor
      4. Switch 8Bitdo controller (e.g. SN30 pro) on using Start + A
      5. Press the sync button on controller and adaptor to sync
      6. Confirm joypad working wirelessly in Emulationstation.

      Steps to reproduce the error

      1. Start Raspberry Pi 4 with USB adaptor connected and controller off

      Expected result:

      Either EmulationStation should either display the “no controllers” screen, or proceed to the main menu.

      Actual Result:

      Emulationstation crashes with the error:

      emulationstation: /home/pi/RetroPie-Setup/tmp/build/emulationstation/es-core/src/InputManager.cpp:87: void InputManager::addJoystickByDeviceIndex(int): Assertion `id >= 0 && id < SDL_NumJoysticks()' failed.
      Aborted
      
      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Emulationstation crashes with the error:
        ...

        This happens if the controller disconnects immediately after connect, during the initial input setup. If you look in the system log with dmesg, is the adapter providing a stable connection - without disconnecting and reconnecting ?

        Either EmulationStation should either display the “no controllers” screen, or proceed to the main menu.

        The 'no controller' page appears if no controllers are detected, but it looks like the adapter advertises itself even if it has no connection. Not ideal, but it shouldn't crash EmulationStation.

        H 1 Reply Last reply Reply Quote 1
        • H
          HappySpaceInvdr @mitu
          last edited by

          @mitu said in Emulationstation crashes when 8bitdo wireless adaptor connected with no controller:

          If you look in the system log with dmesg, is the adapter providing a stable connection - without disconnecting and reconnecting ?

          Far from it... and thanks for the tip! From dmesg I can see that the adaptor connects and disconnects in a loop until you switch the controller on. :-/

          I think I may try my luck using Bluetooth instead!

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

            See if the adapter has any firmware upgrades that fixes that. You never know.

            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.