You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
installation method: unzipped the window release, copy all files to the path.
device model: Nothing Phone 2
Android version: 13
Describe the bug
I've attempted to use USB to mirror the camera on my smartphone to the Windows 11 laptop. scrcpy --video-source=camera
Regretfully, after running the command, I am receiving the given error.
The command scrcpy --list-cameras also outputs the same error.
scrcpy v2.2 <https://github.com/Genymobile/scrcpy>
INFO: Camera video source: control disabled
INFO: Camera video source: microphone audio source selected
INFO: ADB device found:
INFO: --> (usb) a70a6736 device AIN065
C:\Tools\bin\scrcpy-server: 1 file pushed, 0 skipped. 72.6 MB/s (64363 bytes in 0.001s)
[server] INFO: Device: [Nothing] Nothing AIN065 (Android 13)
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at android.hardware.camera2.CameraManager$CameraManagerGlobal.onStatusChangedLocked(CameraManager.java:2252)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.connectCameraServiceLocked(CameraManager.java:1613)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.getCameraIdList(CameraManager.java:1846)
at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:220)
at com.genymobile.scrcpy.CameraCapture.selectCamera(CameraCapture.java:99)
at com.genymobile.scrcpy.CameraCapture.init(CameraCapture.java:75)
at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:55)
at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253)
at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
INFO: Renderer: direct3d
ERROR: Demuxer 'video': stream disabled due to connection error
ERROR: Demuxer 'audio': stream disabled due to connection error
ERROR: Demuxer error
Please do not post screenshots of your terminal, just post the content as text instead.
The text was updated successfully, but these errors were encountered:
Environment
scrcpy v2.2
Dependencies (compiled / linked):
- SDL: 2.28.4 / 2.28.4
- libavcodec: 60.3.100 / 60.3.100
- libavformat: 60.3.100 / 60.3.100
- libavutil: 58.2.100 / 58.2.100
- libusb: - / 1.0.26
Describe the bug
I've attempted to use USB to mirror the camera on my smartphone to the Windows 11 laptop.
scrcpy --video-source=camera
Regretfully, after running the command, I am receiving the given error.
The command
scrcpy --list-cameras
also outputs the same error.Please do not post screenshots of your terminal, just post the content as text instead.
The text was updated successfully, but these errors were encountered: