Search Issue Tracker
Fixed in 1.1-preview
Votes
1
Found in [Package]
2019.3
2019.3.11f1
2020.1
2020.2
Issue ID
1242406
Regression
No
Crash on executing code with an Input System call, which doesn't crash when executing it with a legacy input system call
Reproduction steps:
1. Open the attached project ("1242406.zip") or import the attached "CrashScene.unitypackage" to any project and install Input System through Package Manager
2. Open "Game" Scene
3. Enter Play mode and keep clicking "UpArrow" button
4. If the crash didn't happen, repeat step 3
Reproducible with: 2019.3.0b5, 2019.3.16f1, 2020.1.0f1, 2020.2.0a19 (Input System 0.9.1-preview, 1.0.0)
Not reproducible with: 2019.1.14f1, 2019.2.21f1
Couldn't test with 2019.3.0a1-2019.3.0b4 due to this (and other) errors:
"Library\PackageCache\com.unity.inputsystem@1.0.0\InputSystem\Editor\Internal\EditorHelpers.cs(52,27): error CS0117: 'AssetDatabase' does not contain a definition for 'MakeEditable'"
Notes:
- The crash happens when entering or exiting Play mode or when placing the blocks in Play mode, stacktraces vary with every crash
- Sometimes assertion failures and error like these show up:
1. Assertion failed on expression: 'm_InstanceID != InstanceID_None'
2. Failed to erase object from ms_IDToPointer. It was not part of the set.
3. Transform has 'Renderer::kSystemParentHierarchy' hierarchy interests present when destroying the hierarchy. Interests must be deregistered in Deactivate.
- Disabling "Grid", "GridFactory" and "DoubleBlockFactory" GameObjects make the crash reproduce faster, but I'm not sure if it's the exact same crash (after comparing editor logs, seems similar)
- Pressing "Space" button executes the same code, but is called through legacy input system in Update method of DoubleBlockController script, doesn't crash. If that same code is called using Input System, it crashes
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Element name field has no character limit in UI Builder
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
- Animator window Eye button on click visual does not cover the whole area of the button when clicked
Resolution Note (fix version 1.1-preview):
Should be fixed by https://github.com/Unity-Technologies/InputSystem/pull/1185