Search Issue Tracker
Fixed in 1.1-preview.2
Votes
0
Found in [Package]
1.0.0
Issue ID
1201866
Regression
Yes
[Input System] Old Input Module is available in "OnScreenControlsSample"sample scene from package
Steps To Reproduce:
1. Create a new project
2. Window> Package Manager > Input System > Install
3. Restart the machine and open the project again
4. Package Manager > Input System> On-Screen Controls > Import
5. Run the OnScreenControlsSample scene
Expected Result: The scene runs without any errors
Observed Result: InvalidOperationException errors thrown in the console
Reproducible On: 2020.1.0a15
Not Reproducible On: 2020.1.0a14, 2019.3.0f1
Checked On Input System Package Version: 1.0.0
Stack Trace:
InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread
UnityEngine.Object.EnsureRunningOnMainThread () (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:149)
UnityEngine.Object.GetInstanceID () (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:68)
UnityEngine.Object.IsNativeObjectAlive (UnityEngine.Object o) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:177)
UnityEngine.Object.CompareBaseObjects (UnityEngine.Object lhs, UnityEngine.Object rhs) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:135)
UnityEngine.Object.op_Inequality (UnityEngine.Object x, UnityEngine.Object y) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:425)
UnityEngine.Events.PersistentCall.ValidateTargetAssemblyType () (at /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent/UnityEvent.cs:514)
UnityEngine.Events.PersistentCall.OnAfterDeserialize () (at /Users/builduser/buildslave/unity/build/Runtime/Export/UnityEvent/UnityEvent.cs:526)
Environment: Win and Mac
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 1.1-preview.2):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1227.