Genymobile / Genymobile/scrcpy

App misteriously stopped working at all

Open
#4,699 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
150k
Forks
13.8k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: [Windows 10 on last version released]
  • scrcpy version: [2.3.1]
  • installation method: [Windows release x64]
  • device model: Redmi Note 8 Pro
  • Android version: [android 11, MIUI flavour since it's xiaomi]

My adb logcat is borderline unusable, tons of stuff on it and i wouldn't have any idea how to find what i need.

My brother broke is phone and ripped the flat ribbon cable that connects the display so now the phone is display-less.
Since it has usb debugging enabled i decided to use your app to see the screen and do stuff on it but after a few tries on connecting the app straight up stopped showing the screen, so recap at first it worked now no matter if i reboot or do anything i can't see the screen.
All i see is either a green screen:

immagine

or a full black screen.

Sometimes i get this random error when trying to click on the 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:226)
        at com.genymobile.scrcpy.Device.injectEvent(Device.java:230)
        at com.genymobile.scrcpy.Controller.injectTouch(Controller.java:323)
        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:923)
Caused by: java.lang.RuntimeException: android.os.DeadSystemException
        at android.hardware.input.InputManager.injectInputEvent(InputManager.java:909)
        ... 10 more
Caused by: android.os.DeadSystemException
        ... 11 more

what i need is just for the screen mirroring to go back to work so i can blindly connect the usb, see the screen, disconnect, connect a mouse, go to the settings and so forth until i can see the usb debugging input and enable it, then i'm set.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported adb logcat output and the stack trace through InputManager.java, Device.java, and Controller.java. Reproduce the green or black screen on the listed Windows, Redmi Note 8 Pro, Android 11, and scrcpy 2.3.1 setup, then verify that screen mirroring and input work again.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.