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

java.lang.reflect.InvocationTargetException on Android 12 preview. #2179

Closed
ssangjin opened this issue Mar 8, 2021 · 2 comments
Closed

java.lang.reflect.InvocationTargetException on Android 12 preview. #2179

ssangjin opened this issue Mar 8, 2021 · 2 comments

Comments

@ssangjin
Copy link

ssangjin commented Mar 8, 2021

I ran scrcpy on Pixel5(Android 12 preview installed) and I got exception below.
Android 12 Buildno : SPP1.210122.022

$ scrcpy
2021-03-08 15:38:53.221 scrcpy[85124:20049204] INFO: scrcpy 1.17 https://github.com/Genymobile/scrcpy
/usr/local/Cellar/scrcpy/1.17_1/share/scrcpy/scrcpy-server: 1 file pushed. 7.0 MB/s (34930 bytes in 0.005s)
[server] INFO: Device: Google Pixel 5 (Android 11)
2021-03-08 15:38:53.457 scrcpy[85124:20049204] INFO: Renderer: metal
2021-03-08 15:38:53.459 scrcpy[85124:20049204] INFO: Initial texture: 1080x2336
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.AssertionError: java.lang.reflect.InvocationTargetException
at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:75)
at com.genymobile.scrcpy.ScreenEncoder.setDisplaySurface(ScreenEncoder.java:243)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:91)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:60)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
at com.genymobile.scrcpy.Server.main(Server.java:252)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplaySurface(SurfaceControl.java:73)
... 7 more
Caused by: java.lang.IllegalArgumentException: displayToken must not be null
at android.view.SurfaceControl$Transaction.setDisplaySurface(SurfaceControl.java:3067)
at android.view.SurfaceControl.setDisplaySurface(SurfaceControl.java:2147)
... 9 more

@rom1v
Copy link
Collaborator

rom1v commented Mar 8, 2021

Duplicate of #2129.

@rom1v rom1v closed this as completed Mar 8, 2021
@oEduardBarbosa
Copy link

conseguiu resolver?

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

3 participants