Search Unity

Bug Unity crashes every time when I have xbox one controller connected

Discussion in 'Editor & General Support' started by gft-ai, Aug 2, 2021.

  1. gft-ai

    gft-ai

    Joined:
    Jan 12, 2021
    Posts:
    44
    Hi,

    Unity crashes on launch if I have my xbox one controller connected (either via bluetooth or cable). It will also immediately crash if I connect the controller after Unity has been launched.

    I am using the beta version of unity: 2021.2.0b5
    I have also tried with a bunch of different versions and every one of the crashes except only the versions with LTS.

    I am not using LTS versions because I need packages that are not available in those. Is this something that can be fixed?

    The crash log:
    #0 0x0056435073880c in burst_signal_handler(int, siginfo_t*, void*)
    #1 0x007f6861c0a3c0 in funlockfile
    #2 0x007f6861b8e675 in __nss_database_lookup
    #3 0x00564350c187e1 in GetGameControllerMapping(void*)
    #4 0x00564350c1037e in SDLGamepadDeviceDescriptor::SDLGamepadDeviceDescriptor(int)
    #5 0x00564350c0e114 in ReportNewSDLController(void*)
    #6 0x00564350c0f7c1 in InputProcess()
    #7 0x00564351caa945 in MainMessageIteration(void*)
    #8 0x007f686213204e in g_main_context_dispatch
    #9 0x007f6862132400 in g_main_context_dispatch
    #10 0x007f68621326f3 in g_main_loop_run
    #11 0x007f68627c737d in gtk_main
    #12 0x00564351ca9c7c in main
    #13 0x007f6861a2a0b3 in __libc_start_main
    #14 0x0056434ff0d029 in _start
     
  2. april_4_short

    april_4_short

    Joined:
    Jul 19, 2021
    Posts:
    489
    Your OS, and Computer, what are they?
     
  3. gft-ai

    gft-ai

    Joined:
    Jan 12, 2021
    Posts:
    44
    Ah apologies! forgot to add that in.

    OS: Ubuntu 20.04.2 LTS (but I want to build apps across different platforms)
    PC: Tower PC (CPU: AMD® Ryzen 7 2700x eight-core processor, GPU: GeForce RTX 2060, RAM: 16GB)
    Controller: Xbox one wireless controller
    Connection with the PC: Tried bluetooth (with a dongle (TP-Link UB4A)) or USB-C (controller side) to USB2/3 (PC side)
     
  4. april_4_short

    april_4_short

    Joined:
    Jul 19, 2021
    Posts:
    489
    The good news and the bad news.

    You've almost certainly narrowed it down to the way Unity's taking and handling whatever your OS and motherboard provide in terms of Bluetooth and USB connectivity.

    The bad news... these sorts of issues take forever for Unity to fix, especially if you're using something "exotic", like Linux or MacOS.

    If you're using the old input system, try using the new one, and vice versa.

    If you've got anything running that also taxes the South Bridge, turn that off or kill those operations, as best as you can.

    If you've got strong anti-virus stuff protecting your ports, see if you can make explicit permissions for the controller.
     
  5. gft-ai

    gft-ai

    Joined:
    Jan 12, 2021
    Posts:
    44
    Thank you for your answer.

    I did try before posting this thread changing the input systems (old, new and both) none of them works.

    I think I will just use the LTS version and figure out what to do with the packages I have been using in the other version.

    Again, thank you!
     
  6. MarsCitizen_1

    MarsCitizen_1

    Joined:
    Jun 2, 2016
    Posts:
    20
    Same issue here. Same OS, Unity Editor 2021.2.7. Whether via wired-USB or wireless (dongle).
    Can be reproduced every attempt.

    I reported the bug with more details, but I don't see it in their tracker yet.
     
  7. rbarbosa

    rbarbosa

    Joined:
    Jun 20, 2012
    Posts:
    61
    Same issue here, but I can say that it has nothing to do with bluetooth. I plugged it in via USB and had the same exact issue on 2 different computers.

    I've tried Xbox One and Xbox Series controllers.

    I have a desktop Ryzen 2700X PC with Nvidia GTX 1080 running Fedora 35.

    The same occurs on my i5 laptop, also running Fedora 35.

    I haven't tried a dongle-based connection but both USB and BT both experience the same failure.

    Sucks that Unity hasn't provided any feedback in this forum thread.

    For what it's worth, my project works in Linux with the old input manager, however, when I do a build for Windows none of the input axes match across OS platforms. Only the left thumbstick is the same. The right thumbstick in Windows behaves like the triggers in Linux. It's a nightmare. That's why I was switching to the new input system in the first place (which is what caused the crash for me)
     
  8. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    Same happens with Windows 10, Unity 2021.1.16f1, Corsair's iCUE Nexus USB device. How to solve problem then?

    When Nintendo Switch controller connected to PC via bluetooth, unity immediately crashes.
     
    Last edited: Jul 14, 2022