Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2021.2.X

Votes

3

Found in

2021.1.0a1

2021.1.3f1

2021.2

2022.1

Issue ID

1329301

Regression

Yes

[Linux] Crash on GetGameControllerMapping when plugging in the Magic-NS wireless controller adapter in XInput mode

Linux

-

Reproduction steps:
1. Open a new or an existing project
2. Go to Edit > Project Settings... > Player
3. Change the Active Input Handling to Input System Package (New)
4. Plug in the Magic-NS wireless controller adapter in XInput mode

First 5 lines of the stack trace:
#0 0x00563cc9b0ddec in burst_signal_handler(int, siginfo_t*, void*)
#1 0x007f2227140980 in funlockfile
#2 0x007f2226ecb4e1 in __nss_passwd_lookup
#3 0x00563cc9ff1361 in GetGameControllerMapping(void*)
#4 0x00563cc9fe907e in SDLGamepadDeviceDescriptor::SDLGamepadDeviceDescriptor(int)

Reproducible with: 2021.1.0a1, 2021.1.17f1, 2021.2.0b7, 2022.1.0a5
Not reproducible with: 2019.4.29f1, 2020.3.16f1

Notes:
- Not reproducible on Windows
- Could not test on macOS due to the Magic-NS adapter not working on that OS
- From a separate report, it seems that the crash also occurs on Ubuntu 21.04 (and Arch Linux) by plugging in a regular Xbox controller

  1. Resolution Note (fix version 2022.1):

    Fixed in 2022.2.0a1

  2. Resolution Note (fix version 2022.1):

    Fixed in version 2022.1.0b13

  3. Resolution Note (fix version 2021.2):

    Fixed in version 2021.2.17f1

Comments (3)

  1. Bennidhamma2

    Feb 27, 2022 02:22

    stack trace:

    Obtained 15 stack frames.
    #0 0x007fdbadf4d520 in __sigaction
    #1 0x007fdbae0a6f3d in __nss_database_lookup
    #2 0x00556817b75591 in GetGameControllerMapping(void*)
    #3 0x00556817b6d28e in SDLGamepadDeviceDescriptor::SDLGamepadDeviceDescriptor(int)
    #4 0x00556817b6af24 in ReportNewSDLController(void*)
    #5 0x00556817b6c631 in InputProcess()
    #6 0x00556818c6a1a3 in MainMessageIteration(void*)
    #7 0x007fdbae60d7c4 in g_main_context_dispatch
    #8 0x007fdbae660f08 in g_io_channel_new_file
    #9 0x007fdbae60ce43 in g_main_loop_run
    #10 0x007fdbaec97b6d in gtk_main
    #11 0x00556818c694ac in main
    #12 0x007fdbadf34fd0 in __libc_init_first
    #13 0x007fdbadf3507d in __libc_start_main
    #14 0x00556816e13029 in _start

  2. Bennidhamma2

    Feb 27, 2022 02:09

    I too am seeing this in 2022.1.0b7

  3. ronJohnJr

    Jan 27, 2022 02:35

    Still a problem in 2022

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.