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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 1.1-preview):
Should be fixed by https://github.com/Unity-Technologies/InputSystem/pull/1185