Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

The android is crash when I using the new input system.

Discussion in 'Input System' started by watsonsong, Jul 3, 2018.

  1. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555
    The crash stack is like this:
    Code (CSharp):
    1. # UnityMain(60)
    2.  
    3. SIGSEGV(UNKNOWN_SIGSEGV)
    4.  
    5. 1 #00 pc 00311e00 /data/app-lib/com.d63.wind-1/libunity.so (AddTouchEvent(int, float, float, float, float, int, long long, int)+136) [x86]
    6. 2 #01 pc 0031287b /data/app-lib/com.d63.wind-1/libunity.so (ProcessTouchEvent(android::view::InputEvent&, int)+626) [x86]
    7. 3 #02 pc 002f86c7 /data/app-lib/com.d63.wind-1/libunity.so (JavaInput::Process()+105) [x86]
    8. 4 #03 pc 002f728a /data/app-lib/com.d63.wind-1/libunity.so (InputProcess()+84) [x86]
    9. 5 #04 pc 002f700a /data/app-lib/com.d63.wind-1/libunity.so (UnityPlayerLoop()+652) [x86]
    10. 6 #05 pc 002f9d62 /data/app-lib/com.d63.wind-1/libunity.so (nativeRender(_JNIEnv*, _jobject*)+94) [x86]
    11. 7 #06 pc 0002a9fb /system/lib/libdvm.so (dvmPlatformInvoke+79) [x86]
    12. 8 #07 pc 00087db2 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+434) [x86]
    13. 9 #08 pc 9305c11e <unknown>
    14. 10 #09 pc 0003beb2 /system/lib/libdvm.so (dvmMterpStd(Thread*)+66) [x86]
    15. 11 #10 pc 00037579 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+217) [x86]
    16. 12 #11 pc 000be427 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, char*)+759) [x86]
    17. 13 #12 pc 000be837 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+55) [x86]
    18. 14 #13 pc 0009a7c3 /system/lib/libdvm.so (interpThreadStart(void*)+995) [x86]
    19. 15 #14 pc 0000bc3c /system/lib/libc.so (__thread_entry+236) [x86]
    20. 16 #15 pc 0003e1b5 /system/lib/libc.so (__pthread_clone+69) [x86]
    21. 17 java:
    22. 18 com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    23. 19 com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    24. 20 com.unity3d.player.UnityPlayer.c(Unknown Source)
    25. 21 com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
    26. 22 android.os.MessageQueue.next(MessageQueue.java:207)
    27. 23 android.os.Looper.loop(Looper.java:123)
    28. 24 com.unity3d.player.UnityPlayer$e.run(Unknown Source)
    Code (CSharp):
    1. # main(1)
    2.  
    3. 1 com.unity3d.player.UnityPlayer.nativeInjectEvent(Native Method)
    4. 2 com.unity3d.player.UnityPlayer.nativeInjectEvent(Native Method)
    5. 3 com.unity3d.player.UnityPlayer.injectEvent(Unknown Source)
    6. 4 com.unity3d.player.UnityPlayer.onTouchEvent(Unknown Source)
    7. 5 android.view.View.dispatchTouchEvent(View.java:7706)
    8. 6 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2210)
    9. 7 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1945)
    10. 8 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
    11. 9 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
    12. 10 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
    13. 11 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
    14. 12 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
    15. 13 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)
    16. 14 com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2068)
    17. 15 com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1515)
    18. 16 android.app.Activity.dispatchTouchEvent(Activity.java:2458)
    19. 17 com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2016)
    20. 18 android.view.View.dispatchPointerEvent(View.java:7886)
    21. 19 android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3954)
    22. 20 android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3833)
    23. 21 android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3399)
    24. 22 android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3449)
    25. 23 android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3418)
    26. 24 android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3525)
    27. 25 android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3426)
    28. 26 android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3582)
    29. 27 android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3399)
    30. 28 android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3449)
    31. 29 android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3418)
    32. 30 android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3426)
    33. 31 android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3399)
    34. 32 android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5602)
    35. 33 android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5582)
    36. 34 android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5553)
    37. 35 android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5682)
    38. 36 android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    39. 37 android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
    40. 38 android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
    41. 39 android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:5655)
    42. 40 android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:5701)
    43. 41 android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    44. 42 android.view.Choreographer.doCallbacks(Choreographer.java:574)
    45. 43 android.view.Choreographer.doFrame(Choreographer.java:542)
    46. 44 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
    47. 45 android.os.Handler.handleCallback(Handler.java:733)
    48. 46 android.os.Handler.dispatchMessage(Handler.java:95)
    49. 47 android.os.Looper.loop(Looper.java:136)
    50. 48 android.app.ActivityThread.main(ActivityThread.java:5055)
    51. 49 java.lang.reflect.Method.invokeNative(Native Method)
    52. 50 java.lang.reflect.Method.invoke(Method.java:515)
    53. 51 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    54. 52 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    55. 53 dalvik.system.NativeStart.main(Native Method)
    I don't know whether is it the native part error or I am using something wrong~
     
  2. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Looks like a bug in the backend. Shouldn't crash.

    Thanks for the report and the stack dump.

    Added a GitHub ticket here and assigned it to the Android platform owner.
     
  3. NicolasLorenzi

    NicolasLorenzi

    Joined:
    Jun 25, 2020
    Posts:
    2
    Hi, I have the same problem, did you find any solution?