How to reproduce:
1. Create and open a new project
2. Install the InputSystem Package through Window > Package Manager
3. In the Package Manager, downgrade the package to version 1.13.1 or below, through the “+“ button > Install package by name
4. In the pop-up panel, enter “com.unity.inputsystem“ in the name field and enter “1.13.1“ in the version field below
5. Press any key on the keyboard
6. Observe the Console
Expected result: Nothing is logged in the Console
Actual result: Four (two pairs of) “InvalidCastException“ errors are logged in the Console per key press and release
Reproducible in: 1.14.0 (2022.3.61f1, 6000.0.47f1, 6000.1.0b15, 6000.2.0a9)
Not reproducible in: 1.7.0, 1.13.1 (2022.3.61f1, 6000.0.47f1, 6000.1.0b15, 6000.2.0a9)
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
- The version 1.14.0 is reproducible, in that when downgrading from it, it will cause the bug to occur
- The errors will be thrown until the project is restarted or the package is updated back to 1.14.0
- Downgrading to any other prior version to 1.14.0 will cause the bug to occur as well
- The first lines of the pair of errors read:
- ”InvalidCastException: Specified cast is not valid.”
- “InvalidCastException during event processing of Editor update; resetting event buffer“