Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrcpy crash when pressing CTRL + O or turning off screen #875

Closed
Sberla996 opened this issue Oct 21, 2019 · 1 comment
Closed

Scrcpy crash when pressing CTRL + O or turning off screen #875

Sberla996 opened this issue Oct 21, 2019 · 1 comment

Comments

@Sberla996
Copy link

When turning off the phone screen while still using it with command CTRL + O scrcpy runs into an Exception.
I just updated my OnePlus 7 Pro to Android 10, it worked fine on Android 9, I'm on last version of scrcpy.

INFO: scrcpy 1.10 https://github.com/Genymobile/scrcpy
C:\Users\HIDDEN: 1 file pushed. 2.7 MB/s (22546 bytes in 0.008s)
INFO: Initial texture: 1440x3120
[server] ERROR: Exception on thread Thread[Thread-1,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:96)
at com.genymobile.scrcpy.Device.setScreenPowerMode(Device.java:165)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:113)
at com.genymobile.scrcpy.Controller.control(Controller.java:73)
at com.genymobile.scrcpy.Server$1.run(Server.java:45)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:94)
... 5 more
Caused by: java.lang.IllegalArgumentException: displayToken must not be null
at android.view.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:1523)
... 7 more

@rom1v
Copy link
Collaborator

rom1v commented Oct 21, 2019

Duplicate of #835. Already fixed on dev branch.

@rom1v rom1v closed this as completed Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants