Emulationstation crashes when 8bitdo wireless adaptor connected with no controller
-
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
- Start Emulationstation with no controllers attached
- Emulationstation displays the “no controllers” screen.
- Plug in the 8Bitdo wireless USB adaptor
- Switch 8Bitdo controller (e.g. SN30 pro) on using Start + A
- Press the sync button on controller and adaptor to sync
- Confirm joypad working wirelessly in Emulationstation.
Steps to reproduce the error
- 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
-
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.
-
@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!
-
See if the adapter has any firmware upgrades that fixes that. You never know.
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.