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
Bug Description:
When attempting to use scrcpy with the camera source enabled (scrcpy --video-source=camera) on a OnePlus LE2111 device running Android 13, a NullPointerException occurs in the OplusCamera2StatisticsManager within the scrcpy code. Despite the microphone audio working, attempts to use the camera source result in errors.The issue persists with different camera ID's.
[server] INFO: Device: [OnePlus] OnePlus LE2111 (Android 13)
INFO: Renderer: direct3d
[server] INFO: Using camera '2'
INFO: Texture: 4096x3072
[server] ERROR: Exception on thread Thread[camera,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Application.getApplicationContext()' on a null object reference
at android.hardware.camera2.OplusCamera2StatisticsManager.addInfo(OplusCamera2StatisticsManager.java:69)
at android.hardware.camera2.impl.CameraDeviceImplExtImpl.extendsetInfo(CameraDeviceImplExtImpl.java:47)
at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:190)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.os.HandlerThread.run(HandlerThread.java:67)
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) c4941f2a device LE2111
C:\adb\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 100.8 MB/s (64363 bytes in 0.001s)
[server] INFO: Device: [OnePlus] OnePlus LE2111 (Android 13)
[server] INFO: Using camera '0'
[server] ERROR: Exception on thread Thread[camera,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Application.getApplicationContext()' on a null object reference
at android.hardware.camera2.OplusCamera2StatisticsManager.addInfo(OplusCamera2StatisticsManager.java:69)
at android.hardware.camera2.impl.CameraDeviceImplExtImpl.extendsetInfo(CameraDeviceImplExtImpl.java:47)
at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:190)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.os.HandlerThread.run(HandlerThread.java:67)
INFO: Renderer: direct3d
INFO: Texture: 4000x3000
The text was updated successfully, but these errors were encountered:
Environment
Bug Description:
When attempting to use scrcpy with the camera source enabled (
scrcpy --video-source=camera
) on a OnePlus LE2111 device running Android 13, aNullPointerException
occurs in theOplusCamera2StatisticsManager
within the scrcpy code. Despite the microphone audio working, attempts to use the camera source result in errors.The issue persists with different camera ID's.The text was updated successfully, but these errors were encountered: