Unity-Technologies/InputSystem

Android weird exceptions using GestureController

hesham-akmal opened this issue · 1 comments

I'm trying to use the new InputSystem to work on android.
I'm using "Input System 1.0.0-preview.7" from the package manager, and I used the scripts from "\ExternalSampleProjects\TouchSamples\Assets\Scripts" as well as "\ExternalSampleProjects\TouchSamples\Assets\ControlMaps"

So in my project it looks like this
image

The swipe gestures work well in the editor with the mouse, however the android build gives these errors ( I collected using android studio logcat ) , what am i doing wrong?

Also code managed stripping level is disabled.

01-11 09:39:22.532 28267-28292/? E/Unity: InvalidOperationException while resolving binding 'point:PointerInput' in action map 'PointerControls (UnityEngine.InputSystem.InputActionAsset):pointer'
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
01-11 09:39:22.702 28267-28292/? E/Unity: InvalidOperationException: No binding composite with name 'PointerInput' has been registered
at UnityEngine.InputSystem.InputBindingResolver.InstantiateBindingComposite (System.String nameAndParameters) [0x00038] in :0
at UnityEngine.InputSystem.InputBindingResolver.AddActionMap (UnityEngine.InputSystem.InputActionMap map) [0x00336] in :0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.InputSystem.InputBindingResolver:AddActionMap(InputActionMap)
UnityEngine.InputSystem.InputActionMap:ResolveBindings()
UnityEngine.InputSystem.InputActionMap:ResolveBindingsIfNecessary()
UnityEngine.InputSystem.InputActionMap:Enable()
UnityEngine.InputSystem.InputActionAsset:Enable()
InputSamples.Controls.PointerControls:Enable()
InputSamples.Drawing.PointerInputManager:O
01-11 09:39:22.722 28267-28292/? E/Unity: InvalidOperationException while resolving binding 'point:PointerInput' in action map 'PointerControls (UnityEngine.InputSystem.InputActionAsset):pointer'
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
01-11 09:39:22.742 28267-28292/? E/Unity: InvalidOperationException: No binding composite with name 'PointerInput' has been registered
at UnityEngine.InputSystem.InputBindingResolver.InstantiateBindingComposite (System.String nameAndParameters) [0x00038] in :0
at UnityEngine.InputSystem.InputBindingResolver.AddActionMap (UnityEngine.InputSystem.InputActionMap map) [0x00336] in :0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.InputSystem.InputBindingResolver:AddActionMap(InputActionMap)
UnityEngine.InputSystem.InputActionMap:ResolveBindings()
UnityEngine.InputSystem.InputActionMap:ResolveBindingsIfNecessary()
UnityEngine.InputSystem.InputActionMap:Enable()
UnityEngine.InputSystem.InputActionAsset:Enable()
InputSamples.Controls.PointerControls:Enable()
InputSamples.Drawing.PointerInputManager:O
01-11 09:39:22.762 28267-28292/? E/Unity: NullReferenceException while resolving binding 'point:/touch0/press[;Touch]' in action map 'PointerControls (UnityEngine.InputSystem.InputActionAsset):pointer'
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
01-11 09:39:22.762 28267-28292/? E/Unity: NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.InputSystem.InputBindingResolver.AddActionMap (UnityEngine.InputSystem.InputActionMap map) [0x0043c] in :0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.InputSystem.InputBindingResolver:AddActionMap(InputActionMap)
UnityEngine.InputSystem.InputActionMap:ResolveBindings()
UnityEngine.InputSystem.InputActionMap:ResolveBindingsIfNecessary()
UnityEngine.InputSystem.InputActionMap:Enable()
UnityEngine.InputSystem.InputActionAsset:Enable()
InputSamples.Controls.PointerControls:Enable()
InputSamples.Drawing.PointerInputManager:OnEnable()

(Filename: <b418adefbc694aa5906fdbb45feca6a3> Line: 0)

01-11 09:39:22.782 28267-28292/? E/Unity: NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.InputSystem.InputBindingResolver.AddActionMap (UnityEngine.InputSystem.InputActionMap map) [0x008fd] in :0
at UnityEngine.InputSystem.InputActionMap.ResolveBindings () [0x0011a] in :0
at UnityEngine.InputSystem.InputActionMap.ResolveBindingsIfNecessary () [0x00010] in :0
at UnityEngine.InputSystem.InputActionMap.Enable () [0x00019] in :0
at UnityEngine.InputSystem.InputActionAsset.Enable () [0x00017] in :0
at InputSamples.Controls.PointerControls.Enable () [0x00006] in <0a2b68c402cb439aae1e382617bbd674>:0
at InputSamples.Drawing.PointerInputManager.OnEnable () [0x0000a] in <0a2b68c402cb439aae1e382617bbd674>:0

(Filename: <b418adefbc694aa5906fdbb45feca6a3> Line: 0)

Hello,

we're going to close all the github issues and will concentrate bug information in the Unity public issue tracker https://issuetracker.unity3d.com/product/unity/issues?project=116&status=1&unity_version=&view=hottest.

If you are still experiencing this issue in the latest package version please do file a bug report as described here https://unity3d.com/unity/qa/bug-reporting
For general feedback, questions and discussions you can go to https://forum.unity.com/forums/new-input-system.103/

Thank you!