godot icon indicating copy to clipboard operation
godot copied to clipboard

Remove a non-xinput device joymapping cause game crash

Open yikescloud opened this issue 9 months ago • 0 comments

Tested versions

godot 4.2 godot 3.6

System information

windows 10

Issue description

When multi joypad connect and has a xinput joypad and a non-xinput joypad, remove the non-xinput joypad mapping then press any button on xinput-joypad cause game crash, pop a ERROR: FATAL: Index p_index = 754 is out of bounds (size() = 754). <-- the line in gamecontrollerdb and this line has the xinput mapping looks like it remove xinput and cannot find it.

Steps to reproduce

You should at least has 2 joypad to reproduce this. Use Input.remove_joy_mapping remove a non-xinput joypad mapping. then press any button/axis on xinput joypad, game should crash immediate

Minimal reproduction project (MRP)

xinput_crash.zip

yikescloud avatar Apr 27 '24 19:04 yikescloud