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

Issue with VirtualDesktop #5743

Open
NishantMajumdar opened this issue Jan 9, 2025 · 0 comments
Open

Issue with VirtualDesktop #5743

NishantMajumdar opened this issue Jan 9, 2025 · 0 comments

Comments

@NishantMajumdar
Copy link

OS: Windows 11 24H2
Device: Redmi Note 9 with Android 13
Command ran: scrcpy --new-display
Issue:

[server] ERROR: Could not create display
java.lang.SecurityException: packageName must match the calling uid
        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.display.IDisplayManager$Stub$Proxy.createVirtualDisplay(IDisplayManager.java:1289)
        at android.hardware.display.DisplayManagerGlobal.createVirtualDisplay(DisplayManagerGlobal.java:605)
        at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:975)
        at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:933)
        at android.hardware.display.DisplayManager.createVirtualDisplay(DisplayManager.java:873)
        at com.genymobile.scrcpy.wrappers.DisplayManager.createNewVirtualDisplay(DisplayManager.java:164)
        at com.genymobile.scrcpy.video.NewDisplayCapture.startNew(NewDisplayCapture.java:190)
        at com.genymobile.scrcpy.video.NewDisplayCapture.start(NewDisplayCapture.java:211)
        at com.genymobile.scrcpy.video.SurfaceEncoder.streamCapture(SurfaceEncoder.java:95)
        at com.genymobile.scrcpy.video.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-video-SurfaceEncoder(SurfaceEncoder.java:296)
        at com.genymobile.scrcpy.video.SurfaceEncoder$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.display.DisplayManagerService.createVirtualDisplayInternal(DisplayManagerService.java:1253)
        at com.android.server.display.DisplayManagerService.-$$Nest$mcreateVirtualDisplayInternal(Unknown Source:0)
        at com.android.server.display.DisplayManagerService$BinderService.createVirtualDisplay(DisplayManagerService.java:3158)
        at android.hardware.display.IDisplayManager$Stub.onTransact(IDisplayManager.java:659)
        at android.os.Binder.execTransactInternal(Binder.java:1280)

WARN: D[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.AssertionError: Could not create display
        at com.genymobile.scrcpy.video.NewDisplayCapture.startNew(NewDisplayCapture.java:197)
        at com.genymobile.scrcpy.video.NewDisplayCapture.start(NewDisplayCapture.java:211)
        at com.genymobile.scrcpy.video.SurfaceEncoder.streamCapture(SurfaceEncoder.java:95)
        at com.genymobile.scrcpy.video.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-video-SurfaceEncoder(SurfaceEncoder.java:296)
        at com.genymobile.scrcpy.video.SurfaceEncoder$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1012)
evice disconnected

Works on my other device running Android 14.
Fix pls

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

1 participant