Genymobile / Genymobile/scrcpy
Scrcpy ERROR: Exception on thread Thread[Thread-1,5,main]
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.8k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
Could you help me with this error please?
ERROR: Exception on thread Thread[Thread-1,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:31)
at com.genymobile.scrcpy.Device.injectInputEvent(Device.java:97)
at com.genymobile.scrcpy.EventController.injectEvent(EventController.java:159)
at com.genymobile.scrcpy.EventController.injectMouse(EventController.java:129)
at com.genymobile.scrcpy.EventController.handleEvent(EventController.java:75)
at com.genymobile.scrcpy.EventController.control(EventController.java:61)
at com.genymobile.scrcpy.Server$1.run(Server.java:35)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.InputManager.injectInputEvent(InputManager.java:29)
... 7 more
Caused by: java.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3011)
at android.os.Parcel.createException(Parcel.java:2995)
at android.os.Parcel.readException(Parcel.java:2978)
at android.os.Parcel.readException(Parcel.java:2920)
at android.hardware.input.IInputManager$Stub$Proxy.injectInputEvent(IInputManager.java:1271)
... 9 more
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.input.InputManagerService.injectInputEventToTarget(InputManagerService.java:916)
at com.android.server.input.InputManagerService.injectInputEvent(InputManagerService.java:904)
at android.hardware.input.IInputManager$Stub.onTransact(IInputManager.java:603)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1249)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the stack trace entries in InputManager.java, Device.java, and EventController.java, then investigate the Android INJECT_EVENTS permission failure during mouse input. The report provides no device, Android version, reproduction steps, proposed change, or acceptance criterion, so a successful outcome cannot yet be defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100