Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by EugeneKiyamov · Jan 11, 2021 at 02:14 PM · errorinputcrashtoucherror message

New Input System: ArgumentException: Event must be a state or delta state event

Hi everyone. I'm making a simple Android game using New Input System and OnScreen controls.
Build works fine until i reload the game scene. At this moment controls stop working. After getting back to menu scene and trying to reload game scene one more time the game freezes and crashes. This is what is shown when controls stop responding:

 2021.01.10 20:36:37.830 28265 28308 Error Unity ArgumentException: Event must be a state or delta state event
 2021.01.10 20:36:37.830 28265 28308 Error Unity Parameter name: eventPtr
 2021.01.10 20:36:37.830 28265 28308 Error Unity   at UnityEngine.InputSystem.InputControlExtensions.GetStatePtrFromStateEvent (UnityEngine.InputSystem.InputControl control, UnityEngine.InputSystem.LowLevel.InputEventPtr eventPtr) [0x00075] in <4f1d7098b570438ca553c2258f76742d>:0 
 2021.01.10 20:36:37.830 28265 28308 Error Unity   at UnityEngine.InputSystem.InputControlExtensions.WriteValueIntoEvent[TValue] (UnityEngine.InputSystem.InputControl`1[TValue] control, TValue value, UnityEngine.InputSystem.LowLevel.InputEventPtr eventPtr) [0x00022] in <4f1d7098b570438ca553c2258f76742d>:0 
 2021.01.10 20:36:37.830 28265 28308 Error Unity   at UnityEngine.InputSystem.OnScreen.OnScreenControl.SendValueToControl[TValue] (TValue value) [0x00089] in <4f1d7098b570438ca553c2258f76742d>:0 
 2021.01.10 20:36:37.830 28265 28308 Error Unity   at UnityEngine.InputSystem.OnScreen.OnScreenButton.OnPointerDown (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <4f1d7098b570438ca553c2258f76742d>:0 
 2021.01.10 20:36:37.830 28265 28308 Error Unity   at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerDownHandler handler, UnityEngine.EventS

And that is a part of crashing log:

 0001.01.01 00:00:00.000 -1 -1 Info  --------- beginning of crash
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime FATAL EXCEPTION: UnityMain
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Process: com.DefaultCompany.com.unity.template.mobile2D, PID: 28265
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Version '2019.4.13f1 (518737b1de84)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Build fingerprint: 'xiaomi/whyred/whyred:9/PKQ1.180904.001/V11.0.3.0.PEIMIXM:user/release-keys'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Revision: '0'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime ABI: 'arm'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Timestamp: 2021-01-10 20:37:06+0300
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime pid: 28265, tid: 28308, name: UnityMain  >>> com.DefaultCompany.com.unity.template.mobile2D <<<
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime uid: 10156
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x83e00158
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     r0  83e0011c  r1  00000047  r2  00000003  r3  00000000
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     r4  ecf134cc  r5  83e4a864  r6  dd8a2000  r7  00000000
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     r8  ddceb988  r9  ecf133bc  r10 00000002  r11 83e4a864
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     ip  ecf13cfc  sp  ce2fe840  lr  ecee6ba9  pc  ecee6734
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime 
 

I attach the log file with the full information. Seems like a huge problem with New Input System link text

,Hi everyone and sorry for a lot of log text. I'm making a simple Android game using new input system and OnScreen controls. The problem is that when i start the game on the device and reload a game scene the controls stop working. Returning back to menu scene and trying to load game scene one more time results in freezing and crashing. That is what was showing in Android Logcat when I was pressing OnScreen buttons:

 2021.01.10 20:16:12.712 26578 26623 Error Unity ArgumentException: Event must be a state or delta state event
 2021.01.10 20:16:12.712 26578 26623 Error Unity Parameter name: eventPtr
 2021.01.10 20:16:12.712 26578 26623 Error Unity   at UnityEngine.InputSystem.InputControlExtensions.GetStatePtrFromStateEvent (UnityEngine.InputSystem.InputControl control, UnityEngine.InputSystem.LowLevel.InputEventPtr eventPtr) [0x00075] in <b13c46b9cbb648928a28297ab6513fa1>:0 
 2021.01.10 20:16:12.712 26578 26623 Error Unity   at UnityEngine.InputSystem.InputControlExtensions.WriteValueIntoEvent[TValue] (UnityEngine.InputSystem.InputControl`1[TValue] control, TValue value, UnityEngine.InputSystem.LowLevel.InputEventPtr eventPtr) [0x00022] in <b13c46b9cbb648928a28297ab6513fa1>:0 
 2021.01.10 20:16:12.712 26578 26623 Error Unity   at UnityEngine.InputSystem.OnScreen.OnScreenControl.SendValueToControl[TValue] (TValue value) [0x00089] in <b13c46b9cbb648928a28297ab6513fa1>:0 
 2021.01.10 20:16:12.712 26578 26623 Error Unity   at UnityEngine.InputSystem.OnScreen.OnScreenButton.OnPointerUp (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <b13c46b9cbb648928a28297ab6513fa1>:0 
 2021.01.10 20:16:12.712 26578 26623 Error Unity   at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerUpHandler handler, UnityEngine.EventSyste
 

And that is a part of the crashing log:

 0001.01.01 00:00:00.000 -1 -1 Info  --------- beginning of crash
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime FATAL EXCEPTION: UnityMain
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Process: com.DefaultCompany.com.unity.template.mobile2D, PID: 28265
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Version '2019.4.13f1 (518737b1de84)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Build fingerprint: 'xiaomi/whyred/whyred:9/PKQ1.180904.001/V11.0.3.0.PEIMIXM:user/release-keys'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Revision: '0'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime ABI: 'arm'
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime Timestamp: 2021-01-10 20:37:06+0300
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime pid: 28265, tid: 28308, name: UnityMain  >>> com.DefaultCompany.com.unity.template.mobile2D <<<
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime uid: 10156
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x83e00158
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     r0  83e0011c  r1  00000047  r2  00000003  r3  00000000
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     r4  ecf134cc  r5  83e4a864  r6  dd8a2000  r7  00000000
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     r8  ddceb988  r9  ecf133bc  r10 00000002  r11 83e4a864
 2021.01.10 20:37:06.622 28265 28308 Error AndroidRuntime     ip  ecf13cfc  sp  ce2fe840  lr  ecee6ba9  pc  ecee6734

There is also info about the moment of freezing. I attach the log file with the complete information. Seems like a huge problem with new input system.link text

comdefaultcompanycomunitytemplatemobile2d-logcat.txt (139.7 kB)
comdefaultcompanycomunitytemplatemobile2d-logcat.txt (139.7 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Yanka33 · Nov 05, 2021 at 09:15 PM

Any updates about this issue? I am running right into it today and I've found no other post speaking about this...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by runner409 · Jan 29, 2021 at 03:49 PM

I was having the same problems with it crashing and not having controls. I tracked it down to the OnDisable method in OnScreenControl. These lines specifically:

 // We're the last on-screen control on this device. Remove the device.
                     s_OnScreenDevices[i].Destroy();
                     s_OnScreenDevices.RemoveAt(i);

I commented out the RemoveAt(i) because that is most likely causing the root IndexOutOfBoundsException that would later set up for the crashing and no input. Because you don't want to possibly reference a destroyed object, I also commented the Destroy line out. I believe that these lines do some cleanup of the components, but then once no controls are active anymore, it destroys the screen device, preventing others from functioning. Did you happen to have multiple Canvas objects in the scene? I do, and thought it might be a contributing factor, but could never find anything conclusive. I'm sure commenting out these lines will cause a problem somewhere. Probably a memory leak of some sort. But for now it at least lets me continue working. It looks like your problem is similar, and might have a similar solution in another method?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image shshwdr · Jan 07 at 09:07 AM 0
Share

How did you commented out the script? I tried to comment some code out in InputManager and it turns back when compiling and nothing build to my phone..

avatar image
1

Answer by shshwdr · Jan 07 at 08:41 AM

For anyone who might be interested.. I update input system to 1.3 and it gets fixed.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

252 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Editor CRashes Instantly after load (pls helps D:) 0 Answers

Problem while downloading Creator Kit- Beginner code 0 Answers

How do I solve my Match 3 Game coding error?, 0 Answers

Unity crashes due to: Could not load symbol mono_unity_unlock_dynamic_function_access_table64,Unity crash due to "mono_unity_unlock_dynamic_function_access_table64" 1 Answer

Object reference not set to an instance of an object (c#) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges