Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.93k stars 10.48k forks source link

Phone reboots when trying to run #4166

Open eabery opened 1 year ago

eabery commented 1 year ago

Environment

Restarts phone when trying to run scrcpy

[server] ERROR: Could not invoke method java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:37) at com.genymobile.scrcpy.Device.injectEvent(Device.java:220) at com.genymobile.scrcpy.Device.injectEvent(Device.java:224) at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:324) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:138) at com.genymobile.scrcpy.Controller.control(Controller.java:83) at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:91) at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.RuntimeException: android.os.DeadSystemException at android.hardware.input.InputManager.injectInputEvent(InputManager.java:882) ... 10 more Caused by: android.os.DeadSystemException ... 11 more

rom1v commented 1 year ago

The system crashes, it looks like a bug in the system ROM.

sevensevenmi commented 1 year ago

[server] INFO: Device: [Xiaomi] Xiaomi M2011K2C (Android 13) INFO: Renderer: direct3d INFO: Texture: 1080x2400 [server] ERROR: Could not invoke method java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:37) at com.genymobile.scrcpy.Device.injectEvent(Device.java:225) at com.genymobile.scrcpy.Device.injectEvent(Device.java:229) at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:324) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:138) at com.genymobile.scrcpy.Controller.control(Controller.java:83) at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:91) at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4) at java.lang.Thread.run(Thread.java:1012) Caused by: android.os.DeadSystemRuntimeException: android.os.DeadSystemException at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1155) at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1182) ... 10 more Caused by: android.os.DeadSystemException ... 12 more [server] ERROR: Could not invoke method java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:37) at com.genymobile.scrcpy.Device.injectEvent(Device.java:225) at com.genymobile.scrcpy.Device.injectEvent(Device.java:229) at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:324) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:138) at com.genymobile.scrcpy.Controller.control(Controller.java:83) at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:91) at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4) at java.lang.Thread.run(Thread.java:1012) Caused by: android.os.DeadSystemRuntimeException: android.os.DeadSystemException at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1155) at android.hardware.input.InputManager.injectInputEvent(InputManager.java:1182) ... 10 more Caused by: android.os.DeadSystemException ... 12 more

rom1v commented 1 year ago

Your device system crashes.

Did you enable "Security settings"? https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#mouse-and-keyboard-do-not-work

sevensevenmi commented 1 year ago

I think it's a bug in my system ROM, and I did Brushing, which seems to have solved the problem