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

    Repeatable crash w/bluetooth error

    Scheduled Pinned Locked Moved Help and Support
    bluetoothinputmanager
    1 Posts 1 Posters 808 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.
    • B
      bmn001
      last edited by bmn001

      Pi Model or other hardware: 3 model B
      Power Supply used: 2.5A
      RetroPie Version Used 4.1.12
      Built From: Started with a 4.1.10 SD image, then used setup script to upgrade to 4.1.12
      USB Devices connected: none
      Controller used: 8Bitdo NES30 Pro, Bluetooth
      Error messages received:

      /home/pi/RetroPie-Setup/tmp/build/emulationstation/es-core/src/InputManager.cpp:67 void InputManager::addJoystickByDeviceIndex(int): Assertion 'id >= 0 && id < SDL_NumJoysticks()' failed."
      

      Log found in /dev/shm/runcommand.log (if relevant): n/a
      Guide used: none
      File: n/a
      Emulator: All
      Attachment of config files: n/a
      How to replicate the problem:

      If I exit any emulator, then power off my bluetooth controller right away - before EmulationStation has a chance to fully reload - I'm dumped to the command line with the following error:

      emulationstation: /home/pi/RetroPie-Setup/tmp/build/emulationstation/es-core/src/InputManager.cpp:67 void InputManager::addJoystickByDeviceIndex(int): Assertion 'id >= 0 && id < SDL_NumJoysticks()' failed.
      

      At this point my Pi no longer responds to keyboard input and I then have to powercycle to get things back to normal.

      I tend to run into this a lot, because when you're done with a gaming session that's what you'd do - exit the emulator and turn off the controller.

      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.