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
- Non-HDR color picker opens when selecting material color with HDR enabled
- Crash on EditorApplication:Internal_CallUpdateFunctions when pushing property block by index to SpriteShapeRenderer
- Depth Texture Mode "After Opaques" breaks when "Full Screen Pass Renderer Feature" is added
- The Code Previews panel is initially opened in a slightly minimized state
- Dropdown search icon is used next to the UI Builders Library search when the search has no dropdown functionality
Resolution Note (fix version 1.1-preview):
Should be fixed by https://github.com/Unity-Technologies/InputSystem/pull/1185